primefaces 7.0 issues with dependent selectOneMenus
See original GitHub issueIssue Overview
Hello,
I’ve upgraded to the latest version of this template , 1.0.0, which brings in primefaces 7.0 and created a page with two selectonemenu where the selection of an item of one trigger the update by ajax of the contents of the second. what happend is that when i select the first one de results on the second appears on the left corner instead of the right position of the component which is in the content area by the right side. degrading to version 1.0.0-RC21 this issue doesn’t happend.
Current Behaviour
An image may worth a thousand words
Expected Behaviour
An image may worth a thousand words
How to reproduce
<div> <div class="form-group col-md-3"> <p:outputLabel for="provincia" value="Província:" /> <p:selectOneMenu id="provincia" converter="provinciaConverter" value="#{armazemListController.filter.entity.endereco.provincia}"> <f:selectItem itemLabel="Escolha Aqui" itemValue="#{null}" /> <f:selectItems value="#{formController.findAllProvincia()}" var="_provincia" itemLabel="#{_provincia.nome}" itemValue="#{_provincia}" /> <p:ajax event="itemSelect" update="distrito" /> </p:selectOneMenu> </div>
<div class="form-group col-md-3">
<p:outputLabel for="distrito" value="Distrito:" />
<p:selectOneMenu id="distrito" converter="distritoConverter"
value="#{listController.filter.entity.endereco.distrito}">
<f:selectItem itemLabel="Escolha Aqui" itemValue="#{null}" />
<f:selectItems
value="#{listController.findDistritoByProvinciaId()}"
var="_distrito" itemLabel="#{_distrito.nome}"
itemValue="#{_distrito}" />
</p:selectOneMenu>
</div>
</div>`
Additional Information
- AdminFaces version: 1.0.0
- PrimeFaces version: 7.0
- JSF implementation: 2.3
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (5 by maintainers)
thanx for you fast reply. I will try to reproduce it on admin-starter, and post it asap.
That’s great! closing the issue, thank you for the feedback.