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.
event="click" breaks p:ajax for p:selectOneRadio (3.0.RC2)
-
- Posts: 6144
- Joined: 10 Sep 2011, 21:10
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
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
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
-
- Posts: 280
- Joined: 25 Jun 2010, 01:18
@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
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
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
What is Catay?That might change Catay opinion.
Catay is probably second (or third?) developer of PrimeFaces. Can you ask him please to change his opinion?optimus.prime wrote:What is Catay?
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
-
- PrimeFaces Core Developer
- Posts: 3979
- Joined: 03 Dec 2010, 14:11
- Location: Bavaria, DE
- Contact:
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
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
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
There is nothing to fix, use onchange.
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.
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
-
- Information
-
Who is online
Users browsing this forum: No registered users and 50 guests