Is there any tutorial or reference which can show me
how to use the Delegator component?

Can some body suggest how to learn such the tapestry
build-in component? I find it difficult to understand
and always have to guess how to use them?!

Thanks and regards
   Eric Tan

--- Andreas Andreou <[EMAIL PROTECTED]> 撰寫:
> First, take a look at RenderBlock. It's also useful
> in many cases.
>
http://jakarta.apache.org/tapestry/doc/ComponentReference/RenderBlock.html
> 
> However, for the specific problem you're describing
> (as I understand 
> it), you should use Delegator
>
http://jakarta.apache.org/tapestry/doc/ComponentReference/Delegator.html
> In your Frame.jwc, define a parameter of type 
> org.apache.tapestry.IRender (all components
> implement this)
> and in you Frame.html do something like:
> <span jwcid="@Delegator"
> delegate="ognl:myIRenderParameter"/>
> 
> Eric Tan wrote:
> 
> >Thank you Andreas Andreou!
> >
> >You solve my session problem.
> >But how about the left menu, how to implement
> "@Left"
> >component? So that other page can load dynamically
> >such as "userMenu.html", "productMenu.html"
> >
> >may be the result is like this
> >
> ><html jwcid="$content$">
> ><body jwcid="@Frame" left="userMenu">
> >    User content
> ></body>
> ></html>
> >
> >
> ><html jwcid="$content$">
> ><body jwcid="@Frame" left="productMenu">
> >    Product content
> ></body>
> ></html>
> >
> >Thanks & regards,
> >   Eric Tan
> >
> >--- Andreas Andreou <[EMAIL PROTECTED]> 撰寫:
> >  
> >
> >>Can't you turn your Left menu into a component?
> >>You can then use something like
> >><span jwcid="@Left"/> to include it in other
> >>components or
> >>pages.
> >>Also, in a component you can do
> >>ognl:page.visit to access the visit object
> >>
> >>Eric Tan wrote:
> >>
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 

__________________________________
想即時收到新 email 通知?
下載 Yahoo! Messenger
http://messenger.yahoo.com.hk/

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

Reply via email to