Wouter Zoons wrote:
Model a <<FrontEndView>> and add an outgoing transition with a parameter on
it .. add the @andromda.strutsview.field.type=select tagged value to this
parameter

Now model an action state with a transition going into this
<<FrontEndView>>, defer to a controller operation from this action state,
make sure the controller operation you are calling there has a parameter
with the same name and type as the one modeled on the transition.

Ahh! That was the key!


In you controller implementation class you will indeed have *ValueList and *LabelList operations, did you read the Javadocs rendered for those methods ? They basically say you need to set the values for the list by using setXXXValueList(Object[]) .. the labels (if different than the values) can be set using setXXXLabelList(Object[])

I utsl:ed that one, thanks :-)


The online-store has an example of this, the thing is that int the example it is using a parameter that is a collection-type and therefore the combobox will show as a listbox (= multiple selection allowed)

-- Wouter

Great! This text could go into the howto - very useful stuff.

        Cheers Leif


------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Andromda-user mailing list Andromda-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to