Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Clearing h:inputText value

 
Himalay Majumdar
Ranch Hand
Posts: 324
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Values in the h:inputText are being cached for me, here is the descriptions.

1. I click a link "reimburse" --> modal popsup -> I enter the value in text-box --> click Submit/Process
2. I click another link "update/cancel" -->same modal popsup --> I see the value in the text box (This is fine and if I reload the page and click the link again, the modal appears with values intact)
3. I click another link "reimburse" --> same modal popsup --> I see the value in the text cached(this time I want the values not to be cached in the text box) -- If I reload the page, the values go away though.

I have tried clearing the bean when the links are clicked, but still the values appear. Did lot of googling, dint help. Please advise. Below is the code. Thanks.



--PaymentList.xhtml--



--reimbursePaymentModal.xhtml--



-ReimbursementActionBean.java--


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic