my dog learned polymorphism
The moose likes JSF and the fly likes Javascript/JSF problem after save Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Javascript/JSF problem after save" Watch "Javascript/JSF problem after save" New topic

Javascript/JSF problem after save

Mike Krech

Joined: Jun 19, 2008
Posts: 1
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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Javascript/JSF problem after save
jQuery in Action, 3rd edition