You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Andreas Pardeike <ap...@fsys.se> on 2008/10/13 08:58:56 UTC

T5: How to pass variables/data from a component to its parents parameter block

Hi,

I have a component A that calls a component B like this:

<B source="alist" value="foo">
   <parameter name="test">
     <something val="foo"/>
   </parameter>
</B>

and in B, I want to iterate over 'source' and for each value
render the block that is defined by parameter 'test'.

My question: it seems that when the block (in this case
something val="foo"/>) is evaluated, 'foo' is evaluated
in the context of component 'A'. What is the best strategy
here? Should A have a property that the loop of B will
modify or, better, can I make it so that foo is evaluated
within the context of B?

Any help and insights appreciated,
Andreas Pardeike

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