Re: Retrieve ActivationRequestParameters in custom PageResponseRenderer

2010-09-13 Thread Christophe Cordenier
Have you tried without specify Generic types ? 2010/9/13 Christophe Cordenier > Oh, this is maybe due to generics... > > 2010/9/13 Markus Feindler > >> >> >> public interface RequestParameterExtractor { >>Map extractRequestParameters(); >> } >> >> is not equal to: >> >> >> TransformMeth

Re: T5+hibernate - multiple session factories

2010-09-13 Thread cleverpig
you guy,maybe you should hack hibernate module to support multiple datasource. On Tue, Sep 14, 2010 at 9:35 AM, Fanzhen wrote: > >  well I am using spring + hibernate(JPA features) ,you can set up two more > persist unit. > > > On 2010-9-14 8:31, Paul Stanton wrote: >> >>  I have an tapestry app

Re: T5+hibernate - multiple session factories

2010-09-13 Thread Fanzhen
well I am using spring + hibernate(JPA features) ,you can set up two more persist unit. On 2010-9-14 8:31, Paul Stanton wrote: I have an tapestry app that needs to connect to 2 different databases. Has anyone done this with tapestry-hibernate? thanks, p.

T5+hibernate - multiple session factories

2010-09-13 Thread Paul Stanton
I have an tapestry app that needs to connect to 2 different databases. Has anyone done this with tapestry-hibernate? thanks, p. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: u

Re: T5 Eventlink Query

2010-09-13 Thread ael
Hi Thiago, In my template 2 i can display many pages ex. template 2 display test1 or test2 so on... using an eventlink then link parameters plus if else component. Then using link parameter i can make a link from template 1 pointing to template 2 that will display test1 or test2. But in actionli

Re: Retrieve ActivationRequestParameters in custom PageResponseRenderer

