Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question about HtmlInputText binding attribute

 
Davie Lin
Ranch Hand
Posts: 294
  • Mark post as helpful
  • send pies
  • 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

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic