Re: required fields formatting BEFORE validation

2008-03-16 Thread petros
What java class must the IValidationDelegate extend. Should it be placed under the components package How can we use this new validator in our pages Petros Martino Piccinato wrote: > > Ok, > > I reply to myself hoping this would be of any help for somebody else. > Is as simple as to make your

Re: T5 ioc eager load with more than one module

2008-03-16 Thread Howard Lewis Ship
The order of operations for EagerLoad is not determined. This could be a bug if it is reproducible. It should apply to all services across all modules. On Sun, Mar 16, 2008 at 4:30 PM, Martijn Brinkers <[EMAIL PROTECTED]> wrote: > Hi, > > I'm using Tapestry 5 IOC stand alone (ie not using the w

T5 ioc eager load with more than one module

2008-03-16 Thread Martijn Brinkers
Hi, I'm using Tapestry 5 IOC stand alone (ie not using the web stuff). I have two modules for building my services. Some services need to be eager loaded so I have added the @EagerLoad annotation and call performRegistryStartup() after RegistryBuilder.build(). The problem I face is that only the

Re: Ajax chart service

2008-03-16 Thread bioye
I'm using T4? Will this work in tapestry 4.1.3. And if necessary, can you provide links or sample code on how to handle this in t4? Thanks. Davor Hrg wrote: > > you need not ajax here, > > just change src of the image, > > first create an action link that can produce an image > then use ja

Re: Ajax chart service

2008-03-16 Thread Renat Zubairov
IMHO you don't need AJAX for that, becuase AJAX require XML HTTP Request to client, you don't really need to do that in case you know how your image URL should looks like. For example if you implementing a zooming functionality you just need a javascrtip to select an area of the image, then you cal

Re: Ajax chart service

2008-03-16 Thread Davor Hrg
you need not ajax here, just change src of the image, first create an action link that can produce an image then use javascript to switch urls for the image... http://wiki.apache.org/tapestry/Tapestry5HowToCreatePieChartsInAPage Davor Hrg On Sun, Mar 16, 2008 at 11:07 PM, bioye <[EMAIL PROTECT

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

Ajax chart service

2008-03-16 Thread bioye
I have a service that generates images for using jfreechart. I want to convert this service to ajax so that the chart image can load without reloading the whole page. I have played around with div's and updateComponent and ResponseBuilder. The ajax response seems to be generated but the image i

Re: T5, newbie: Grid use w dynamic columns

2008-03-16 Thread Michael Kolmodin
Thanks for taking time for silly me :-) Should have said that, but I tried to add a property to a BeanModel. However, this seems to fail if the class which was fed to the model's constructor doesn't have the property getter. As I understand it, I can enable/disable existing properties on a bea

Re: T5, newbie: Grid use w dynamic columns

2008-03-16 Thread Davor Hrg
Grid uses BeanModel, no need to mess with javassist you can create default one by injecting BeanModelSource and create it with it after that you can play with the model. or you can provide a list of columns to the grid to include/exclude Davor Hrg On Sun, Mar 16, 2008 at 4:47 PM, Alec Leamas <[

Re: T5 : How to access to a Component Body ?

2008-03-16 Thread Francois Armand
Howard Lewis Ship wrote: You should think not of the Tabs conponent "controlling" the Tab components, but of all of them working together. The Tabs component can place an object into the Environment. The Tab components can retrieve that object, to "register" themselves so that the Tabs can rend

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: How to remove default.css?not replace

2008-03-16 Thread Kevin Menard
My guess is that he meant a valid CSS file that simply has no styling rules in it. -- Kevin On 3/16/08 8:29 AM, "jimlaren" <[EMAIL PROTECTED]> wrote: > I notice the TAPESTRY-2161 which is about this problem, Christian said > "I would close this issue because you can override the default CSS wi

Re: T5: How to remove default.css?not replace

2008-03-16 Thread jimlaren
I notice the TAPESTRY-2161 which is about this problem, Christian said "I would close this issue because you can override the default CSS with an empty one (which is in fact the same as disabling it).",but I try empty string and null both do not work,what is the meaning of empty one, thanks! j

Re: HibernateEntityPackageManager contributions not being processed in 5.0.12

2008-03-16 Thread Hugo Palma
I changed from 5.0.7 to 5.0.11 in this case. I didn't change any code in my app, i just upgraded the Tapestry version. I'll try Monday (can only test this from the office) to upgrade into every version between 5.0.7 and 5.0.11 to see in which version it stopped working so that i can get more clues

How to override a service create with @Marker

2008-03-16 Thread Robin Helgelin
Hi, This is my SaltSource service from tapestry5-acegi package. @Marker(AcegiServices.class) public static SaltSource buildSaltSource(@Inject @Value("${acegi.password.salt}") final String salt) { SystemWideSaltSource s = new SystemWideSaltSource(); s.setSystemWideSalt(salt

Re: T5: Hibernate ValueEncoders

2008-03-16 Thread Filip S. Adamsen
Hi, It means that you can pass Hibernate entities around instead of ids. Example: void onActivate(Long id) { User user = session.get(User.class, id); } Long onPassivate() { return user.getId(); } becomes void onActivate(User user) { ... } User onPassivate() { return user; } And so fo