Re: [T5.0.18] Setter method was not called when '@Validate' was set.

2009-02-22 Thread inyokoyoko-develop
Hi, You can encounter the same problem with the following code in a freshly set up project. Please try. Click the submit button. Test.java - package org.example.myapp.pages; import java.util.Date; import org.apache.tapestry5.annotations.Property; import org.apa

App Block

2009-02-22 Thread Luther Baker
I have written an application property block (per the BeanEditForm tutorial) for a custom type. Is there a ideal event in the block component when I can assign the property to the PropertyEditContext? For instance, I have written a GenericSelectModel and it shows up correctly according to my custo

@Validate a user defined property

2009-02-22 Thread Luther Baker
I have a hibernate entity with a @ManyToOne mapping to another entity. public class Flight implements Serializable { @ManyToOne public Company getCompany() { return company; } ... } I successfully registered both a display and an edit block for this property so it renders

Re: [T5.0.18] Setter method was not called when '@Validate' was set.

2009-02-22 Thread Markus Lux
I'm using the same version as you do - 5.0.18 Have you tried the same code in a freshly set up project? The problem seems to be somewhere else in your project. On Sun, Feb 22, 2009 at 5:55 PM, wrote: > Hi, > > What version are you using? > > With the following code setName() was called. > > @Pro

Re: [T5.1] Running on Glassfish?

2009-02-22 Thread Howard Lewis Ship
5.1 parses templates using the Woodstock STaX parser ... and it uses a couple of Woodstock extensions. I'm not familiar with Glassfish, but I suspect it is forcing its own STaX parser on you, ignoring the Woodstock parser. There probably an option to turn that off. On Fri, Feb 20, 2009 at 7:35 PM,

Re: [T5.0.18] Setter method was not called when '@Validate' was set.

2009-02-22 Thread inyokoyoko-develop
Hi, What version are you using? With the following code setName() was called. @Property( write = false ) private String name; public void setName( String name ){ <== called ... this.name = } With the following code setName() was not called. @Property( write = false ) @Valida

How to set actionlink id dynamically

2009-02-22 Thread andrethiago
Hi all! I want to build a menu inside a loop. Something like this: http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> ${item.menuDescription} I want to generate the Actionlink id dinamically. But t:id="${item.actionId}" does not

Re: [T5.0.18] Setter method was not called when '@Validate' was set.

2009-02-22 Thread Markus Lux
With your example code I'm getting an ComponentEventException saying that "name" is read-only. Try adding a public-modifier to your setter. That worked for me. On Sun, Feb 22, 2009 at 3:49 PM, wrote: > Hi, > > When I set '@Validate' for a TextField, the setter was never called. > It seems to be

[T5.0.18] Setter method was not called when '@Validate' was set.

2009-02-22 Thread inyokoyoko-develop
Hi, When I set '@Validate' for a TextField, the setter was never called. It seems to be a bug. @Property( write = false ) @Validate( "Required,MinLength=5,MaxLength=16" ) private String name; void setName( String name ){ <=== not called ... this.name = } Thanks, osamuo -

T5: Create a skinnable application

2009-02-22 Thread Markus Lux
Hi, I want to create an T5 application that supports skins/themes. How is it possible to get this done with template files? Think, I'll somehow need to define different template files for my components and pages at runtime. How do I do that?

Re: t5: properties file under WEB-INF as app.properties

2009-02-22 Thread Alex Kotchnev
Angelo, have you tried putting the file under WEB-INF/classes ? That is the path that is on the classpath and should be findable by your code. Cheers, Alex Kotchnev On Fri, Feb 20, 2009 at 9:25 PM, Angelo Chen wrote: > > Hi, > I have a .properties file now under resources, using following co

Re: [T5.1] Running on Glassfish?

2009-02-22 Thread Alex Kotchnev
I had tested my app on Glassfish v. 2 and v. 3 prelude and didn't have any issues. Cheers, Alex K On Fri, Feb 20, 2009 at 10:35 PM, xfile80303 wrote: > > Hello all, > > I've been developing locally on Tomcat, but will have to ultimately deploy > onto https://glassfish.dev.java.net/ Glassfish