form value within ajax rendered panel not appearing

UI Components for JSF
Post Reply
oidsman
Posts: 26
Joined: 07 Sep 2010, 21:26

02 Feb 2011, 23:31

Hi,

I have a <form> tag on a page and part of the code within that page is as below:-

Code: Select all

<p:outputPanel id="bandedStep">
			
			<p:panel header="#{pageText.page_purchase_header_step_banded_2}" rendered="#{purchaseBean.rateDisplay and tempSchemeUnit.policy.bandedPremium}">
			
					<h:outputText value="#{pageText.page_purchase_band_question_text}" />
					<p:spacer width="8" height="10" />
					<h:panelGroup>
						<h:selectOneMenu styleClass="selectOneMenu" id="titlesSelect1"
							value="#{purchaseBean.testBand}">
							<f:selectItems value="#{purchaseBean.bands}" />
						</h:selectOneMenu>
					</h:panelGroup>
					<p:spacer width="8" height="10" />
					<p:commandButton rendered="#{tempSchemeUnit.policy.bandedPremium}"
						value="#{pageText.page_purchase_button_retrieve_premium}"
						action="#{purchaseBean.doChooseBand}" update="out bandedStep">

					</p:commandButton>
			</p:panel>
			</p:outputPanel>
	
The ouputpanel bandedStep is updated further up the page and appears as part of the process. The problem is that the <h:selectOneMenu> value (purchaseBean.testBand) is not updated if the rendered tag (rendered="#{purchaseBean.rateDisplay and tempSchemeUnit.policy.bandedPremium}") is in the code. If I remove that rendered part , the value is submitted to the backing bean.

Can anyone explain why this is happening?
Using Primefaces-2.2SNAPSHOT on Glassfish 3.01

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 48 guests