event="click" breaks p:ajax for p:selectOneRadio (3.0.RC2)

UI Components for JSF
Post Reply
smithh032772
Posts: 6144
Joined: 10 Sep 2011, 21:10

22 Dec 2011, 05:06

Please refer to my post in another discussion. Please read my response instead of the title of the topic. Feel free to read the rest of the discussion to see how we arrived to this conclusion.

viewtopic.php?f=3&t=15257&p=52027#p52020

This has been added to Issue Tracker as Issue 3156.
Howard

PrimeFaces 6.0, Extensions 6.0.0, Push (Atmosphere 2.4.0)
TomEE+ 1.7.4 (Tomcat 7.0.68), MyFaces Core 2.2.9, JDK8
JUEL 2.2.7 | OmniFaces | EclipseLink-JPA/Derby | Chrome

Java EE 6 Tutorial|NetBeans|Google|Stackoverflow|PrimeFaces|Apache

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

22 Dec 2011, 11:40

click is a valid event for any component actually. I can't see any reason to exclude it from p:selectOneRadio. That would means a limitation.
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

KingdomHeart
Posts: 280
Joined: 25 Jun 2010, 01:18

22 Dec 2011, 16:16

@Oleg: maybe you can drop a comment on the issue report. That might change Cagatay opinion.
Last edited by KingdomHeart on 22 Dec 2011, 19:09, edited 1 time in total.

Mojarra 2.1.10, Glassfish 3.1, Tomcat 7, Primeface 3.3.1
IE 6-8, FireFox 10-13
MAC OSX Lion, Windows XP, 7

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

22 Dec 2011, 16:26

What comment? I can't see my comment. Cagatay normally drops undesirable comments self. The problem is not in the comment, comment was ok.
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

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

22 Dec 2011, 16:43

That might change Catay opinion.
What is Catay?

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

22 Dec 2011, 17:25

optimus.prime wrote:What is Catay?
Catay is probably second (or third?) developer of PrimeFaces. Can you ask him please to change his opinion?
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

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

22 Dec 2011, 17:52

What about Caga? Maybe he can fix it :)
Thomas Andraschko

PrimeFaces | PrimeFaces Extensions

Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE

Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

22 Dec 2011, 18:06

There is nothing to fix, use onchange.

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

22 Dec 2011, 18:11

I don't want onchange. I would like to click on the same radio button multiply times and see Ajax requests. onchange will not be fired if you click on an already selected radio button.

Imagine, radio button should behaves like command component. This is my trigger to update page area(s). If you click on command button, an Ajax request is sent, something gets updated. If you click on an already selected radio button, nothing happens. They looks different, but apart from UI appearance they should behave identical. Without ajaxified onclick, you have to click another button and then again the last one in order to trigger onchange.

P.S. It doesn't matter for me, I don't use p:selectOneRadio and similar ones (native controls looks good enough on modern OS). This is just a discussion for everybody. We would like to find the right way and make PrimeFaces better.
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

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 50 guests