question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The list of <p:selectOneMenu> position is strange, when submit with "@form" update.

See original GitHub issue
Issue Overview

when use “selectOneMenu” of PrimeFaces component, list position is strange. selectOneMenuListPosition

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:closed
  • Created 4 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
rmpestanocommented, Dec 3, 2019

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!

0reactions
hir0kucommented, Dec 2, 2019

I understand the circumstances surrounding this library. This issue will be closing. Thank you very much.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found