File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: InputText in facelets repeat not updated with empty value
 
Similar Threads
<a4j:outputPanel> data cached?
Validation Problem ... again!
JSF with Facelets - Setting maxlength attribute probelm
Looping in JSF
ui:repeat, c:foreach in JSF 2.0