Re: T5, newbie: [Solved] Component parameter passing problems

2008-04-04 Thread Alec Leamas
ndex out of bounds. Davor Hrg wrote: 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,

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

2008-04-02 Thread Alec Leamas
till 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 broken that I can actually run through a debugger to go any deeper. Josh On W

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 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 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: T4: Problems running Tapestry application under java-1.7.0-icedtea

2008-04-01 Thread Alec Leamas
I' m using IcedTea, and it seems to work OK. However, Tapestry is java 5/1.5, so I had set both the javac source code and target options to "1.5" to get rid of some mysterious errors using T5. I guess T4 is the same. --Alec PS: Have to check if my own problems are related to IcedTea... DS

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 Alec Leamas
a 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 problems pass

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

Re: Newbie,T5: Grid limitations (long).

2008-03-25 Thread Alec Leamas
Jesper Zedlitz wrote: Alec Leamas wrote: - The paging policy with a fixed number of numbered pages is hardcoded and can't be changed. Other policies e. g., overlap between pages Isn't that something you can handle inside your own GridDataSource? With the page number, the

Newbie,T5: Grid limitations (long).

2008-03-25 Thread Alec Leamas
First of all: Overall is Tapestry 5 in general and the the Grid component in particular an amazing piece of software. So this is *not* complaints, just an attempt to sort things out, to share my experiences and check that I understand things correctly. I have a use case where I'm about to pres

Re: ApplicationState annotation problem since 5.0.11

2008-03-18 Thread Alec Leamas
Hi! What are you really trying to do here? For me, this looks like a typo. Have you contributed an ApplicationStateObject? Then you need to refer to this. I'm pretty sure Tapestry doen't have a String ApplicationState object in place... I would expect something like @ApplicationState private

Re: T5, newbie: Grid use w dynamic columns

2008-03-16 Thread Alec Leamas
One of these days... it works to add a property to a BeanModel. If I - RTFM i. e., the javadocs. - Provide a PropertyConduit to add(). (I missed that) Sorry for wasting bandwidth --alec. Michael Kolmodin wrote: Thanks for taking time for silly me :-) Should have said that, but I tried to a

T5, newbie: Grid use w dynamic columns

2008-03-16 Thread Alec Leamas
Trying the hard parts first, I'm trying to create a table where the columns are not known until runtime. The application is basically a viewer, and the underlying database schema varies from time to time. My question: is it somehow possible to define what columns to use in the Grid component i

Re: T5: Implementing a Grid index strategy?

2008-03-11 Thread Alec Leamas
their own GridPagerModel which the grid (or grid pager) would query for: The # of pages The page labels The rows for a particular page However, this seems like the sort of thing that should come in 5.1, imo. Robert On Mar 11, 2008,

Re: T5: Implementing a Grid index strategy?

2008-03-11 Thread Alec Leamas
stomized Grid. I think I would use a filter on the Grid; so you have a set of controls for selecting the search letter, that applies a filter to the Grid contents, then the Grid renders just the values within that letter. On Tue, Mar 11, 2008 at 6:58 AM, Alec Leamas <[EMAIL PROTECTED]> wrote

Re: T5: Implementing a Grid index strategy?

2008-03-11 Thread Alec Leamas
ily mark the first one, so it is noticed instantly and that way pager and indexer are not in conflict.. definitely an user friendly feature you're creating there :) Davor Hrg On Tue, Mar 11, 2008 at 2:43 PM, Alec Leamas <[EMAIL PROTECTED]> wrote: It's an option, but not a good one. L

Re: T5: Implementing a Grid index strategy?

2008-03-11 Thread Alec Leamas
doc :-) ) --alec Davor Hrg wrote: why is calculating page not an option ? does selected row have to be first or you just wan to navigate to the fist page that contains the row ? Davor Hrg On Tue, Mar 11, 2008 at 2:15 PM, Alec Leamas <[EMAIL PROTECTED]> wrote: I'm about to conv

T5: Implementing a Grid index strategy?

2008-03-11 Thread Alec Leamas
;c', There are also links to go on page forward/backward. Like this: < a b c d e f g h i j k l m n o p q r s t u v x y z > This is actually useful, it's much easier to press 'l' looking for leamas the to try to guess which page nr he is at. In T4, I had to recode

Re: "No engine service is available" problem - solved

2007-03-29 Thread Alec leamas
With a little help, and some more time, I've been able to solve this. The solution iwas not that simple, so lets share it. Short answer: RTFM i. e., the workbench example ;-) Long answer: To summarize: I have a page which needs to invoke an external service, with some parameters. The external s

"No engine service is available" problem

2007-03-23 Thread leamas
I' trying to convert an old, pre 3.0 tapestry application to T4.1. Although it's quite some work, most of it goes smoothly. However, I have an external service called "Pdf", and it doesn't work at all. Basically, when I'm trying to render a page containing a link to the service I get the message