Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Javascript/JSF problem after save  RSS feed

Mike Krech
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a flex application embedded in a JSF. When the page initially loads the flex application calls javascript functions that pull values from a inputhidden field. These four fields are populated from the backing bean. This works when the page loads - no problems.

My issue arises when the user hits the save button in the flex app. The call from flex to the javascript when it reloads subsequently fails. Once the first SAVE is made the javascript fails to get the values from the inputHidden fields.

After a TON of debugging the error I'm getting in javascript is "Object Required". So I managed to figure out that the JSF form, <h:form> and everything inside of it is not visible by the javascript. It all shows up in the browser and if you view source, it all shows up there. Javascript just cannot see it.

I did a getElementsByTagName('input'). On first load I get everything I should - including all of the inputHidden tags inside of the form. Once the save button is clicked NONE of the elements in the form are available in javascript.

I'm really stuck and could use any help.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!