Metakey on datatable

Components, Ajax Framework, Utilities and More.
Post Reply
saprobionte
Posts: 80
Joined: 20 Jun 2011, 15:46

11 Aug 2011, 14:31

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 :

Code: Select all

<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

User avatar
optimus.prime
Prime
Posts: 17328
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

11 Aug 2011, 14:44

Try building the trunk from source.

User avatar
optimus.prime
Prime
Posts: 17328
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

11 Aug 2011, 14:53

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

saprobionte
Posts: 80
Joined: 20 Jun 2011, 15:46

11 Aug 2011, 15:12

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

saprobionte
Posts: 80
Joined: 20 Jun 2011, 15:46

11 Aug 2011, 15:49

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

Post Reply
  • Information
  • Who is online

    Users browsing this forum: Google [Bot], pietro.dpp and 33 guests