On 10/27/07, Robin Helgelin <[EMAIL PROTECTED]> wrote:
> thanks for the prefixMethod. However, the original issue suggests that
> one should be able to rename a method, are there any works on this?

Ok, I have something running here but I'm having two different kind of problems.

1: I use CtNewMethod.copy to copy the old method, however, this also
copies the annotations, which leads to Tapestry adding the method
twice to the handleEvents... method. Any ideas how to solve that?

2: The untransformed method looks like this:
    @Persist
    private int counter = 1;

    @OnEvent(component = "counter")
    public void doCounter() {
        counter++;
    }

which works fine before I work on it, but after I rename it, the
counter stops working, even though I can confirm that the counter is
actually increased, Tapestry doesn't persist the value, only the last
value before I transformed the method. Any ideas where I should look?

-- 
        regards,
        Robin

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to