Re: Q: java.lang.ClassNotFoundException: org.apache.tapestry5.TapestryFilter ? [SOLVED]

2011-02-28 Thread penyihirkecil
Thnx you, It works now. On 01/03/2011 4:27, Kalle Korhonen wrote: http://tynamo.org/Developing+with+Tomcat+and+Eclipse Kalle On Mon, Feb 28, 2011 at 5:34 AM, penyihirkecil wrote: Using mvn jetty:run works perfectly. But i want to try another way ^^, On 28/02/2011 20:26, Thiago H. de Paula F

Re: SSO in ComponentRequestFilter

2011-02-28 Thread Dan Griffin
Yes, that works. Thanks. On Mon, 28 Feb 2011 23:07:00 -0300, Dan Griffin wrote: Yes, thank you Kalle. It seams that I haven`t diagnosed my problem properly. My real issue here is that I can`t use SessionScoped in ComponentRequestFilter instance. Is there a way around this? You can only

Re: SSO in ComponentRequestFilter

2011-02-28 Thread Thiago H. de Paula Figueiredo
On Mon, 28 Feb 2011 23:07:00 -0300, Dan Griffin wrote: Yes, thank you Kalle. It seams that I haven`t diagnosed my problem properly. My real issue here is that I can`t use SessionScoped in ComponentRequestFilter instance. Is there a way around this? You can only use the @SessionState an

SSO in ComponentRequestFilter

2011-02-28 Thread Dan Griffin
Yes, thank you Kalle. It seams that I haven`t diagnosed my problem properly. My real issue here is that I can`t use SessionScoped in ComponentRequestFilter instance. Is there a way around this? That's the default. Only if you use @EagerLoader, the services are instantiated.. err.. eagerly, oth

Re: Lazy injection

2011-02-28 Thread Kalle Korhonen
That's the default. Only if you use @EagerLoader, the services are instantiated.. err.. eagerly, otherwise the actual service is created (realized) on the first invocation of the service proxy. Kalle On Mon, Feb 28, 2011 at 4:03 PM, Dan Griffin wrote: > Hi all, > > Is there a way to inject a se

Lazy injection

2011-02-28 Thread Dan Griffin
Hi all, Is there a way to inject a service lazily? Thanks, Dan - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org

Re: Defining validation properties for a textfield embedded within another component

2011-02-28 Thread LLTYK
I'd think of a way to avoid using a bunch of css class names to begin with. Perhaps a better css selector would work with no changes to the class names. Maybe you could stamp the class you want on the div or whatever that contains all these fields. -- View this message in context: http://tapestr

Re: Q: java.lang.ClassNotFoundException: org.apache.tapestry5.TapestryFilter ?

2011-02-28 Thread Kalle Korhonen
http://tynamo.org/Developing+with+Tomcat+and+Eclipse Kalle On Mon, Feb 28, 2011 at 5:34 AM, penyihirkecil wrote: > Using mvn jetty:run works perfectly. But i want to try another way ^^, > > On 28/02/2011 20:26, Thiago H. de Paula Figueiredo wrote: >> >> On Mon, 28 Feb 2011 10:23:09 -0300, penyih

Re: Defining validation properties for a textfield embedded within another component

