Author: drobiazko Date: Wed Jan 27 07:40:25 2010 New Revision: 903558 URL: http://svn.apache.org/viewvc?rev=903558&view=rev Log: TAP5-826: The ActionLink documentation is missing the option to use object arrays as context inside templates
Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/ActionLink.xdoc Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/ActionLink.xdoc URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/ActionLink.xdoc?rev=903558&r1=903557&r2=903558&view=diff ============================================================================== --- tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/ActionLink.xdoc (original) +++ tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/ActionLink.xdoc Wed Jan 27 07:40:25 2010 @@ -106,7 +106,15 @@ you may need to include a company id as well as the account id. You can build an object array to contain both values: </p> + <p>You can do this in a template using the following syntax</p> + <source><![CDATA[ +<t:actionlink t:id="foo" context="[account.companyId,account.id]">test foo</t:actionlink> + ]]> + </source> + <p> + Alternatively, you can provide a getter which returns an object array. + </p> <source><![CDATA[ public Object[] getAccountContext() {