• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Clearing h:inputText value

 
Ranch Hand
Posts: 324
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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--


 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic