Very good, thanks.

On Thu, Aug 14, 2008 at 4:10 PM,  <[EMAIL PROTECTED]> wrote:
> Author: drobiazko
> Date: Thu Aug 14 16:10:14 2008
> New Revision: 686078
>
> URL: http://svn.apache.org/viewvc?rev=686078&view=rev
> Log:
> TAPESTRY-2137: The common idiom of connecting a component's id to a container 
> property should be easier: an attribute of the @Parameter annotation
>
> Modified:
>    tapestry/tapestry5/trunk/src/site/apt/cookbook/defaultparameter.apt
>
> Modified: tapestry/tapestry5/trunk/src/site/apt/cookbook/defaultparameter.apt
> URL: 
> http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/src/site/apt/cookbook/defaultparameter.apt?rev=686078&r1=686077&r2=686078&view=diff
> ==============================================================================
> --- tapestry/tapestry5/trunk/src/site/apt/cookbook/defaultparameter.apt 
> (original)
> +++ tapestry/tapestry5/trunk/src/site/apt/cookbook/defaultparameter.apt Thu 
> Aug 14 16:10:14 2008
> @@ -49,4 +49,16 @@
>   attribute forces the paarameter to be resolved first.  In many Tapestry 
> form components, the value
>   parameter is principal, so that the validate and translate parameters can 
> computer
>   defaults, based on the
> -  type and annotations bound to the value parameter.
> \ No newline at end of file
> +  type and annotations bound to the value parameter.
> +
> +  Using the autoconnect attribute you can also let Tapestry generate the 
> defaultGadget() method for you. In this case
> +  the code of component OutputGadget can be reduced to:
> +
> +---
> +public class OutputGadget
> +{
> +  @Parameter(required=true, principal=true, autoconnect = true)
> +  private Gadget gadget;
> +
> +}
> +---
> \ No newline at end of file
>
>
>



-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

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

Reply via email to