Re: Dynamic multiple selection list with Javascript breaks JSF

2006-02-18 Thread Enrique Medina
Hi Emily,You're right. Obviously the better way to accomplish it would be to make a request on each addition, in order to update the SelectItems list for the component. I'm going to try this, but with Ajaxanywhere, just to save the user from the page refresh each time she adds an item. Regards,Enri

Re: Dynamic multiple selection list with Javascript breaks JSF

2006-02-18 Thread Emily Gu
Since you have used _javascript_ to add options into the selection list, it only knows by the client not the server. You will have to put those added values in a hidden field, then get them after the form submission instead of getting it from the selection list directly. That's one of workaround I

Dynamic multiple selection list with Javascript breaks JSF

2006-02-18 Thread Enrique Medina
Hi,I'm trying to do a simple multiple selection list where the user can add String values. The operation for adding these values is through a simple _javascript_ method, using the new Option mechanism.However, when the form is submitted, I always get a Validation error. Going through the code, I se