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
}"
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--------
- SelectOneRow problem: only called every second time Stefan Gesigora
- Re: SelectOneRow problem: only called every second ... Stefan Gesigora
- Re: SelectOneRow problem: only called every sec... Torsten Krah
- Re: SelectOneRow problem: only called every... prem
- Re: SelectOneRow problem: only called e... Mike Kienenberger

