Hi All,

         I'm having problems debugging my tapestry application. I'm using
Eclipse 3.5.0 and tapestry 5.2-SNAPSHOT.
I have a custom component with parameter

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

which is then set during my component invocation inside page
<t:myComponent t:maxWidth="1200" />

now I have a eventListener in my component let's say sth like this

public StreamResponse onMyCustomEvent(){
    if(300 > maxWidth){
        return new
TextStreamResponse(responseRenderer.findContentType(this), "300 >
"+maxWidth);// this is never executed
    }
    return new TextStreamResponse(responseRenderer.findContentType(this),
"everything is OK - "+maxWidth);//
}

Now my problem is that when I debug onMyCustomEvent method I can't see the
real value of maxWidth parameter. Debugger shows me this value as 0 but the
response I get from my listener is "everything is OK - 1200". I can see that
my component object has a field created by tapestry _$maxWidth$conduit that
corresponds to maxWidth and this object has a value field that contains my
1200 value.

I'm writing because maybe someone had a similar problem or knows how to
setup eclipse to show real value of maxWidth without looking
inside _$maxWidth$conduit. The same thing happens to fields inside my pages.
I can see their values only by inspecting the conduit but corresponding
fields are null.

Best regards,
Dariusz

Reply via email to