aspose 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
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>
 
jQuery in Action, 2nd edition
 
subject: InputText in facelets repeat not updated with empty value