p:selectOneMenu not updated after partial submit

UI Components for JSF
Post Reply
eunnini
Posts: 67
Joined: 28 Jun 2011, 00:07

15 Jul 2011, 11:08

Hello,


I have a big problem with selectOneMenu or selectOneRadio. The selected value is not displayed after partial submit

Code: Select all

    	<p:commandButton actionListener="#{helloBean.changeSelectOneMenuValue}" update="@form" value="change"/> 
    	<h:selectOneRadio value="#{helloBean.index}">
    		<f:selectItem itemLabel="1" itemValue="#{1}"></f:selectItem>
    		<f:selectItem itemLabel="2" itemValue="#{2}"></f:selectItem>
    		<f:selectItem itemLabel="3" itemValue="#{3}"></f:selectItem>
    		<f:selectItem itemLabel="4" itemValue="#{4}"></f:selectItem>
    	</h:selectOneRadio>
    	<p:selectOneRadio value="#{helloBean.index}">
    		<f:selectItem itemLabel="1" itemValue="#{1}"></f:selectItem>
    		<f:selectItem itemLabel="2" itemValue="#{2}"></f:selectItem>
    		<f:selectItem itemLabel="3" itemValue="#{3}"></f:selectItem>
    		<f:selectItem itemLabel="4" itemValue="#{4}"></f:selectItem>
    	</p:selectOneRadio>    	

Code: Select all

	public void changeSelectOneMenuValue(ActionEvent event){
		this.index = 2;
	}
After "Change" button is pressed, value in h:selectOneRadio is changed, but not in p:selectOneRadio :(

This is a big problem, because we use everywhere in our application p:some_component because of styling and now we are stuck here
Jsf 2.2.x, Primefaces 5.1, tomcat 7

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

15 Jul 2011, 12:07

p:select* share this common problem as of 3.0.M2, they don't use converters during rendering selected ones.

See:

http://code.google.com/p/primefaces/iss ... il?id=2254

eunnini
Posts: 67
Joined: 28 Jun 2011, 00:07

15 Jul 2011, 12:23

Great news, thanks :)
Jsf 2.2.x, Primefaces 5.1, tomcat 7

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 32 guests