Read your post and tried the component.
It works for me - everytime i click on the radion button a event is
fired - everytime.
I am using complete 1.1.4 snapshot + facelets 1.1.11 and it works - i
can't force the behaviour you described.

kind regards

Am Sonntag, den 06.08.2006, 20:38 +0200 schrieb Stefan Gesigora:
> Hi!
> 
> Doesn't anbody know the reason for this curious attitude?
> Plz help.
> 
> regards, 
> Stefan
> 
> 2006/8/4, Stefan Gesigora <[EMAIL PROTECTED]>:
>         Hi!
>         
>         I've got some problems with the SelectOneRow tag using it into
>         a data table. 
>         It is shown in the right way but my "doPrimaryAddressSelected"
>         method used with the valueChangeListener were only every
>         second time called. 
>         In other words:
>         After the first radio button selection I've made nothing
>         happened. After the second the doPrimaryAddressSelected method
>         were called.
>         After the third nothing happened. After the fourth the method
>         were called. 
>         
>         The whole thing is used as MyFacesPortlet. Could this be the
>         problem?
>         
>         Can anyone help me?
>         
>         regards, 
>         Steven
>         
>         ----snipp begin---
>         
>         <t:dataTable
>         
>         value="#{overviewBean.subOverviewBean.group.addressesAccepted }"
>                     var="row" height="70px"
>                     cellpadding="10px" cellspacing="0px" width="100%"
>                     preserveDataModel="false"
>                     renderedIfEmpty="false"> 
>                     
>                     <h:column>
>                         <f:facet name="header">
>                             <h:outputText value="#{res.lbl_primary}"
>         title="#{res.lbl_primary}"/> 
>                         </f:facet>
>                            
>                         <s:selectOneRow groupName="selection1"
>         id="addressSel" 
>         
>         value="#{overviewBean.subOverviewBean.selAdrRowIndex }"
>                             onchange="submit();" immediate="true"
>         
>         valueChangeListener="#{overviewBean.doPrimaryAddressSelected}"/>
>                      </h:column> 
>         ....
>         --------snipp end--------
>         
>         --------snipp begin-----
>         
>             public void doPrimaryAddressSelected(ValueChangeEvent
>         event){
>                 
>                 Long newVal = (Long) event.getNewValue();
>                 Long oldVal = (Long) event.getOldValue();
>                 SelectOneRow radioButton =
>         (SelectOneRow)event.getComponent();
>                 Object val = radioButton.getValue();
>                 String id = radioButton.getId();
>                 
>                 if (val != null){ 
>                     
>                     int selIndex = Integer.parseInt(val.toString());
>         ...
>         
>         --------snipp end--------
>         
>         
> 

Reply via email to