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]> ΌΆΌg:
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]

Reply via email to