aspose file tools *
The moose likes JSF and the fly likes Question about HtmlInputText binding attribute Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Question about HtmlInputText binding attribute" Watch "Question about HtmlInputText binding attribute" New topic
Author

Question about HtmlInputText binding attribute

Davie Lin
Ranch Hand

Joined: Aug 05, 2007
Posts: 294
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

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Question about HtmlInputText binding attribute