• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Clearing h:inputText value  RSS feed

 
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
Boost this thread!