This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSF and the fly likes InputText in facelets repeat not updated with empty value Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "InputText in facelets repeat not updated with empty value" Watch "InputText in facelets repeat not updated with empty value" New topic
Author

InputText in facelets repeat not updated with empty value

chu zhang
Greenhorn

Joined: Sep 09, 2011
Posts: 1
Hi,
I have a ListDataMode field in my backing bean with facelets repeat . It works fine if user input not empty value. Somehow if user change data field to empty, the input value previous stored in ListDataMode is not updated.

It seems that it does not apply request values if input text is empty. Any ideas or thoughts are very appreciated ?


#########################
PaymentModel
private ListDataModel payees;
#######################

xmlns:ui="http://java.sun.com/jsf/facelets"
...

<ui:repeat id="payee_list" var="payee" value="#{PaymentModel.payees}">
<h:inputText id="pdate" value="#{payee.dateStr}" maxlength="10" ></h:inputText>
<h:inputText id="pamount" value="#{payee.amountStr}" maxlength="8"></h:inputText>
</ui:repeat>
 
wood burning stoves
 
subject: InputText in facelets repeat not updated with empty value
 
Similar Threads
Validation Problem ... again!
ui:repeat, c:foreach in JSF 2.0
<a4j:outputPanel> data cached?
Looping in JSF
JSF with Facelets - Setting maxlength attribute probelm