This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Javascript/JSF problem after save

 
Mike Krech
Greenhorn
Posts: 1
  • 0
  • 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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic