You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by da...@stchome.com on 2003/11/04 15:21:12 UTC

Re: Problem with html:select tag calling set method in form




Is this the correct functionallity of struts??

if you have a multiple selection list box, and everything is deselected,
the setter method in the form object is not getting called.

It only gets called if there are 1 or more entries in the list box selected
___________________________________
Damian Bradicich
Software Developer
Scientific Technologies Corporation
Tel: (603) 471-4712
Email: Damian_Bradicich@stchome.com
Web Site: www.stchome.com
"Advancing Public Health Through Information Technology"
___________________________________


|---------+---------------------------->
|         |           damian_bradicich@|
|         |           stchome.com      |
|         |                            |
|         |           10/30/2003 10:44 |
|         |           AM               |
|         |           Please respond to|
|         |           "Struts Users    |
|         |           Mailing List"    |
|         |                            |
|---------+---------------------------->
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
  |                                                                                                                                                  |
  |        To:      "Struts Users Mailing List" <st...@jakarta.apache.org>                                                                     |
  |        cc:                                                                                                                                       |
  |        Subject: Problem with html:select tag calling set method in form                                                                          |
  >--------------------------------------------------------------------------------------------------------------------------------------------------|








I have a jsp that creates a select tag w/ size = 2 and multiple also true,
which gives me a list box w/ multi selection.

So, I open up the page, and I see all the data fine, I select a couple of
items in the list box and save, everything is great, my setter in the form
is getting called.  However, if i deselect all entries in the list box, and
save, the setter method in the form is not being called, has anyone else
noticed this?  If so, does anyone have a workaround?
___________________________________
Damian Bradicich
Software Developer
Scientific Technologies Corporation
Web Site: www.stchome.com
"Advancing Public Health Core Capacities While Leveraging the Resources of
a Community"
___________________________________


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org