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.

primefaces 7.0 issues with dependent selectOneMenus

See original GitHub issue
Issue 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

wrong behaviour

Expected Behaviour

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

github_iconTop GitHub Comments

1reaction
anumber8commented, Apr 17, 2019

thanx for you fast reply. I will try to reproduce it on admin-starter, and post it asap.

0reactions
rmpestanocommented, Apr 20, 2019

That’s great! closing the issue, thank you for the feedback.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to make one SelectOneMenu be dependent on the other?
PrimeFaces 3.2, Mojarra 2.1.6 , Tomcat 7.0, Eclipse Indigo, Java 7 ... I have problem loading 3 selectOneMenu dependent. this is a known...
Read more >
Primefaces dependent selectOneMenu and required="true"
In my application I have three dropdown menu ( p:selectOneMenu ), say A, B, C. Among them two are dependent, say B and...
Read more >
UI Component (h:selectOneMenu) showing old value not ...
I have broken down the problem that I am seeing to something smaller test case that is easily reproducable. ... The list of...
Read more >
PrimeFaces Documentation 11.0.0
PrimeFaces is an open source JSF component suite with various extensions. Rich set of components (HtmlEditor, Dialog, AutoComplete, Charts and many more).
Read more >
Rendering Issue with primefaces 6.2 and Liferay 7.1 - Forums
<div class="ui-g-12 ui-lg-7 ui-xl-11"> <p:selectOneMenu id="category" required="true" value="#{animalBean.animalRecord.categoryid}"
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