This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes JSF and the fly likes h:commandButton and h:commandLink not invoking the model during first click Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "h:commandButton and h:commandLink not invoking the model during first click" Watch "h:commandButton and h:commandLink not invoking the model during first click" New topic
Author

h:commandButton and h:commandLink not invoking the model during first click

Vinu Shanmugam
Greenhorn

Joined: Jul 22, 2011
Posts: 4
Hi,


I have some issues with a4j:commandButton. It is not invoking the model during first click. After the first click, it works.

I enabled PhaseListener. During the first button click, only Restore View and Render Response phases are executed.



I am working for past 5 days to resolve this issue with no luck. There were many others posted the same issue none of their solutions address my problem (I have the form tag in place, I have all my beans in session).

I faced the same issue with RichFaces 4 as well. I got fed up with it and I removed RichFaces and tried the same thing with plain JSF implementation.

Thanks
Vinu
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: h:commandButton and h:commandLink not invoking the model during first click