Board index JavaServer Faces General AJAX behavior on h:selectOneListbox ignored with 2.2.M1

AJAX behavior on h:selectOneListbox ignored with 2.2.M1

Components, Ajax Framework, Utilities and More.

Posts: 7

Anybody else getting the bizarre error that a p:ajax (or f:ajax) behavior inside a h:selectOneListbox gets ignored entirely since an upgrade to 2.2.M1 (it worked with 2.1)? No Javascript handlers are rendered for the select component, so it seems that the AJAX behaviour renderer isn't called at all.

It works with h:selectOneMenu (as in the showcase:, so that's a workaround. I'm using Mojarra 2.0.2 on Glassfish 3.0.1.


Posts: 17240
Location: Cybertron

If f:ajax is ignored then it is a bug of mojarra. Have you tried with 2.0.3 of mojarra, you can compare with myfaces 2.0.1 to test.

p:ajax is a client behavior now as it should be like f:ajax, it was a uicomponent before.

Posts: 7
Thanks, makes sense. FWIW, it doesn't work with 2.0.3 either.


Oleg User avatar
Expert Member

Posts: 3785
Location: Germany, Black Forest

If I see right, it cannot be an issue of Mojarra. I also have h:selectOneListbox and tried p:ajax and f:ajax with PF 2.0.2 and Mojarra 2.0.2 / 2.0.3. It works. You say it doesn't work with the same Mojarras, but the other PF 2.2.M1.

Conclusion? :-)

Posts: 102
Was this ever resolved? I am having the same problem on current 2.2.1.
Netbeans 7.1, GlassFish 3.1.1, MacOS X 10.6.8, Safari, Firefox

Return to General