Hey,

I needed a similar behavior and you just need this mixin :

public class Prepare {
    @Parameter
    private Object[] context;

    @Inject
    private ComponentResources componentResources;

    void setupRender() {
        componentResources.triggerEvent("prepare", context, null);
    }
}

2012/11/5 Thiago H de Paula Figueiredo <thiag...@gmail.com>

> On Sun, 04 Nov 2012 14:55:53 -0200, membersound <memberso...@web.de>
> wrote:
>
>  Hi,
>>
>
> Hi!
>
>
>  can I specify a onPrepareFromGrid() method somehow?
>>
>> I tried <t:grid t:id="mygrid" id="mygrid" />
>>
>> onPrepareFromMygrid() {
>>    sysout("never gets called");
>> }
>>
>> Can't I assign a onPrepare method only to a specific grid?
>>
>
> No, Grid doesn't trigger any such event. Why do you need that?
>
> --
> Thiago H. de Paula Figueiredo
>
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: 
> users-unsubscribe@tapestry.**apache.org<users-unsubscr...@tapestry.apache.org>
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

Reply via email to