2011-02-28 Thread Thiago H. de Paula Figueiredo
On Mon, 28 Feb 2011 17:36:55 -0300, wkm wrote: I was afraid you were going to say that. :) Is this the "tapestry-standard" way, or is it more of a workaround? (basically, I'm wondering if I should refactor all of my wrapper components as mixins, or just the text field ones.) Mixins are t

Re: Defining validation properties for a textfield embedded within another component

2011-02-28 Thread wkm
On 2/28/2011 5:06 AM, Thiago H. de Paula Figueiredo wrote: On Mon, 28 Feb 2011 05:35:14 -0300, wkm wrote: I've created gentle wrapper components around basic form components like TextField. (I have apply some custom styling, particularly table cells) Suggestion: implement it as a mixin instea

Re: JavaScript Stack aggregator

2011-02-28 Thread LLTYK
We can't really tell what you've forgotten if we haven't seen how you did it. -- View this message in context: http://tapestry-users.832.n2.nabble.com/JavaScript-Stack-aggregator-tp6074088p6074478.html Sent from the Tapestry Users mailing list archive at Nabble.com. ---

Re: Can mixins add validation serverside?

2011-02-28 Thread LLTYK
I in particular need to get the class of the parent of the property somehow. That's how I conditionally add validation. And the name of the property as well. It's a retread of what tapestry5-cayenne does, which seems castrated to me because it requires BeanEditor to provide this information to the

Re: Pb in 'getOrCreateMethod()' ?

2011-02-28 Thread Nourredine Khadri
Thanks Thiago. Yes it will work like you propose even with the @Property annotation in the subclass (avoiding getEntityB()). The fact that we use the same property name is mainly a convenience for developers according to some internal guidelines. By the way, is it ok that the 'getOrCreateMethod(

Re: Pb in 'getOrCreateMethod()' ?

2011-02-28 Thread Thiago H. de Paula Figueiredo
Add a getEntityB() in your ComponentB subclass and use entityb.property instead of entitya.property, as ComponentA.entityA has type EntityA, not EntityB. On Mon, 28 Feb 2011 14:08:28 -0300, Nourredine Khadri wrote: It is to provide GUI extensibility such as extended forms - Here a rough

Re: Q: java.lang.ClassNotFoundException: org.apache.tapestry5.TapestryFilter ?

2011-02-28 Thread Lenny Primak
The way I did it is in eclipse I would edit the run configuration to add tapestry jar files in the 'User Classpath' entry there Or just copy the JARs in to the tomcat distribution On Feb 28, 2011, at 8:34 AM, penyihirkecil wrote: > Using mvn jetty:run works perfectly. But i want to try another w

Re: Pb in 'getOrCreateMethod()' ?

2011-02-28 Thread Nourredine Khadri
It is to provide GUI extensibility such as extended forms - Here a rough description : Entity models : public class EntityA { private String foo; //accessors ... } public class EntityB extends EntityA{ private String bla; //accessors ... } ComponentA : foo

JavaScript Stack aggregator

2011-02-28 Thread Gillespie59
Hi everybody ! I have some problems with the aggregation of my JavaScript stack when PRODUCTION_MODE='true'. When PRODUCTION_MODE is false, everything is OK. My 4 js files are included into my page. But when i change to true, the js of my stack is empty. If i am right, this js file have to incl

Re: FileUpload : java.io.UnsupportedEncodingException: MultipartDecoder

2011-02-28 Thread Sylver
Thanks for the quick answer, it's working now :) -- View this message in context: http://tapestry.1045711.n5.nabble.com/FileUpload-java-io-UnsupportedEncodingException-MultipartDecoder-tp3403440p3403604.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

Re: Can mixins add validation serverside?

2011-02-28 Thread Thiago H. de Paula Figueiredo
On Mon, 28 Feb 2011 13:21:59 -0300, LLTYK wrote: With that I'd have to get the class of the parent of the property somehow... you guys tightly integrate the annotation support to do this with @Validate. This is not correct. See ValidationConstraintGenerator. You can use any logic you wan

Re: [5.1] recordError for Forms in Blocks

2011-02-28 Thread Rich M
On 02/25/2011 06:17 PM, Josh Canfield wrote: I grabbed your code and ran it. I'm not 100% sure what's supposed to happen if you perform an ajax post but don't return anything, but have errors. Me neither, I suppose I expected that simply using the recordError would have my page functioning the s

Re: Can mixins add validation serverside?

2011-02-28 Thread LLTYK
With that I'd have to get the class of the parent of the property somehow... you guys tightly integrate the annotation support to do this with @Validate. -- View this message in context: http://tapestry-users.832.n2.nabble.com/Can-mixins-add-validation-serverside-tp6073177p6073903.html Sent from

Re: Pb in 'getOrCreateMethod()' ?

2011-02-28 Thread LLTYK
That setup sounds like something you shouldn't do. Two different instances of two different classes with the same name? -- View this message in context: http://tapestry-users.832.n2.nabble.com/Pb-in-getOrCreateMethod-tp6073648p6073867.html Sent from the Tapestry Users mailing list archive at Nab

Re: FileUpload : java.io.UnsupportedEncodingException: MultipartDecoder

2011-02-28 Thread Thiago H. de Paula Figueiredo
On Mon, 28 Feb 2011 12:28:53 -0300, Sylver wrote: Hi guys, Hi! Inside the pom.xml : org.apache.tapestry tapestry-core 5.1.0.5 compile [...] org.apache.tapestry tapestry-upload 5.2.4 compile You're mixing Tapestry versions

Re: Grid with multiple forms

2011-02-28 Thread Adam Zimowski
By the way. This happens regardless, if I have t:context on the form or not. Adam On Mon, Feb 28, 2011 at 7:33 AM, Adam Zimowski wrote: > Hi again. I hate to interrupt the mutliple database discussion, but I > would like to ask a question regarding the original topic on this > thread. > >

FileUpload : java.io.UnsupportedEncodingException: MultipartDecoder

2011-02-28 Thread Sylver
Hi guys, i'm trying to upload a file with tapestry and i always get this exception : java.lang.RuntimeException: java.io.UnsupportedEncodingException: MultipartDecoder at org.apache.tapestry5.upload.internal.services.MultipartDecoderImpl.decode(MultipartDecoderImpl.java:85) at $Mu

Pb in 'getOrCreateMethod()' ?

2011-02-28 Thread Nourredine Khadri
Hi, I'm using page/component inheritence and I noticed a pb since I migrated an app from Tapestry 5.1 to 5.2. I try to render 'ComponentB' that extends 'ComponentA' (using extension points). Both have a property with same name but with a different type ('EntityB' extends 'EntityA'). The error mes

Re: properties file not read

2011-02-28 Thread oliverspecht
[..]it should be put in the same package but under src/main/resources.[..] That was the problem. The full path is written correctly in the tutorial, but I didn't see it... Thanks for your help! Oliver -- View this message in context: http://tapestry.1045711.n5.nabble.com/properties-file-not

Re: Q: java.lang.ClassNotFoundException: org.apache.tapestry5.TapestryFilter ?

2011-02-28 Thread penyihirkecil
Using mvn jetty:run works perfectly. But i want to try another way ^^, On 28/02/2011 20:26, Thiago H. de Paula Figueiredo wrote: On Mon, 28 Feb 2011 10:23:09 -0300, penyihirkecil wrote: I create new server -> tomcat 7.0 then right click on the project -> run as ... -> run on server -> and I

Re: Grid with multiple forms

2011-02-28 Thread Adam Zimowski
Hi again. I hate to interrupt the mutliple database discussion, but I would like to ask a question regarding the original topic on this thread. So, per Thiago's suggestion I tried loop with multiple form components, and I have an issue in that if I submit one row (one form) with invalid input

Re: Q: java.lang.ClassNotFoundException: org.apache.tapestry5.TapestryFilter ?

2011-02-28 Thread Thiago H. de Paula Figueiredo
On Mon, 28 Feb 2011 10:23:09 -0300, penyihirkecil wrote: I create new server -> tomcat 7.0 then right click on the project -> run as ... -> run on server -> and I choose the server that I've already configured before using tomcat 7.0 is this right? The way you run the application doesn't

Re: Q: java.lang.ClassNotFoundException: org.apache.tapestry5.TapestryFilter ?

2011-02-28 Thread penyihirkecil
I create new server -> tomcat 7.0 then right click on the project -> run as ... -> run on server -> and I choose the server that I've already configured before using tomcat 7.0 is this right? FYI : Actually is a tapestry maven project, I get an error using run-jetty-run, that is why I am trying

Re: Can mixins add validation serverside?

2011-02-28 Thread Thiago H. de Paula Figueiredo
On Mon, 28 Feb 2011 10:00:05 -0300, LLTYK wrote: I'd like to conditionally add some validation using a mixin, maxLength and required for example. Can a mixin somehow alter the validate attribute of a field? No, at least not directly. Take a look at ValidationConstraintGenerator. That's t

Can mixins add validation serverside?

2011-02-28 Thread LLTYK
I'd like to conditionally add some validation using a mixin, maxLength and required for example. Can a mixin somehow alter the validate attribute of a field? -- View this message in context: http://tapestry-users.832.n2.nabble.com/Can-mixins-add-validation-serverside-tp6073177p6073177.html Sent

Re: Q: java.lang.ClassNotFoundException: org.apache.tapestry5.TapestryFilter ?

2011-02-28 Thread penyihirkecil
I create new server -> tomcat 7.0 then right click on the project -> run as ... -> run on server -> and I choose the server that I've already configured before using tomcat 7.0 is this right? On 28/02/2011 19:05, Thiago H. de Paula Figueiredo wrote: On Mon, 28 Feb 2011 04:35:47 -0300, penyihirk

[ANN] Tapestry Facebook components

2011-02-28 Thread Barry Books
I've been adding Facebook integration to a site I'm working on (my wife's art) http://www.judypaul.com I put what I have into a library add posted it on github https://github.com/trsvax/tapestry-facebook The basic infrastructure is complete but I've only really tested the Like button and NewsFe

Re: Defining validation properties for a textfield embedded within another component

2011-02-28 Thread Thiago H. de Paula Figueiredo
On Mon, 28 Feb 2011 05:35:14 -0300, wkm wrote: Hi, Hi! I've created gentle wrapper components around basic form components like TextField. (I have apply some custom styling, particularly table cells) Suggestion: implement it as a mixin instead of a wrapper component. -- Thiago H. de Pau

Re: Q: java.lang.ClassNotFoundException: org.apache.tapestry5.TapestryFilter ?

2011-02-28 Thread Thiago H. de Paula Figueiredo
On Mon, 28 Feb 2011 04:35:47 -0300, penyihirkecil wrote: I am using tomcat 7 and I got an error like this, what should I do? (Note: I am using tapestry 5.2.4 + Hibernate 3.6) SEVERE: Exception starting filter app java.lang.ClassNotFoundException: org.apache.tapestry5.TapestryFilter Are you

Re: Rendering a Block

2011-02-28 Thread Richard Hill
I've also had a use-case like this - I wanted to use tapestry to generate html based on a .tml, in response to an ajax request that I was initiating from my own javascript, ie nothing to do with a zone. We've had a few people on the list say they'd like to do this. Given that tapestry is doing th

Defining validation properties for a textfield embedded within another component

2011-02-28 Thread wkm
Hi, I've created gentle wrapper components around basic form components like TextField. (I have apply some custom styling, particularly table cells) For the most part this is easy enough using the nice publishParameters feature: public class CTextField extends AxAbstractTextInput {