• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Javascript/JSF problem after save

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic