Krishna,
In order to get help on a mailing list, I suggest that you use a subject line that is more descriptive of your problem.

With that said, I suggest using the Trinidad selectOneRadio tag that has the autoSubmit attribute. If you set it to true, then your event listener will be called when the value changes. I'm not that familiar with the standard JSF selectOneRadio tag. You might be able to get the value to submit with an onlClick handler. In my opinion though, the tr:selectOneRadio with autoSubmit="true" and and a valueChangeListener is the easier way to go.

-R

Nutulapati, Krishna wrote:
Hello All,
I need to select one among many items through radio buttons, in jsf and
should able to track the selected item event to identify the item in the
backing bean.
The backing been has to update the item details in the panel of same jsf
page, and I should able to Edit  the item details and save them back
into the same database. The problem I have here is listening and capturing the events.
Here is the radio button code I wrote in jsf

<h:selectOneRadio id="radio1" styleClass="selectOneRadio"
                    valueChangeListener="#{editItemBean.
handleRadio1ValueChange}"/>

Here is the backing bean code. public void handleRadio1ValueChange(ValueChangeEvent valueChangedEvent)
{
                System.out.println("Value Change Event
is"+valueChangedEvent.getSource().toString());
        }


The control is not coming to this backingbean, after clicking the radio
button. Please suggest me the solution. Thanks
Krishna
        



Reply via email to