You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Johan Maasing <jo...@zoom.nu> on 2005/07/26 10:10:06 UTC
render informal parameters in composite components
I got stuck on how to pass informal parameters from one component to
another (Tapestry 3).
Say that I have defined my own component C. The C.jwc allows informal
parameters.
Now the C.html template looks like this:
<span jwcid="A" /> <span jwcid="B" />
How can I make A render the informal parameters passed to C?
My concrete problem is that I want a component that acts like the Any
component except that the id parameter is generated from getIdPath (or
some unique string) and a script should be included on the page that
operates on the HTML element id. So the template is actually:
<span jwcid="@Any" element="ognl:element" id="ognl:idPath">
<span jwcid="@RenderBody"/>
</span>
<span jwcid="script"/>
Cheers,
Johan Maasing
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: render informal parameters in composite components
Posted by Johan Maasing <jo...@zoom.nu>.
Robert Zeigler wrote:
> Hi Johan,
> In your .jwc file of C, try:
>
> <component id="A" inherit-informal-parameters="yes">
> </component>
>
> Robert
That works, thanks a lot.
> Johan Maasing wrote:
>
>>I got stuck on how to pass informal parameters from one component to
>>another (Tapestry 3).
>>Say that I have defined my own component C. The C.jwc allows informal
>>parameters.
>>Now the C.html template looks like this:
>>
>><span jwcid="A" /> <span jwcid="B" />
>>
>>How can I make A render the informal parameters passed to C?
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: render informal parameters in composite components
Posted by Robert Zeigler <ro...@scazdl.org>.
Hi Johan,
In your .jwc file of C, try:
<component id="A" inherit-informal-parameters="yes">
</component>
Robert
Johan Maasing wrote:
> I got stuck on how to pass informal parameters from one component to
> another (Tapestry 3).
> Say that I have defined my own component C. The C.jwc allows informal
> parameters.
> Now the C.html template looks like this:
>
> <span jwcid="A" /> <span jwcid="B" />
>
> How can I make A render the informal parameters passed to C?
>
>
> My concrete problem is that I want a component that acts like the Any
> component except that the id parameter is generated from getIdPath (or
> some unique string) and a script should be included on the page that
> operates on the HTML element id. So the template is actually:
>
> <span jwcid="@Any" element="ognl:element" id="ognl:idPath">
> <span jwcid="@RenderBody"/>
> </span>
> <span jwcid="script"/>
>
> Cheers,
> Johan Maasing
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org