that makes me a lot of sense!..... :-[

Thank you!

Wouter Zoons wrote:
You have to put the tagged value to 'select', as you probably did; if
you look at the code you pasted you'll see that the multiple flag is
determined by checking the type of the parameter: if it's a collection
or array it will be set, otherwise not

So to solve your problem: set the parameter type to 'String' or
something, the collection containing all the items to select from will
be called '${parameter.name}BackingList'

-- Wouter

  
-----Original Message-----
From: [EMAIL PROTECTED]
    
[mailto:andromda-devel-
  
[EMAIL PROTECTED]] On Behalf Of Carlos Cuenca
Sent: Sunday, August 15, 2004 12:07 PM
To: andromda devel
Subject: [Andromda-devel] Bpm4Struts combo box and lists

Hi,
I had been trying to use the combo box (a select without multiple), I
can not get it work because:
within the StrutsParameterLogicImpl:
 public boolean handleIsMultiple()
    {
        return getType().isCollectionType() ||
    
getType().isArrayType();
  
    }

and on the StrutsJSP.vm the template is:
#elseif ($widgetType == 'select')
#if ($field.multiple)
#set ($multiple = 'multiple="multiple"')
#else
#set ($multiple = '')
#end
#if ($field.readOnly)
#set ($disabled = 'disabled="disabled"')
#else
#set ($disabled = '')
#end
#if ($field.type.collectionType)
#set ($selectProperty = "${fieldName}AsArray")
#else
#set ($selectProperty = "$fieldName")
#end
${indent}<select name="$selectProperty" title="<bean:message
key="${messageKey}.$field.titleKey"/>" $disabled $multiple>

... so it will be always multiple, since the parameter is always a
collection?
am I correct? shall I submit to jira?

Carlos



-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Andromda-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/andromda-devel
    



  

Reply via email to