please checkout current code of richfaces-demo sample from trunk and look through the dataTable samlpe page. There is the sample you need at third tab.
Coud you post the link ? I can't find this sample :(
"Edit Table with ModalPanel" tab
mh, how can I get it run ? i can see source only.
all the info about working with our sources and other resources in our wiki.
I cannot find something useful about getting to run of trunk samples. I have deployed the richfaces-demo-3.1.6.GA-jee5.war, but its the same like Live-Demo. Must I replace the sources yet ?
1. Use any IDE capable to import Maven 2 project. Import checked out project
2. Run it
I checked out the example, which works great if you have one field that is being validated.
The problem I am running into is I have multiple fields being validated and each of these fields are set to immediate="true". What happens is when one of those fields is valid and the other invalid, then I press cancel, the next time the dialog comes, the data from the valid field remains.
ip address: 1.2.3.abc
name cannot contain invalid characters (?,<,>,etc) and ip address MUST be a valid IP Address.
name is OK, but IP Address is invalid
I hit OK and get the error message
I hit cancel
The next time I open this modal panel, name will have foo in it and IP address will be blank.
Is there a way to make sure all these fields are "reset" or refreshed with original data.
You can try to reset fields manually in bean get method.
That looks exactly like the problem I am having.