• 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Question about HtmlInputText binding attribute

 
Ranch Hand
Posts: 294
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I have two modalPanel on my page, One is for Edit row in a datatable and the other one is to Add row into datatable. These two modal panel have exact same input field. The only differences are that Edit have two buttons and Add have 3 buttons (I believe the number of buttons are irrelevant but just want to disclose everything) and the Edit's HtmlInputText tags have value attribute for reRendering purpose but the Add's HtmlInputText tag does not have value attribute. Two of the HtmlInputText tag in both Edit and Add modalPanel have component binding attribute. The reason for these two particular HtmlInputText tags in both window to use binding because I need to validate the entry against the Database.

Here is a general idea of my code for the modalPanel



The problem I am Having is that if I open up something to Edit first and than do the Edit. Now after I close the Edit modalPanel and my backing bean is doing something like



Before I open the Add modalPanel. I am still seeing the previous value from Edit modalPanel. I don't get it, why it is still there

I have even try more extrem way like



but the previous value from Edit still shows up in Add. Can someone tell me where I am doing wrong?

THank you, much appreciated

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic