struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dakota Jack <dakota.j...@gmail.com>
Subject Re: map-backed forms with multibox/multiselect lists?
Date Mon, 07 Mar 2005 14:41:51 GMT
public void setFoos(String [] foos)


On Fri, 4 Mar 2005 18:55:53 +0000 (UTC), Mike Nidel <mike.nidel@lmco.com> wrote:
> I'm trying to build a form element that combines the features of a map-backed
> property with a multibox (and the same for a multiple-selection list). I've made
> multiboxes work fine without the map-backed element, but I can't seem to get
> this to work.
> 
> I've tried various method signatures in my form bean, but to no avail. For
> example, for a field called "foo" I have tried the following:
> 
> public void setFoo(String key, Object val)
> {
> ...
> }
> 
> or
> 
> public void setFoo(String key, String[] val)
> {
> ...
> }
> 
> I'm using a set of checkboxes on the JSP which should result in a list of the
> values of whichever boxes are selected. I can think of a number of javascript
> workarounds, as well as workarounds in my Action that go directly to the request
> parameters... but all of those are kludges and it seems like there should be a
> way to have multiple checkboxes that all reference a map-backed form property.
> 
> Any thoughts?
> 
> thanks a bunch,
> 
> Mike Nidel
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 


-- 
"You can lead a horse to water but you cannot make it float on its back."
~Dakota Jack~

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


Mime
View raw message