This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JSF and the fly likes Richfaces + jsFunction + radioButton Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » JSF
Bookmark "Richfaces + jsFunction + radioButton" Watch "Richfaces + jsFunction + radioButton" New topic

Richfaces + jsFunction + radioButton

Adolfo Eloy
Ranch Hand

Joined: Mar 21, 2009
Posts: 146


I have an ajax form with radio, inputText and an ajax function (via jsFunction) inside it. This ajax function invokes a method (via action) from my backing bean to retrieve some data that I need (some data are within the form view, so the jsFunction must be inside the form too).

The problem: when an ajax function is called for the first time, it seems that the invoke method phase isn't executed and it seems to happen nothing. But when this function is called for the second time, the invoke method is executed and all happens as expected.

follows the view code:

Does anybody have some idea about what might be happening? I have no more ideas about it =/
* when I remove the radio button it works all right


Adolfo Eloy
Software Developer
I agree. Here's the link:
subject: Richfaces + jsFunction + radioButton
It's not a secret anymore!