Board index JavaServer Faces General Metakey on datatable

Metakey on datatable

Components, Ajax Framework, Utilities and More.

Post 11 Aug 2011, 14:31

Posts: 80
I've looked lab showcase, and I see datatable could be user with metakey for multiple selection. However, I use PF3M3 and I instantiate a datatable like this :

<p:layoutUnit id="center" position="center"> 
                <h:form style="width: 100%" id="form" prependId="false">
<p:dataTable resizableColumns="true"  style="width: 100%" id="user" var="user" value="#{tableBean.user}"
                                 liveScroll="true"
                                 selection="#{tableBean.users}" selectionMode="multiple" >                                       
                        <p:ajax event="rowSelect" update="seriestable imageSerie" listener="#{tableBean.onRowSelect}"/>


But I got "old" behaviour : I click a row, then I click another, the first one remains selected. Is there something to adjust to get this behaviour ?
PF 3.0RC1 , JSF 2.0, Tomcat 7, NetBeans 7.0

Post 11 Aug 2011, 14:44

Posts: 15033
Location: Cybertron

Try building the trunk from source.
PrimeFaces Lead

Post 11 Aug 2011, 14:53

Posts: 15033
Location: Cybertron

Or get the latest snapshot build from repo which is just deployed.
PrimeFaces Lead

Post 11 Aug 2011, 15:12

Posts: 80
Thanks a lot :) I used previous snapshot (22/07), i haven't seen the last
PF 3.0RC1 , JSF 2.0, Tomcat 7, NetBeans 7.0

Post 11 Aug 2011, 15:49

Posts: 80
Is that possible in SelectEvent (for a onRowSelect) to know if a key (ctrl) is pressed ?
PF 3.0RC1 , JSF 2.0, Tomcat 7, NetBeans 7.0


Return to General