Re: do i need to have for each element in my xhtml page ?

Splash Forums PrettyFaces Users do i need to have for each element in my xhtml page ? Re: do i need to have for each element in my xhtml page ?

#20841

vijayinder
Participant

below is the xhtml part. Values in the inputTexts are not updating in bean on form submit if i do add below query params in pretty-config.xml

<query-param name=”id”>#{orderController.id}</query-param>

vales of inputTexts inside ui:repeat are not updating in bean at all as i don’t know how to declare query param for dynamically created text fields.

<form action=”SaveOrder”>

<table border=”1″>

<tr>

<td align=”center”>

<h:outputLabel for=”customerId” id=”labelCustomerId” value=”Customer Number” style=”font-size: 25px;”/>

</td>

<td align=”left”>

<h:inputText class=”inlineTarget” id=”customerId” value=”#{orderBean.laundryOrder.customerId}” style=”font-size: 25px;” size=”10″/>

<input type=”submit” value=”PRINT” style=”font-size: 25px;”/>

</td>

</tr>

<tr><td colspan=”2″><h:outputText value=” ” escape=”false”/></td></tr>

<tr>

<td width=”55%” align=”justify”>

<table width=”100%” border=”1″>

<ui:repeat value=”#{orderBean.laundryOrder.washingServices}” var=”services”>

<tr>

<td width=”70%” align=”left”>

<h:outputLabel value=”#{services.name}” style=”font-size: 25px;”/>

</td>

<td width=”30%” align=”center”>

<h:inputText id=”quantity” class=”inlineTarget” value=”#{services.quantity}” style=”font-size: 25px;” size=”3″/>

</td>

</tr>

<tr><td colspan=”2″><h:outputText value=” ” escape=”false”/></td></tr>

</ui:repeat>

</table>

</td>

<td width=”45%” align=”justify”>

<span id=”inlineTargetKeypad”></span>

</td>

</tr>

</table>

<input type=”submit” value=”PRINT” style=”font-size: 25px;”/>

</form>

Appreciate your help.