InputText Value is not updating in backing bean
bramsreddy Apr 29, 2011 2:50 AMHi
i have the following code.I am rendering categoryText depending on some conditions by setting the value categoryFlag.Problem is when i click on showGraph categoryText value is not updated into the baccking bean.affiliateURL value is coming in the backing bean.
<h:form id="GrapTabForm">
<a4j:region>
<a4j:outputPanel id="categoryPanel">
<table width="100%">
<tr>
<td><h:outputLabel value="Affiliate URL" />
</td>
<td><h:inputText value="#{chartDataBacking.affiliateURL}" />
</td>
<td><h:outputLabel value="Category" id="categoryLabel" rendered="#{chartDataBacking.categoryFlag}"/>
</td>
<td><h:inputText value="#{chartDataBacking.category}" id="categoryText" rendered="#{chartDataBacking.categoryFlag}">
</h:inputText>
</td>
<td><h:inputHidden value="#{chartDataBacking.graphName}"
id="graphname" />
</td>
<td><a4j:commandButton value="showGraph" render="PieChart,categoryText"
action="#{chartDataBacking.showGraph}" execute="@region"></a4j:commandButton>
</td>
</tr>
</table>
</a4j:outputPanel>
</a4j:region>
<a4j:outputPanel id="PieChart">
<a4j:mediaOutput element="img" cacheable="false"
session="true" rendered="#{chartDataBacking.graphFlag}"
createContent="#{chartDataBacking.generateChartMethod}"
value="#{chartDataBacking.graphName}" mimeType="image/jpeg" />
</a4j:outputPanel>
</h:form>
Regards
Ram