One more question. How to pass enclosing component into nested. I mean
"self". In loop i render elements and i want to pass enclosing element
as parameter in template
For example: (start component template)
<div id="feedList"
xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";
xmlns:p="tapestry:parameter">
    <ul>
        <li t:type="loop" t:source="feeds" t:value="feed">
            <t:feedelement feed="feed" feedList="component:feedList"/>
        </li>
    </ul>
    <a t:type="PageLink" t:page="EditFeed" href="#">Create new Feed...</a>
</div>

I want to pass FeedList (template of which) into FeedElement. But my
example are wrong.

On Tue, Aug 18, 2009 at 04:33, Andrey Larionov<anlario...@gmail.com> wrote:
> Thanks. I'll try it.
>
> On Tue, Aug 18, 2009 at 04:20, Thiago H. de Paula
> Figueiredo<thiag...@gmail.com> wrote:
>> Em Mon, 17 Aug 2009 21:07:43 -0300, Andrey Larionov <anlario...@gmail.com>
>> escreveu:
>>
>>> As i understand, i should in first component create a field of type of
>>> second component and anotate this field as non required parameter?
>>
>> Yes.
>>
>>> How do i inject second component in first? From template? Or on class
>>> side?
>>
>> From template, you can pass a component to a component parameter:
>> t:parametername="component:componentId".
>> In a page or component class that uses the given component, @InjectComponent
>> private ComponentType component;
>>
>> --
>> Thiago H. de Paula Figueiredo
>> Independent Java consultant, developer, and instructor
>> http://www.arsmachina.com.br/thiago
>>
>> ---------------------------------------------------------------------
>> 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