Hi All,
I have a input text box that contains fee and a SelectOneMenu for fee type. When the user selects the fee type I need to perform a caluculation and display the result in another text box. I did it in the following way but it is not working evethough it worked in another to pages.
<h:form>
.
.
.
<a:region>
<table>
<tr>
<td><h:outputText value="Fee"/></td>
<td><h:inputText size="10" value="#{manager.fee}" /></td>
<td width="6%"><h:selectOneMenu value="#{manager.feeType}">
<f:selectItem itemLabel="" itemValue="" />
<f:selectItems value="#{dbUtil.feeType}" />
<a:support event="onchange" reRender="txtFeeTot" ajaxSingle="true" actionListener="#{manager.setFeeAmount}" />
</h:selectOneMenu>
</td>
<td style="PADDING-LEFT: 8px">
<h:outputText id="txtFeeTot" value="#{manager.feeAmount}">
<f:convertNumber pattern="$######.0000" />
</h:outputText>
</td>
</tr>
</table>
</a:region>
.
.
.
</h:form>
The value fee is always 0 in session bean.
Anybody know the reason for it.
Thanks
It works for me now