Richard Wallace wrote:
Thanks, I understand how to do it on the javascript side. I'm just not sure how to translate it into something the JavaServer Faces will be able to understand. Optimally, of course, the values of the new elements would be bound to the backing bean in the same way as any other values. The difficulty is, of course, changing the state on either the client or the server side so it is restored in the restore view phase. If someone can tell me how to do that, I will be forever grateful.

Well, my guess is, if you alter the form on the client side via javascript and then do a submit on the server, the safest way to process the data is to get the request parameters of the new controls directly, instead of trying to bind it to jsf controls.
The restore view phase however might be really problematic.
Well the safest guess for doing something like that and keeping the values intact probably would be to go the plain ajax route directly in this case, thus no refresh is triggered at all.

Reply via email to