Float label empty selection

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
Giuliano_Marchetti
Posts: 1
Joined: 30 Nov 2021, 10:39

30 Nov 2021, 11:33

Hello, i am using ui-float-label with <p:selectOneMenu> in a user form. Inside the select I have an empty option but when I first click on the selectOneMenu then I can't select the empty option anymore.

Code: Select all

<span class="ui-float-label">
	<p:selectOneMenu id="mansionePrincipale" value="#{operatoreMB.operatoreSelected.mansione}">
		<f:selectItem itemLabel="" itemValue="" />
		<f:selectItems var="mansione" value="#{operatoreMB.mansioniPrincipali}" itemLabel="#{mansione.label}" itemValue="#{mansione.value}"/>
	</p:selectOneMenu>
	<p:outputLabel for="@previous" value="#{i18n['operatori.mansione.principale']}"/>	
</span>
Forcing hideNoSelectionOption to False doesn't work, it seams like it's forced to true.
A workaround is to to create two empty selectItem but it's not a good solution.

Thank you

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

24 Dec 2021, 15:05

Fixed for the next version.

Best Regards,

Post Reply

Return to “Ultima - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests