The list of <p:selectOneMenu> position is strange, when submit with "@form" update.
See original GitHub issueIssue Overview
when use “selectOneMenu” of PrimeFaces component, list position is strange.
Current Behaviour
- <p:selectOneMenu> list position is header of page, when “commandButton” perfomed with “@form” update.
Expected Behaviour
- <p:selectOneMenu> list position expect under <p:selectOneMenu> component, when “commandButton” perfomed with “@form” update.
How to reproduce
<p:panelGrid id="panelGrid">
<p:outputLabel for="@next" value="select one"/>
<p:selectOneMenu value="#{indexView.selectOne}">
<f:selectItems value="#{indexView.itemCandidates}" var="i" itemLabel="#{i}" itemValue="#{i}"/>
</p:selectOneMenu>
<p:commandButton value="submit"
process="panelGrid"
update="@form"
actionListener="#{indexView.submit}"/>
</p:panelGrid>
entire code is here. https://github.com/hir0ku/adminfaces-operation-verification/blob/master/src/main/webapp/index.xhtml
Additional Information
- AdminFaces version: 1.0.0
- also try 1.0.2, same problem.
- PrimeFaces version: 7.0
- JSF implementation: Wildfly 16.0.0.Final Mojarra 2.3.9.SP01
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
p:selectOneMenu not calling setter on form submit
Everything works all values are put in the backing bean when I submit the form, except for the value from the dropdown menu....
Read more >The onchange="submit()" does not work with p:selectOneMenu
I've tried to use the onchange="submit()" with p:selectOneMenu as the following: - The data bean. Code: Select all
Read more >SelectOneMenu: panel changes width after display ... - GitHub
Component changes the items panel width after display. This flick behavior occurs in IE/Edge and only if the vertical scrollbar is required.
Read more >JSF - h:selectOneMenu - Tutorialspoint
Comma- or space-separated list of character encodings for a form. The accept-charset attribute is specified with the JSF HTML attribute named acceptcharset.
Read more >JSF 2 dropdown box example - Mkyong.com
h:selectOneMenu example. A JSF 2.0 example to show the use of “h:selectOneMenu” tag to render a dropdow box, and populate the data in...
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
I’ve made some tests and your issue is also fixed with OmniFaces
2.7.1
so I’ll upgrade admin-template to this version ~as it doesn’t conflict with JavaEE 6~ (well it does but as JavaEE 6 is the less used version according to surveys we’ll keep the upgrade) nor older versions of Java.It will be available in admin-template
1.1.0
.Thank you very much for the feedback!
I understand the circumstances surrounding this library. This issue will be closing. Thank you very much.