We have a couple of pages which use the same form (advanced and basic
search), so the reset method can't be used to clear the fields (as you
would for any normal pages).
I was hoping that the setter would be called to reset the field, so I am
putting javascript in to null out the field in the form so that the changes
will be saved properly
___________________________________
Damian Bradicich
Software Developer
Scientific Technologies Corporation
Tel: (603) 471-4712
Email: [EMAIL PROTECTED]
Web Site: www.stchome.com
"Advancing Public Health Through Information Technology"
___________________________________
|---------+-------------------------------->
| | <shirishchandra.sakha|
| | [EMAIL PROTECTED]> |
| | |
| | 11/04/2003 11:09 AM |
| | Please respond to |
| | "Struts Users Mailing|
| | List" |
| | |
|---------+-------------------------------->
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
| To: <[EMAIL PROTECTED]>
|
| cc:
|
| Subject: RE: Problem with html:select tag calling set method in form
|
>--------------------------------------------------------------------------------------------------------------------------------------------------|
what is it you are trying to do?I mean why the setter should be caled when
nothing is selected?
Just curious :-))
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 04, 2003 4:41 PM
To: Struts Users Mailing List
Subject: RE: Problem with html:select tag calling set method in form
I was thinking that was the case, but was hoping otherwise, I'll have to
come up w/ a javascript solution.
thx for the help Shirish
___________________________________
Damian Bradicich
Software Developer
Scientific Technologies Corporation
Tel: (603) 471-4712
Email: [EMAIL PROTECTED]
Web Site: www.stchome.com
"Advancing Public Health Through Information Technology"
___________________________________
|---------+-------------------------------->
| | <shirishchandra.sakha|
| | [EMAIL PROTECTED]> |
| | |
| | 11/04/2003 09:35 AM |
| | Please respond to |
| | "Struts Users Mailing|
| | List" |
| | |
|---------+-------------------------------->
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
| To: <[EMAIL PROTECTED]>
|
| cc:
|
| Subject: RE: Problem with html:select tag calling set method in
form |
>--------------------------------------------------------------------------------------------------------------------------------------------------|
This looke like correct to me.Because if you do not select anything, that
also means that there wont be any value sent for that request parameter.And
so the setter will not be called.
You can runa simple check.Check by calling request.getParameter if any
parameter with the name for the select box is being sent in request.I am
sure you wont find any...
HTH.
regards,
Shirish
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 04, 2003 3:21 PM
To: Struts Users Mailing List
Subject: 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: [EMAIL PROTECTED]
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"
<[EMAIL PROTECTED]>
|
| 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]