SelectOneMenu - editable="true" - If I delete the value, the value for itemLabel is set by the first and deactivated item | pf 7.0.16
See original GitHub issuesimple code:
<p:selectOneMenu id="ustId" styleClass="editable-dropdown"
value="#{stammdatenAdministrationController.item.umsatzSteuerId}"
editable="true" tabindex="34"
required="#{stammdatenAdministrationController.requiredUmsatzId}"
validator="#{stammdatenAdministrationController.validateUstId}">
<f:selectItem itemDisabled="true"
itemLabel="please choosed"
itemValue="#{null}" value="#{null}"/>
<f:selectItems value="#{stammdatenAdministrationController.schlUstidEntityList}" var="item"
itemLabel="#{item.name}" itemValue="#{item.name}"/>
<p:ajax event="change" process="@this" immediate="true"/>
</p:selectOneMenu>
the backend bean has one element in list. when i choosed this element from backend, then is the label corect. when i the inputfield of selectedOneMenu cleared over keyboard and then commited form and reloaded this, then is label from selectOneMenu filled with “please choosed”.
Issue Analytics
- State:
- Created 3 years ago
- Comments:15 (9 by maintainers)
Top Results From Across the Web
SelectOneMenu passes itemLabel instead of itemValue when ...
However, the problem is, that when editable="true" is present, the selectOneMenu always passes a String to the converter, but not just any ...
Read more >p:selectOneMenu in md-inputfield : first option not appearing
In fact, if I remove that option altogether, then the first item of MyBean.itemList doesn't appear. It can be pre-selected though, ...
Read more >Duplicate Values In P:Selectonemenu - ADocLib
SelectOneMenu editabletrue If I delete the value the value for itemLabel is set by the first and deactivated item | pf 7.0.16 #6342....
Read more >JSF - h:selectOneMenu - Tutorialspoint
JSF - h:selectOneMenu, The h:selectOneMenu tag renders an HTML input element ... value = "#{userData.data}"> <f:selectItem itemValue = "1" itemLabel = "Item ......
Read more >UI Component (h:selectOneMenu) showing old value not ...
Mojarra 2.1.7-jbossorg-1 I'm out of my wits trying to figure out what is going on here.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Unless you are a PRO subscriber and can request it I doubt this will be backported to 7. I don’t work for PrimeTek though…
I believe your issue is this: https://github.com/primefaces/primefaces/issues/5299
See this comment specifically: https://github.com/primefaces/primefaces/issues/5299#issuecomment-549492475
Fixed already in 8.0.