Thank you for your link. although I did not use the java script (prototype) based approach, I did something similar.
1. Used a Phase Listener ahead of the Validation Phase and Built the table Line data from the request object.
2. Used an AJAX call to Add or delete rows. This is done by setting a message on the request object. The Phase listener examines the message as it builds the line data from the request.
Main Topics
Browse All Topics





by: mrcoffee365Posted on 2007-08-15 at 08:50:47ID: 19700734
I think Javascript to enter the extra row, and a special Ajax call to add it seems the best way to handle what you want. You could also do a normal submit of the entire form, and turn off the entire form validation in the case of the Add Row request.
:-Adding-T able-Row- t 4109721s22 836.html
This blog has some discussion of a similar problem, which might help you with yours:
http://www.nabble.com/Ajax
However, I don't know of a simple set of commands which will do exactly what you want -- I think you'll have to just work your way through your code.
If you want more help here, you'll have to post more of your code, because it's not possible to tell from your text description what the problem is, either with the Javascript or the back end code.