This week's book giveaways are in the Refactoring and Agile forums. We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line! See this thread and this one for details.
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?