• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

InputText in facelets repeat not updated with empty value

 
chu zhang
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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>
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic