Page 1 of 1

Metakey on datatable

Posted: 11 Aug 2011, 14:31
by saprobionte
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 ?

Re: Metakey on datatable

Posted: 11 Aug 2011, 14:44
by cagatay.civici
Try building the trunk from source.

Re: Metakey on datatable

Posted: 11 Aug 2011, 14:53
by cagatay.civici
Or get the latest snapshot build from repo which is just deployed.

Re: Metakey on datatable

Posted: 11 Aug 2011, 15:12
by saprobionte
Thanks a lot :) I used previous snapshot (22/07), i haven't seen the last

Re: Metakey on datatable

Posted: 11 Aug 2011, 15:49
by saprobionte
Is that possible in SelectEvent (for a onRowSelect) to know if a key (ctrl) is pressed ?