Re: T5, newbie: Component parameter passing problems (#2)

2008-04-02 Thread Alec Leamas
I actually got the same idea, just after pushing the send button. It's quite a task, though, to carve this out. But it's certainly my job. I'll make a try. In the meanwhile: an observation. Looking at the breakpoint in BugPage.getListsource () I can see the call stack. At the top is Layout.

Re: T5, newbie: Component parameter passing problems (#2)

2008-04-02 Thread Josh Canfield
Hey Alec, I was hoping for something a little more minimal, but still complete/compilable. :) I still can't reproduce the problem, but maybe @Persist on your report property is the culprit? Try it with out that. That's a shot in the dark though, so if that doesn't help I think I'll need something

Re: T5, newbie: Component parameter passing problems (#3)

2008-04-02 Thread Alec Leamas
Hm... looking more on your example... Seems that yoyr example and my ReportSize component are similar and both do indeed work. So it's something with the Layout component... --alec - To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: T5, newbie: Component parameter passing problems (ยค3)

2008-04-02 Thread Alec Leamas
Hm... looking more into your example As I understand it, your example and my ReportSize component are really similar and both do indeed work demonstrating that *is* possible to pass the arguments. So it is something with the Layout component... Feeling dumb, need a better brain. --alec

Re: T5, newbie: Component parameter passing problems (#2)

2008-04-02 Thread Alec Leamas
Josh Canfield wrote: Hey Alec, Looking at small excerpts from a large file leaves too much to the imagination. Can you create a minimal but complete page and component that reproduces the problem? Yes, I should have done it long time ago, I know. Below is the complete example, removing all o

Re: T5, newbie: Component parameter passing problems (#2)

2008-04-02 Thread Josh Canfield
Hey Alec, Looking at small excerpts from a large file leaves too much to the imagination. Can you create a minimal but complete page and component that reproduces the problem? It feels like there is a bad return type or something on one of the methods in the chain, so having a complete non-workin

Re: T5, newbie: Component parameter passing problems (#2)

2008-04-02 Thread Alec Leamas
age class. You've shared the component code. Can you share the relevant page code? (Declaration, initialization, getters and setters...) Jonathan -Original Message- From: Alec Leamas [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2008 5:27 PM To: Tapestry users Subject: Re:

Re: T5, newbie: Component parameter passing problems (#2)

2008-04-02 Thread Alec Leamas
the page class. You've shared the component code. Can you share the relevant page code? (Declaration, initialization, getters and setters...) Jonathan -Original Message- From: Alec Leamas [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2008 5:27 PM To: Tapestry users Subjec

RE: T5, newbie: Component parameter passing problems (#2)

2008-04-01 Thread Jonathan Barker
tters and setters...) Jonathan > -Original Message- > From: Alec Leamas [mailto:[EMAIL PROTECTED] > Sent: Tuesday, April 01, 2008 5:27 PM > To: Tapestry users > Subject: Re: T5, newbie: Component parameter passing problems (#2) > > My problem is not just with lists:

Re: T5, newbie: Component parameter passing problems

2008-04-01 Thread Josh Canfield
hat your MyMap > > works? > > > > If you can present a non-Tapestry test that works, and corresponding > > Tapestry test that doesn't, then I think you'll find an answer quickly. > > > > Jonathan > > > > > > > > > >>

Re: T5, newbie: Component parameter passing problems (#2)

2008-04-01 Thread Alec Leamas
e proof that your code works outside of Tapestry? Why, and how, did you EXTEND TreeMap? Do you have a unit test to prove that your MyMap works? If you can present a non-Tapestry test that works, and corresponding Tapestry test that doesn't, then I think you'll find an answer quickly.

Re: T5, newbie: Component parameter passing problems

2008-04-01 Thread Alec Leamas
t that works, and corresponding Tapestry test that doesn't, then I think you'll find an answer quickly. Jonathan -Original Message- From: Alec Leamas [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2008 8:37 AM To: Tapestry users Subject: Re: T5, newbie: Compone

RE: T5, newbie: Component parameter passing problems

2008-04-01 Thread Jonathan Barker
a non-Tapestry test that works, and corresponding Tapestry test that doesn't, then I think you'll find an answer quickly. Jonathan > -Original Message- > From: Alec Leamas [mailto:[EMAIL PROTECTED] > Sent: Tuesday, April 01, 2008 8:37 AM > To: Tapestry users > Subj

Re: T5, newbie: Component parameter passing problems

2008-04-01 Thread Alec Leamas
public List getRows() {...} Davor Hrg wrote: how is getRows declared in your page class ? On Tue, Apr 1, 2008 at 2:09 PM, Michael Kolmodin <[EMAIL PROTECTED]> wrote: OK, thanks... In my page, I have The columns argument, a List is just fine. The rows argument, a List is the problem.

Re: T5, newbie: Component parameter passing problems

2008-04-01 Thread Davor Hrg
how is getRows declared in your page class ? On Tue, Apr 1, 2008 at 2:09 PM, Michael Kolmodin <[EMAIL PROTECTED]> wrote: > OK, thanks... > > In my page, I have rows="prop:rows"/> > > The columns argument, a List is just fine. > The rows argument, a List is the problem. > > The page has a List

Re: T5, newbie: Component parameter passing problems

2008-04-01 Thread Michael Kolmodin
OK, thanks... In my page, I have The columns argument, a List is just fine. The rows argument, a List is the problem. The page has a List getRows() which is verified. Looking in MyComponent.java, I have @Parameter private List rows; @Parameter private List columns; public S

Re: T5, newbie: Component parameter passing problems

2008-04-01 Thread Davor Hrg
Tapestry support for Java generics is very limited, you need a value encoder to make this work, also, add more details on who calls what... so more is known of the problem you are trying to solve. Davor Hrg On Tue, Apr 1, 2008 at 1:43 PM, Alec Leamas <[EMAIL PROTECTED]> wrote: > I have problem

T5, newbie: Component parameter passing problems

2008-04-01 Thread Alec Leamas
I have problems passing my own datatype(s) to my own component. The component takes two parameters, one List and one List. MyMap is declared as MyMap extends TreeMap {...}. The first parameter, a list of strings arrives safely to my component. However, the other one, seems to be mixed up: whe