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,
Enrique Medina.
2006/2/18, Emily Gu <[EMAIL PROTECTED]>:
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 used. I don't know whether there is any other way to do it.Good luck,Emily
On 2/18/06, Enrique Medina <[EMAIL PROTECTED] > wrote: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 see that at some point the component expects the value to be a SelectItem object, but obviously it isn't, as it has been added dynamically using _javascript_.
I was wondering whether this is the correct bahaviour or I am missing something, because I can't make a simple selection list work :-(
Regards,
Enrique Medina.

