1

I have been following this link to achieve hiding of typical default 'select..' item of Primefaces dropdown after selecting another item:

Best way to add a "nothing selected" option to a selectOneMenu in JSF

This is not working for Primefaces.

Since the attribute hideNoSelectionOption is also not mentioned in Primefaces Showcase documentation, I doubt if this works for Primefaces.

Does anybody know an alternative for this in Primefaces? I am using Primefaces version 5.3.

Community
  • 1
  • 1
user2918640
  • 473
  • 1
  • 7
  • 25
  • To be sure, you can easily check the sourcecode – Kukeltje Feb 29 '16 at 13:37
  • I checked Primfaces source code. Looks like Primefaces does not support this feature right now. Maybe `h:selectOneMenu` supports this but to use that I'll have to apply Primefaces styling on top until I find a direct solution for Primefaces. – user2918640 Mar 01 '16 at 08:19
  • What is a direct solution? The source is open, a patch for a feature enhancement is easily made. If you create an issue in github for this, with a pull request might get it fixed even in the core – Kukeltje Mar 01 '16 at 08:24
  • http://stackoverflow.com/questions/26258339/hidenoselectionoption-in-selectonemenu-is-not-working-as-expected – Archimedes Trajano May 09 '17 at 15:14

0 Answers0