Hi

One way would be to use Block Parameters.

(Warning: Code not tested)

public class MyLayout {

   @Parameter(defaultPrefix = BindingConstants.BLOCK)
   @Property
   private Block myBlock;

   @Inject
   private Block myDefaultBlock;

   Block defaultMyBlock(){
      return myDefaultBlock;
   }

}

<t:container xmlns....>

   <t:delegate to='myBlock'/>


   <t:block id='myDefaultBlock'>
      My Default Content...
   </t:block>
</t:container>

regards
Taha


On May 15, 2012, at 4:30 PM, Arno Haase wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> It is straightforward to build a component that embeds a single body,
> using <t:body />.
> 
> I would like to extend that so that a component can have several
> bodies. For example, I would like to build a layout component that
> allows a page to contribute to the title bar as well as provide a page
> body.
> 
> Any pointers or ideas on this?
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.11 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
> 
> iEYEARECAAYFAk+yN14ACgkQbmZsMyUPuXRNpgCgyuoqj/FgHMMvwIbtV33ZIELy
> mOgAn36W5kmVWK46vUdGPyFIjems5Acv
> =9YMs
> -----END PGP SIGNATURE-----
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to