2010-09-13 Thread Christophe Cordenier
Oh, this is maybe due to generics... 2010/9/13 Markus Feindler > > > public interface RequestParameterExtractor { >Map extractRequestParameters(); > } > > is not equal to: > > > TransformMethodSignature extractMethod = new > TransformMethodSignature(Modifier.PUBLIC, >"Map", "

Re: Retrieve ActivationRequestParameters in custom PageResponseRenderer

2010-09-13 Thread Markus Feindler
public interface RequestParameterExtractor { Map extractRequestParameters(); } is not equal to: TransformMethodSignature extractMethod = new TransformMethodSignature(Modifier.PUBLIC, "Map", "extractRequestParameters", null, null); ? Everything looks good ... The only

Re: Asset Security in 5.1.0.5

2010-09-13 Thread Christophe Cordenier
Hi ! Security patch has been applied on 5.1.0.6 and 5.1.0.7 but these version has been failed the vote process, you can use 5.1.0.8-SNAPSHOT version to get access to protect your assets. 2010/9/13 Rich M > > Hi, > > I just noticed I can access a disturbing amount of files through the > assets/

Re: Retrieve ActivationRequestParameters in custom PageResponseRenderer

2010-09-13 Thread Christophe Cordenier
Everything looks good ... The only thing i see is that the method signature is not exactly the same as the one declared in the interface. 2010/9/13 Markus Feindler > Am 13.09.2010 22:18, schrieb Thiago H. de Paula Figueiredo: > > On Mon, 13 Sep 2010 17:02:02 -0300, Christophe Cordenier < >> ch

Re: Retrieve ActivationRequestParameters in custom PageResponseRenderer

2010-09-13 Thread Markus Feindler
Am 13.09.2010 22:18, schrieb Thiago H. de Paula Figueiredo: On Mon, 13 Sep 2010 17:02:02 -0300, Christophe Cordenier wrote: Please, Can you provide your Tapestry Module class that contributes your worker ? And the worker itself? It seems two different worker instances are trying to add th

Asset Security in 5.1.0.5

2010-09-13 Thread Rich M
Hi, I just noticed I can access a disturbing amount of files through the assets/ path from my application. The user guide for 5.0 states that Tapestry automatically blocks access to all assets and only whitelists critical Tapestry files http://tapestry.apache.org/tapestry5.0/guide/assets.htm

Re: Retrieve ActivationRequestParameters in custom PageResponseRenderer

2010-09-13 Thread Thiago H. de Paula Figueiredo
On Mon, 13 Sep 2010 17:02:02 -0300, Christophe Cordenier wrote: Please, Can you provide your Tapestry Module class that contributes your worker ? And the worker itself? It seems two different worker instances are trying to add the same method to the same page class. -- Thiago H. de Paul

Re: Resteasy and security (again)

2010-09-13 Thread Moritz Gmelin
Thanks, the tapestry-resteasy api document still shows the contributeIgnoredPathsFilter reference. Which is actually not in the ResteasyModule of release 0.2.0 http://tynamo.org/constant/tapestry-resteasy/apidocs/org/tynamo/resteasy/ResteasyModule.html Regards Moritz Am 13.09.2010 um 21:05 sc

Re: Retrieve ActivationRequestParameters in custom PageResponseRenderer

2010-09-13 Thread Christophe Cordenier
Please, Can you provide your Tapestry Module class that contributes your worker ? 2010/9/9 Markus Feindler > No, I get the exception for all pages, also the ExpcetionReportPage for > example. > > > > > Original-Nachricht > > Datum: Thu, 9 Sep 2010 08:26:05 +0200 > > Von: Christ

Re: Resteasy and security (again)

2010-09-13 Thread Alejandro Scandroli
The new tapestry-resteasy 0.2.0 doesn't use the IgnoredPaths filter anymore. This new version doesn't require you to modify your web.xml because is implemented as a HttpServletRequestFilter and contributed to the HttpServletRequestHandler. Are you using tapestry-resteasy 0.2.0? if not I suggest you

RE: Enum mask

2010-09-13 Thread Jim O'Callaghan
Thanks Thiago - I'll give that a shot. Regards, Jim. -Original Message- From: Thiago H. de Paula Figueiredo [mailto:thiag...@gmail.com] Sent: 13 September 2010 18:26 To: Tapestry users Subject: Re: Enum mask On Mon, 13 Sep 2010 14:03:05 -0300, Jim O'Callaghan wrote: > Thanks Howard.

Re: Retrieve ActivationRequestParameters in custom PageResponseRenderer

2010-09-13 Thread Markus Feindler
Any ideas? Howard? No, I get the exception for all pages, also the ExpcetionReportPage for example. Original-Nachricht Datum: Thu, 9 Sep 2010 08:26:05 +0200 Von: Christophe Cordenier An: Tapestry users Betreff: Re: Retrieve ActivationRequestParameters in custom PageResponseR

Re: Enum mask

2010-09-13 Thread Thiago H. de Paula Figueiredo
On Mon, 13 Sep 2010 14:03:05 -0300, Jim O'Callaghan wrote: Thanks Howard. Is there an easier way, just using a mixin that takes another parameter (ex. a comma separated list of include / exclude list index entries) from the template and in the mixin beginRender etc. performs an op on the m

RE: Enum mask

2010-09-13 Thread Jim O'Callaghan
Thanks Howard. Is there an easier way, just using a mixin that takes another parameter (ex. a comma separated list of include / exclude list index entries) from the template and in the mixin beginRender etc. performs an op on the model created from the Enum? I was hoping to not have to duplicate

Re: How to apply a css class to a tapestry component?

2010-09-13 Thread Howard Lewis Ship
Added to the FAQ. On Mon, Sep 13, 2010 at 9:11 AM, Thiago H. de Paula Figueiredo wrote: > Short answer: just add it. > Not-so-short answer: this will only work for components that render informal > parameters (any attribute that isn't a parameter). They're annotated with > @SupportsInformalParame

Re: Enum mask

2010-09-13 Thread Howard Lewis Ship
No, in that case, you'd want to create your own SelectModel and populate it. You may inject and use the SelectModelFactory service to help with this. On Mon, Sep 13, 2010 at 9:15 AM, Jim O'Callaghan wrote: > Tapestry provides a very handy facility for presenting enums as drop down > lists for di

Re: T5 Eventlink Query

2010-09-13 Thread Thiago H. de Paula Figueiredo
On Mon, 13 Sep 2010 06:27:18 -0300, ael wrote: Hello Everyone Hi! I have two template. ex. template 1 & template 2. Then in template 2 i have an eventlink. My question is how can i link the eventlink from page 1? You should avoid triggering events from one page to another one. Use an ev

Validation of a component inside a Form

2010-09-13 Thread Stephan Windmüller
Hi! Is it possible to send validation errors to the outer form in which a component is used? For example, I have this code [...] [...] The component itself also contains submit buttons. If I press one of these but there is a validation error which I check in

T5 Eventlink Query

2010-09-13 Thread ael
Hello Everyone I have two template. ex. template 1 & template 2. Then in template 2 i have an eventlink. My question is how can i link the eventlink from page 1? Example i will click a link from page 1 then it will trigger the eventlink on page 2. Any ideas :) ty... -- View this message in c

Enum mask

2010-09-13 Thread Jim O'Callaghan
Tapestry provides a very handy facility for presenting enums as drop down lists for display - is there anything built-in that allows certain values for the enum to be hidden from the generated drop down list? Ex. where a status transition follows a strict order where A can be progressed to B and t

Re: How to apply a css class to a tapestry component?

2010-09-13 Thread Thiago H. de Paula Figueiredo
Short answer: just add it. Not-so-short answer: this will only work for components that render informal parameters (any attribute that isn't a parameter). They're annotated with @SupportsInformalParameters. AjaxFormLoop isn't one of them. -- Thiago H. de Paula Figueiredo Independent Java, Ap

How to apply a css class to a tapestry component?

2010-09-13 Thread LLTYK
I try this: The class attribute disappears. Previously I've simply slapped the class onto a wrapping div or something and changed the css accordingly, but this problem pops up over and over and I'd like an easier solution to it. -- View this message in context: http://tapestry-users.832.n2.n

Re: Resteasy and security (again)

2010-09-13 Thread Christophe Cordenier
Hi ! See how IgnoredPaths filter is contributed in TapestryModule class, then use before:IgnoredPaths to execute your filter before Tapestry's one HTH 2010/9/13 Moritz Gmelin > Hi, > > I've been able to create some kind of authentication filter for my tapestry > webapp. Now I'd like to have

Re: [T5] Key order in JSONObject

2010-09-13 Thread Andreas Andreou
I'd open an issue at that prototype component instead - a json object is an unordered collection of key/value pairs. If order is important, they should be using arrays. AFAIK, at least in Chrome and Opera the iteration order is not guaranted to be the same as the insertion order. On Mon, Sep 13,

Resteasy and security (again)

2010-09-13 Thread Moritz Gmelin
Hi, I've been able to create some kind of authentication filter for my tapestry webapp. Now I'd like to have this same filter work with the tapestry-resteasy webservices of the application. But since the resteasy module adds the rest path to the tapestry-ignored-paths. My filter is ignored by t

Re: Validation of a component inside a Form

2010-09-13 Thread Thiago H. de Paula Figueiredo
On Mon, 13 Sep 2010 11:56:17 -0300, Stephan Windmüller wrote: The line String submittedValue = request.getParameter(elementName); produces "null" every time. You'll have to generate the id and name of the HTML form fields in a way that you can get them back when the form is su

Re: Validation of a component inside a Form

2010-09-13 Thread Stephan Windmüller
On 13.09.2010 16:21, Thiago H. de Paula Figueiredo wrote: > It doesn't require much background knowledge. Just take a look at this > method implementation in the Select component: Thanks for the hint. I tried it, but it does not work. I do not know if this has to do with my problem but submitt

[T5] Key order in JSONObject

2010-09-13 Thread Michael Dukaczewski
Hi! I have a problem with the JSONObject in Tapestry. I would like to use a Javascript Prototype component which expects a JSON object. The component outputs the data in the order they were transmitted in the JSON object. The problem is that in the implementation of the JSONObject in Tapestry a ma

Re: Validation of a component inside a Form

2010-09-13 Thread Thiago H. de Paula Figueiredo
On Mon, 13 Sep 2010 10:26:51 -0300, Stephan Windmüller wrote: tracker.recordError(...); If one of this components creates form fields, a good approach is to make> the component an AbstractField sublclass. That requires an implementation of processSubmission and this in turn requires some

Re: URL Patterns

2010-09-13 Thread Everton Agner
Oh, cool, I found the blog entry here : http://blog.tapestry5.de/index.php/2010/01/19/tapestry-ioc-modularization-of-web-applications-without-osgi/ Basically, it is same the problem I'm facing right now. But I don't wanna make the module so intrusive, and I guess Distributed Configuration is nice

Re: URL Patterns

2010-09-13 Thread Alessio Gambi
Hi, There is an interesting blog entry that talks right about the component you are trying to develop. Just google for Tapestry vs OSGi and you will find it. BTW I did it something like that few time ago and I used regexp. On 13-set-2010, at 15:20, Everton Agner wrote: > Yes, probably I'll us

Re: Validation of a component inside a Form

2010-09-13 Thread Stephan Windmüller
On 13.09.2010 14:47, Thiago H. de Paula Figueiredo wrote: >> Is it possible to send validation errors to the outer form in which a >> component is used? > @Environmental > private ValidationTracker tracker; That works, thanks for the quick reply! > tracker.recordError(...); > If one of this comp

Re: URL Patterns

2010-09-13 Thread Everton Agner
Yes, probably I'll use it if I have to implement it from scratch. I just wanted to know if there was something like that already implemented I'll google it for options, maybe there is some API somewhere. If anyone knows, please tell me. Thanks! ___ Everton Agner Ramos 2010/

Re: Validation of a component inside a Form

2010-09-13 Thread Thiago H. de Paula Figueiredo
On Mon, 13 Sep 2010 09:36:40 -0300, Stephan Windmüller wrote: Hi! Hi! Is it possible to send validation errors to the outer form in which a component is used? @Environmental private ValidationTracker tracker; tracker.recordError(...); If one of this components creates form fields, a g

Re: URL Patterns

2010-09-13 Thread Thiago H. de Paula Figueiredo
On Mon, 13 Sep 2010 09:19:18 -0300, Everton Agner wrote: I'm developing an auto menu builder, which retrives all the pages from the ComponentSource service. But since core pages are included on it (like /core/servicestatus or something like that), I've created another service for IgnoredP

Validation of a component inside a Form

2010-09-13 Thread Stephan Windmüller
Hi! Is it possible to send validation errors to the outer form in which a component is used? For example, I have this code [...] [...] The component itself also contains submit buttons. If I press one of these but there is a validation error which I check in

Re: URL Patterns

2010-09-13 Thread Everton Agner
I'm developing an auto menu builder, which retrives all the pages from the ComponentSource service. But since core pages are included on it (like /core/servicestatus or something like that), I've created another service for IgnoredPaths, and I wanna configure paths as Patterns, like "core/*". I sho

Re: T5 Eventlink Query

2010-09-13 Thread Thiago H. de Paula Figueiredo
On Mon, 13 Sep 2010 06:55:31 -0300, Elin wrote: Im just starting with tapestry but, why would you like to do that? Do what? As far as i know, the eventlink is very similar to the actionlink, and its usually used for some kind of ajax request. I disagree. Both components are used for bot

Re: what is wrong???

2010-09-13 Thread Fanzhen
resolve it!! javassist-3.9.0.GA.jar not javassist-3.6.0.CR1.jar!!! On 2010-9-13 17:34, Fanzhen wrote: I use Tomcat6 , well I deploy it in tomcat of my pc. I get the same error. does it matter with tomcat?? oh , god!! get headache!! ---

Re: T5 Eventlink Query

2010-09-13 Thread Elin
Im just starting with tapestry but, why would you like to do that? As far as i know, the eventlink is very similar to the actionlink, and its usually used for some kind of ajax request. Could you explain a bit more what are you trying to do with those 2 templates? -- View this message in context:

Re: what is wrong???

2010-09-13 Thread Fanzhen
I use Tomcat6 , well I deploy it in tomcat of my pc. I get the same error. does it matter with tomcat?? oh , god!! get headache!! - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail:

Re: what is wrong???

2010-09-13 Thread cleverpig
sorry,what's your tml page code? On Mon, Sep 13, 2010 at 5:10 PM, Fanzhen wrote: > >  well, it work well on my pc. but when I upload the whole project to the > server, I got errors :: > I am sure the LibraryCreate Class is in the right directory > > > Caused by: java.lang.ClassNotFoundExcepti

what is wrong???

2010-09-13 Thread Fanzhen
well, it work well on my pc. but when I upload the whole project to the server, I got errors :: I am sure the LibraryCreate Class is in the right directory Caused by: java.lang.ClassNotFoundException: caught an exception while obtaining a class file for com.yuedong.pnews.pages.security

Re: How to set up Tapestry 5 on Tomcat 5

2010-09-13 Thread Peter Stavrinides
One correction, you are referring to Tomcat 5, so the link is here: http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html Beware the classloader has changed in Tomcat 6, there are some considerations when upgrading , but why not use 6 or even 7? Cheers, Peter - Original Message --

Re: How to set up Tapestry 5 on Tomcat 5

2010-09-13 Thread P . Stavrinides
Hi, First off let me say there is no right or wrong, just what works best for each person/organization. > 1) I install maven on my PC, where I will develop Tapestry web applications. > 2) Maven will download any missing dependencies, and place them inside my > apps lib folder. Some people loath

Re: want to setup a ${xxxx} in my input element!!!

2010-09-13 Thread Kristian Marinkovic
hi fanzhen, try following instead: aaa this will work; and if your adit0 returns null the attribute wont get rendered. i'd recommend to use the T5 checkbox component nevertheless. g, kris Von:Fanzhen An: Tapestry users Datum: 13.09.2010 08:30 Betreff:Re: want to setup a