Re: BeanEditForm Component in Tapestry 5

2008-12-13 Thread SergeEby
The issue here is described in this bug: https://issues.apache.org/jira/browse/TAP5-414 /Serge nille hammer wrote: > > Sorry I messed up the code example corrected version: > public class Persion { > ... > @Id > @GeneratedValue(strategy = GenerationType.AUTO) > @NonVisual //<-- that exc

Re: T5: run time generation of pages?

2008-12-13 Thread nillehammer
Hi guys, I don't think it is possible to use Tapestry that way. As I have learned (and hopefully did not completely get wrong) from a Tapestry lesson once held by Igor and Renat, Tapestry determines the site's structure (i.e pages, components etc.) on application startup. For performance reasons th

Re: Usage of ApllicationState Object

2008-12-13 Thread Thiago H. de Paula Figueiredo
Em Sat, 13 Dec 2008 11:48:23 -0300, Martijn Brinkers escreveu: afaik you can only use ASO's from pages, components, mixins or base packages. That's absolutely correct for the @ApplicationState annotation, but you can still get and set ASO values using the ApplicationStateManager service.

Re: BeanEditForm Component in Tapestry 5

2008-12-13 Thread nillehammer
Sorry I messed up the code example corrected version: public class Persion { ... @Id @GeneratedValue(strategy = GenerationType.AUTO) @NonVisual //<-- that excludes this member from the generated // BeanModel. This could also be done manually whit "exclude". // (see BeanModel for furth

Re: BeanEditForm Component in Tapestry 5

2008-12-13 Thread nillehammer
With BeanEditForm Person need not be instanciated in onActivate. That is done "automagically" by the component itself. The Exception surely refers to the id. Id being the only number in your Person class. Although I do not know, why that would be a problem for Tapestry, you surely would not want t

Re: Entities referencing domain style Entities

2008-12-13 Thread nillehammer
Hi Luther, an alternative to contributing a DataTypeAnalyzer you could also use the annotation "DataType" on getters in your Entities so instead of doing public static void contributeDefaultDataTypeAnalyzer MappedConfiguration configuration) { configuration.add(Category.class, "category"); }

Re: Usage of ApllicationState Object

2008-12-13 Thread Martijn Brinkers
afaik you can only use ASO's from pages, components, mixins or base packages. (from http://tapestry.apache.org/tapestry5/guide/component-classes.html) "Component classes must exist within an appropriate package (this is necessary for runtime code transformation and class reloading to operate).

Usage of ApllicationState Object

2008-12-13 Thread Joe123 ---
Hello I have a question about the usage of an ApplicationState object. Can I use the @ApplicationState only in the com.application.tapestry.components and com.application.tapestry.pages packages? Or is it also valid in for example com.application.tapestry.beans package? Because I have an Conv

Re: T5: run time generation of pages?

2008-12-13 Thread Thiago H. de Paula Figueiredo
Em Sat, 13 Dec 2008 01:14:00 -0300, Angelo Chen escreveu: I don't know if this is possible, just like to ask around: say a .tml and and .java file are generated at run time from certain information kept somewhere, and these files are written to the correct t5 package, is there a way to compi

RE: how to install t5components library

2008-12-13 Thread Martijn Brinkers
It requires some libraries which are probably automatically downloaded when you are using maven. BSf can be found at: http://jakarta.apache.org/bsf/ Martijn On Sat, 2008-12-13 at 11:40 +, Joe123 --- wrote: > Hi > > I had already added it to the classpath, but I get the following error: > j

RE: how to install t5components library

2008-12-13 Thread Joe123 ---
Hi I had already added it to the classpath, but I get the following error: java.lang.NoClassDefFoundError: org/apache/bsf/BSFException > Subject: Re: how to install t5components library > From: martijn.l...@gmail.com > To: users@tapestry.apache.org > Date: Sat, 13 Dec 2008 10:33:19 +0100 > >

Re: how to install t5components library

2008-12-13 Thread Martijn Brinkers
You just have to add it to the classpath (Web App Libraries in Eclipse). Tapestry will automagically initialize the library (using a manifest entry) Martijn On Sat, 2008-12-13 at 09:23 +, Joe123 --- wrote: > Hi, > > Sorry for this dumb question, but I can't find any documentation about how I

Re: how to install t5components library

2008-12-13 Thread zack1403
http://87.193.218.134:8080/t5components/ org.apache.tapestry t5c-contrib ${tapestry-components-version} org.apache.tapestry t5c-commo

how to install t5components library

2008-12-13 Thread Joe123 ---
Hi, Sorry for this dumb question, but I can't find any documentation about how I can install the t5component library. Is there any info about this? Any help is welcome. thnx J. _ Connect to the next generation of MSN Messenger