aspose file tools
The moose likes JSF and the fly likes Curious problem with JSF - web bean doesn’t get invoked until the second submit click Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Curious problem with JSF - web bean doesn’t get invoked until the second submit click" Watch "Curious problem with JSF - web bean doesn’t get invoked until the second submit click" New topic
Author

Curious problem with JSF - web bean doesn’t get invoked until the second submit click

al maak
Greenhorn

Joined: Jul 12, 2010
Posts: 1
Hi,

I'm having a simple form on which I want to check some basic functions - edit, delete, add. The web bean (supplier) has 4-5 attributes - id, name, surname and comment. After I load the view, I can invoke some web bean methods like add, delete and stuff. I use a simple commandButton as a submit component:



My problem is, the method doesn't get invoked on the first submit click, but after it. On the first click the page simply gets reloaded. What would the problem be here?

Thanks, al
Shasi Mitra
Ranch Hand

Joined: Nov 27, 2008
Posts: 101

Hi - If you are using earlier versions of JSF, enclose the html tags in <f:verbatim/>. Is your commandButton there inside any panelgrid or group which is rendered based on any condition? Try putting supplierWB in session scope and check if it is working..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Curious problem with JSF - web bean doesn’t get invoked until the second submit click
 
Similar Threads
null pointer exception in struts2...
Help me in send redirct
Struts: Displaying Field Messages with Indexed Fields
Why doesn't exercise 8-1 from Murach's Java Servlets work for me on IE7?
null pointer exception in struts2