On Tue, 25 May 2010 20:28:44 -0300, Dariusz Majewski <dariuszmajew...@gmail.com> wrote:

Hi All,

Hi!

    @Parameter(value="120")
    private int maxWidth;

Now my problem is that when I debug onMyCustomEvent method I can't see the real value of maxWidth parameter.

That's Tapestry doing it heavy wizardry: when it loads your component class, it replaces the @Parameter fields by invocations to methods that were added to the class. This also happens for many annotations besides @Parameter. For debugging, just create a variable. Something like
int realMaxWidth = maxWidth;

realMaxWidth will have the current value of maxWidth, including in the debugger.

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

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

Reply via email to