[xwiki-users] Help please :)
I have a multiple select, <select multiple="multiple" style="height:180px;" id="sourceArea" name="area" /> <displayType>select</displayType> #foreach($prop in $areasTecnologias) <option > $prop </option> #end But, when I'm going to get the results #if("$!{request.xcreate}" == 'source') ## ======================================================= ## Processing the creation form #set($area = "$!request.area") I only get the first value, only my first of mu group of options... What I am missing? Thanks -- View this message in context: http://xwiki.475771.n2.nabble.com/Help-please-tp7321734p7321734.html Sent from the XWiki- Users mailing list archive at Nabble.com.
On 02/27/2012 08:50 AM, acaserop wrote:
I have a multiple select,
<select multiple="multiple" style="height:180px;" id="sourceArea" name="area" /> <displayType>select</displayType> #foreach($prop in $areasTecnologias) <option> $prop</option> #end
But, when I'm going to get the results
#if("$!{request.xcreate}" == 'source') ## ======================================================= ## Processing the creation form
#set($area = "$!request.area")
I only get the first value, only my first of mu group of options...
What I am missing?
This is normal. $request.getParameterValues('area') will give you a list with the selected values.
Thanks
-- Sergiu Dumitriu http://purl.org/net/sergiu/
Thanks Sergiu!!! -- View this message in context: http://xwiki.475771.n2.nabble.com/Help-please-tp7321734p7322288.html Sent from the XWiki- Users mailing list archive at Nabble.com.
participants (2)
-
acaserop -
Sergiu Dumitriu