I finally got my form integrated with my own RenderingModelImpl class working 
(with much help from Richard, see details 
[url=http://forum.magnolia-cms.com/forum/thread.html?threadId=3f254fa9-4506-4830-8eee-44a5f18da5c4&page=1]here[/url])
 and have one minor bug left I can't figure out.

I have a couple multiple-select fields (guidedActivities and privateActivities) 
yand a group of checkboxes (buildings) in my form. 

The user can select multiple values in each select and multiple checkboxes. But 
of course each value within the select or group or checkboxes will have the 
same name.

So in my RenderingModelImpl class I need some way to get all of the values for 
each field. Obviously if I have a [i]public String getPrivateActivites()[/i] 
method, only the first value will be returned.

But I've tried both [i]public String[] getPrivateActivites()[/i] and [i]public 
ArrayList<String> getPrivateActivites()[/i]

and neither one works; it only gets the first chosen value. This is all 
automatic in a typical servlet. If you send multiple values under the same name 
the servlet converts them to an array automatically.

How do the getters and setters nee to be defined within my RenderingModelImpl 
class in order to get ALL submitted values?

Many thanks!

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=aca67aa4-a48d-4c09-8e18-0acb4d61fb40


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to