Em Wed, 13 Aug 2008 21:00:01 -0300, Jim Tomlinson <[EMAIL PROTECTED]>
escreveu:
I'm vapor-locking on how to specify a List of values in a Form
component's context parameter. In this form:
<form t:type="form" t:id="updateForm" t:context="${foo}, ${bar}">
Try this instead:
<form t:type="form" t:id="updateForm" t:context="context">
public List getContext() {
List list = new ArrayList();
list.add(getFoo());
list.add(getBar());
return list;
}
the onPrepare... method doesn't get called at all. What's the magic to
correctly constructing the context parameter as a List (which the docs
say is possible). Thanks.
The magic :) is remembering that ${} property expansions turns the values
into Strings. You shouldn't use them for component parameters (at least
97% of the time).
Thiago
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]