voyent
<ice:rowSelector> select one row  XML
Forum Index -> Components
Author Message
toure32

Joined: 07/May/2009 00:00:00
Messages: 11
Offline


Hi,
all i've add <ice:rowSelector> to my <ice:dataTable> as follow:
Code:
 <ice:dataTable id="userList" rows="10"  width="95%"
                                resizable="true"
                                value="#{users.users}" var="myuser" ><!-- #{itemList.usersList}  -->
 
 
 
                     <ice:column  colspan="2"  >
 
                         <ice:rowSelector id="selected"
                                          value="#{myuser.selected}"
                                          multiple ="false"
                                          enhancedMultiple ="false"
                                          selectedClass="ligneChoisi"
                                          mouseOverClass="tableRowMouseOver"
                                          selectionListener="#{users.rowSelectionListener}"
                                          preStyleOnSelection="true"/>
 
 
                         <ice:outputText styleClass="soldeTxt" value="#{myuser.user.id}"/>
                         <f:facet name="header">
                             <ice:outputText  value="Login" />
                         </f:facet>
                     </ice:column>
 </ice:dataTable>
 

when i clic one row the selectedClass style is applay to the row and when i clic an other row the selectedClass style is applay to both.
it seem that the ice:rowSelector is in multi row selection mode although i've set multiple ="false" parameter to false.
thank for helping me.
best regards.
 
Forum Index -> Components
Go to:   
Powered by JForum 2.1.7ice © JForum Team