UI Components rendered twice after ajax update - PF 6.2 RC1

UI Components for JSF
Post Reply
koan00
Posts: 6
Joined: 19 Jan 2018, 15:46

19 Jan 2018, 16:21

I am having an issue where I have several p:selectOneMenu 's in a single form where they are required=true.

If I leave them all blank/novalue, and then perform an ajax process of @form and update of @form via a p:commandButton, validation fails and the menus are still functional. If I then press the command button again for a second validation failure, several of the selectOneMenu are no longer functional. When I press the selectoneMenu, I can see it is displaying 2 drop downs. The working drop down is rendered under a non-working drop down.

This behavior does not occur with PF 6.1, although I am having a hard time producing a test case using the PF Test application.

Other notes:
- I can confirm if ajax="false" on the command button, everything works as expected.
- I can also confirm the exact same HTTP request and HTTP response payloads are observed for both ajax request associated with the command button press. So it appears to be a client side processing issue?
- If I place a p:log element inside the form, 2 p:log elements are rendered after the first ajax request.

This seems very similar to viewtopic.php?p=163533#p163533 / https://github.com/primefaces/primefaces/issues/3167
Tomcat 9.0 / Mojarra 2.2

koan00
Posts: 6
Joined: 19 Jan 2018, 15:46

19 Jan 2018, 21:36

Although I could not replicate the p:selectOneMenu's being duplicated in the test app, I could reproduce the p:log duplication issue with the primefaces test app with both 6.1 and 6.2, so it looks like that maybe another issue.
Tomcat 9.0 / Mojarra 2.2

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

19 Jan 2018, 22:18

If you can replicate it in a simple sample, feel free to create a issue.
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

RueKow
Posts: 331
Joined: 21 Jun 2011, 23:34
Location: Germany - Wiesbaden

28 Jan 2018, 13:09

I had the same problem with overlay of SelectOneMenu. Did you already create an issue? If yes, please announce issue number.
Rüdiger

PrimeFaces 11.0 | Ultima 2.0
Mojarra 2.3 | Tomcat 8/9 | Win7/10 | OS X 10.14

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

28 Jan 2018, 16:06

I think i fixed it last week. Try a build from source.
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

RueKow
Posts: 331
Joined: 21 Jun 2011, 23:34
Location: Germany - Wiesbaden

28 Jan 2018, 19:01

Yes, it works. Thank you Thomas.
Rüdiger

PrimeFaces 11.0 | Ultima 2.0
Mojarra 2.3 | Tomcat 8/9 | Win7/10 | OS X 10.14

koan00
Posts: 6
Joined: 19 Jan 2018, 15:46

29 Jan 2018, 21:06

Works for me, many thanks! :D
Tomcat 9.0 / Mojarra 2.2

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Google [Bot] and 46 guests