supressing rowsPerPage / pagination in grid component

2009-11-05 Thread Scot Mcphee
Is there any way in Tapestry 5 to suppress pagination for a gird component? I have a requirement to display a grid with the full list regardless of it's length. I tried rowsPerPage=0 but got a divide by zero error. I don't really want to copy the value of Integer.MAX_VALUE into that field ;-) than

Re: hibernate @Embedded

2009-10-24 Thread Scot Mcphee
Thanks Thiago, I'll just put the fields in the bean model. regs scot 2009/10/23 Thiago H. de Paula Figueiredo : > Em Thu, 22 Oct 2009 21:13:08 -0200, Scot Mcphee > escreveu: > >> When I include the containing object ("Car" in my example) in a >> Tapestry grid

hibernate @Embedded

2009-10-22 Thread Scot Mcphee
I have an object which uses another object with the javax.persistence @Embedded annotation. Eg. class "Car" with an @Embedded "Registration" object which has a couple of fields (say "rego_number" and "rego_expiry_date" for the sake of an argument). The annotation means that the "Car" table has thos

Re: Bean models?

2009-08-24 Thread Scot Mcphee
2009/8/24 Thiago H. de Paula Figueiredo : > > One solution is to provide a new view block for your class dates. You'll > need to implement a DataTypeAnalyzer, return a "formatteddate" type for your > class dats, contribute it to the DataTypeAnalyzer service, then provide a > view and an edit block

Bean models?

2009-08-24 Thread Scot Mcphee
I've got a class, that is ever only display-only. I need to show the date in the class in a specific format. What I cannot see how to do, is specify the format for the date of this class. I've had a look at the BeanModel documentation but I can't see how I make it work, the discussion I find about

Re: Organisation of Tapestry documentation

2009-08-20 Thread Scot Mcphee
2009/8/20 Otho : > Yeah, it would be nice to be at least able to read it already and comment on > it. > Would save you probably a ton of work. > > > 2009/8/20 Ulrich Stärk > >> Is the wiki freely accessible or are you doing this internally? >> >> On 16.08.2009 10:10 schrieb Howard Lewis Ship: >> >

Re: [T5] Does T5 work with JPA ?

2009-08-14 Thread Scot Mcphee
2009/8/15 bdumeny : > There is no specified scope for jpa dependencies... And the hibernate.jar is definitely in the generated WAR file? Otherwise try scope 'compile'. Obviously the javax.persistence jar is. > If only someone tells me that it's possible... > I haven't found any example of use t5/

Re: [T5] Does T5 work with JPA ?

2009-08-14 Thread Scot Mcphee
2009/8/15 bdumeny : > Yes, all included in my pom.xml. > > If I haven't dependencies my tests wouldn't work during a mvn install... well not strictly true seeing as you could could have it in a "test" scope (e.g. something I often do with the HSQL classes). sorry i had to ask the obvious question.

Re: [T5] Does T5 work with JPA ?

2009-08-14 Thread Scot Mcphee
Doesn't Tomcat - it being "just" a servlet and JSP engine and not a full blown JEE specification implementation - not have any actual JPA implementation? Are you including one in your WAR file, e.g. Hibernate? 2009/8/14 bdumeny : > Thiago H. de Paula Figueiredo a écrit : >> >> Em Fri, 14 Aug 2009

Re: Using a checkbox in a grid component

2009-08-10 Thread Scot Mcphee
On 10/08/2009, at 23:22 , raucha wrote: You might not even need any chenillekit on this. I use: Yes indeed. In the end I got this to work Which is remarkably similar to what I had in the first place. So I don't really know what I did wrong in the first ins

Using a checkbox in a grid component

2009-08-09 Thread Scot Mcphee
Hello Does any one have a short recipe how to use a checkbox in a grid component? What I need to do is fairly simple - let the use select (for example) three of five available options presented in a grid component, and submit their selections, which are then processed. A good example wo