Hi,

Either assemble the list in a method of your page class or use the list binding prefix from the wiki.

http://wiki.apache.org/tapestry/Tapestry5HowToAddBindingPrefix

-Filip

On 2008-08-14 02:00, Jim Tomlinson wrote:
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}">

Tapestry correctly calls my 'String getFoo()' and 'Long getBar()' methods when preparing to render (let's say they return "fooString" and 1L respectively), but my onPrepare... doesn't get called correctly with the resulting values as a List. If I declare

   onPrepareFromUpdateForm(String bothVals)

I get the String: "fooString, 1"

If I declare it as

   onPrepareFromUpdateForm(String fooVal, long barVal)

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.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to