Re: How can I keep multiple selection of html:options when I am back

2005-11-15 Thread Danny Lee
I don't know if I understand you right, but if you wan't to get the 
option selected before validation, just save it in some form Attribute 
of your Struts Form and then use:


html:select property=contacts multiple=true 
value=${myForm.lastSelectedThing}


Cheerz

Danny

Chen Jerry schrieb:

Well, I make multiple selection and submit the page, which will be
forwarded to if validation is not passed. I want to keep selected the
multiple options of select when I am back. What  can I do?

This is the fragment of source code:

html:select property=contacts multiple=true
ondblclick=javascript:DelContact(); styleClass=selectBox
style=width:100%;height=60px; 
html:options collection=contactList property=value labelProperty=label/
/html:select

Thanks in advance.

Jerry



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How can I keep multiple selection of html:options when I am back

2005-11-14 Thread Chen Jerry
Well, I make multiple selection and submit the page, which will be
forwarded to if validation is not passed. I want to keep selected the
multiple options of select when I am back. What  can I do?

This is the fragment of source code:

html:select property=contacts multiple=true
ondblclick=javascript:DelContact(); styleClass=selectBox
style=width:100%;height=60px; 
html:options collection=contactList property=value labelProperty=label/
/html:select

Thanks in advance.

Jerry

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]