ajax event "rowUnselect" is not fired on dataTable

UI Components for JSF
Post Reply
tcnguyen
Posts: 36
Joined: 05 Apr 2011, 13:34

30 Aug 2011, 13:50

In 3.0.M3, ajax event "rowUnselect" is not fired on dataTable as in an example of showcase:

Code: Select all

    <p:dataTable var="car" value="#{tableBean.mediumCarsModel}" paginator="true" rows="10"
                 selection="#{tableBean.selectedCar}" selectionMode="single">

        <p:ajax event="rowSelect" listener="#{tableBean.onRowSelect}" 
                    update=":form:display :form:growl" oncomplete="carDialog.show()" />
        <p:ajax event="rowUnselect" listener="#{tableBean.onRowUnselect}" update=":form:growl"/>
Is it a bug?
PrimeFaces 3.0.RC1 / Spring Webflow 2.3.0.RELEASE / SpringSource tc v2.1 / Tomcat 6.0.29.C.RELEASE

User avatar
undermensch
Posts: 140
Joined: 08 Jul 2010, 14:37
Location: Florida, United States

30 Aug 2011, 16:06

Are you using the ctrl key + mouse click to unselect?
PrimeFaces-11.0.6 / Wildfly 24

tcnguyen
Posts: 36
Joined: 05 Apr 2011, 13:34

30 Aug 2011, 16:25

Oh, it works. But not userfriendly... Thanks!
PrimeFaces 3.0.RC1 / Spring Webflow 2.3.0.RELEASE / SpringSource tc v2.1 / Tomcat 6.0.29.C.RELEASE

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

30 Aug 2011, 17:20

what do you mean by
tcnguyen wrote:Oh, it works. But not userfriendly...

tcnguyen
Posts: 36
Joined: 05 Apr 2011, 13:34

31 Aug 2011, 08:24

I meant, it works with "ctrl key + mouse click" to unselect a row. But it is unusual for web-user with this combination. It is not intuitively like before (3.0.M2). One click is select, next click on the same row is unselect.
PrimeFaces 3.0.RC1 / Spring Webflow 2.3.0.RELEASE / SpringSource tc v2.1 / Tomcat 6.0.29.C.RELEASE

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

31 Aug 2011, 09:08

Hi,

"ctrl key + mouse click" is more intuitiver than simple click because this is behavior of (all) desktop file explorers.
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

eceeb
Posts: 2
Joined: 26 May 2014, 15:57

26 May 2014, 16:05

Hi, is there a possibility to change this, to the mentioned behavior?

Because IMHO this is really not intuitive.
I guess you can't compare it with a file selection in an explorer, if it was that what you meant.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 50 guests