ice:rowSelector requires two clicks to select a row the first time it is used
[Logo]
ICEsoft.org Forums: ICEfaces, ICEmobile, ICEpdf
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icefaces.org  [Register] Register  [Login] Login 
ice:rowSelector requires two clicks to select a row the first time it is used  XML
Forum Index -> Components
Author Message
alin.costea


Joined: 22/12/2008 00:00:00
Messages: 48
Offline


Hello,

This is a strange issue as it happens only on some of my tables and only the first time I try to select a row. I am using the decorator technique for wrapping my data. The selectionListener is called every time, but only the second click visually selects the row:

Code:
 ....
 <ice:column>
      <ice:rowSelector value="#{dataRow.selected}" multiple="false" selectionListener="#{Some.onSomeRowSelected}" enhancedMultiple="false" />
      <f:facet name="header">
           <ice:commandSortHeader arrow="true" columnName="id" immediate="true">
                <ice:outputText value="#{msg.Id}"/>
           </ice:commandSortHeader>
      </f:facet>
      <ice:outputText value="#{dataRow.data.id}"/>
 </ice:column>
 ...


Any hints are appreciated!
Cheers!
alin.costea


Joined: 22/12/2008 00:00:00
Messages: 48
Offline


Found out what the problem was. There was another component on the page which was initialised with null as it's value. This components' valueChangeListener was called two times, causing the data table to be refreshed (it was a filter related to the table).

So this is related to valueChangeListeners being called more than once when the input components are not properly initialised.

Hope this helps someone.

Cheers!
 
Forum Index -> Components
Go to:   
Powered by JForum 2.1.7ice © JForum Team