Re: [T5] Security of files in the classpath

2009-08-14 Thread kartweel
I thought the digest generator is meant to make a different digest for each file, but it seems to be for the whole app?, or is that bit something to do with app versioning for caching and what not and not the digest?. This whole thread has some ideas for a white list approach to files on

Re: [T5] Security of files in the classpath

2009-08-14 Thread Geoff Callender
Ouch, now I get it. WEB-INF and all its contents are in fact visible, directly below yourapp/assets/ctx//, and it's not hard to find out the value of . Suggestions anyone? On 15/08/2009, at 10:34 AM, kartweel wrote: http://jumpstart.doublenegative.com.au:80

Re: [T5] Security of files in the classpath

2009-08-14 Thread kartweel
http://jumpstart.doublenegative.com.au:8080/jumpstart/assets/ctx/9f6f05886c53821a/WEB-INF/classes/jumpstart/web/services/AppModule.class you can access the entire web app, it even gives you directory listings Geoff Callender-2 wrote: > > Isn't this simply due to a Maven convention which has p

Re: [T5] Does T5 work with JPA ?

2009-08-14 Thread Scot Mcphee
2009/8/15 bdumeny : > There is no specified scope for jpa dependencies... And the hibernate.jar is definitely in the generated WAR file? Otherwise try scope 'compile'. Obviously the javax.persistence jar is. > If only someone tells me that it's possible... > I haven't found any example of use t5/

Render Page to file, etc

2009-08-14 Thread Nathan Beemer
I have a need to make my Tapestry 4.1 Pages available in pdf format but having no luck to-date on my own. My apologies if soliciting this list is inappropriate here, but I do have a consulting budget available to get this done if anyone is interested.

Re: @OnEvent annotated methods not firing

2009-08-14 Thread ApocB
Register.java: package com.packtpub.celebrity.collector.pages; import org.apache.tapestry5.EventConstants; import org.apache.tapestry5.SelectModel; import org.apache.tapestry5.annotations.OnEvent; import org.apache.tapestry5.annotations.Persist; import org.apache.tapestry5.ioc.Messages; import or

Re: Tapestry web framework evaluation and test

2009-08-14 Thread Juan E. Maya
Very nice Sebastian ! thanks! On Fri, Aug 14, 2009 at 8:24 PM, Sebastian Hennebrueder wrote: > Hello, > > I have finally finished the evaluation of Tapestry. > > I would like to thank you for your feedbacks, which helped a lot to write > the article. > > You can find the article on my website. > >

Tapestry web framework evaluation and test

2009-08-14 Thread Sebastian Hennebrueder
Hello, I have finally finished the evaluation of Tapestry. I would like to thank you for your feedbacks, which helped a lot to write the article. You can find the article on my website. http://www.laliluna.de/tapestry-webframework-evaluation-test.html It is part of the web framework series.

Re: T5.1 t:body question

2009-08-14 Thread Howard Lewis Ship
The question was: do we introduce one XML namespace for Tapestry components and a second one for the (finite set) of Tapestry directives? I chose to have a single namespace. This could be changed in the future to have a distinct XML namespace for components and a separate one for directives. The X

Problem with custom ValidationDecorator for Ajax form submissions

2009-08-14 Thread Blower, Andy
We've developed our own custom ValidationDecorator which works nicely. To activate it for a form we're pushing it onto the environment in the setupRender for each component/page with a form that needs validation, like this: @BeginRender void setup(MarkupWriter writer) { environme

Re: T5.1 t:body question

2009-08-14 Thread Michael Gentry
On Fri, Aug 14, 2009 at 11:05 AM, Thiago H. de Paula Figueiredo wrote: > Em Fri, 14 Aug 2009 11:57:09 -0300, Michael Gentry > escreveu: > Take a look at http://tapestry.apache.org/tapestry5.1/guide/templates.html, > section "Tapestry Elements". I had seen that section before, but it wasn't really

Re: About Tapestry HttpServletRequest

2009-08-14 Thread sohu
I know tapestry-upload. But it need to submit. What I use is a flash/javascript fileUpload addon(SWFUpload:http://www.swfupload.org/). Files can be uploaded without submit. I set a Tapestry page to receive the file. In PHP, Struts and jsp, it works well. I just want to find a Tapestry way.

Re: T5.1 t:body question

2009-08-14 Thread Thiago H. de Paula Figueiredo
Em Fri, 14 Aug 2009 11:57:09 -0300, Michael Gentry escreveu: I'm assuming t:body isn't really a component, but a different form of magic. is not a component. Are there other "components" that aren't really components Take a look at http://tapestry.apache.org/tapestry5.1/guide/templat

T5.1 t:body question

2009-08-14 Thread Michael Gentry
Hi all, I know I'm still learning, but I'm a bit puzzled as to why: works just fine, but: and both error out with: org.apache.tapestry5.ioc.internal.util.TapestryException Unable to resolve 'body' to a component class name. Available component types: ActionLink, AddR

RE: Render body of the component in some other component

2009-08-14 Thread Marko Mrkus
Thanks, I just wanted to make sure that this component is the right tool for the job! My job is to build Pagination component which will use filter and pages for rendering component which is wrapped by Pagination component. Sample usage could be: And IteratedComponent must be unaware

Re: [T5] Does T5 work with JPA ?

2009-08-14 Thread bdumeny
There is no specified scope for jpa dependencies... If only someone tells me that it's possible... I haven't found any example of use t5/jpa Message : org.apache.tapestry5.runtime.ComponentEventException No Persistence provider for EntityManager named MY_APP Stack trace * javax.pers

Re: [T5] Does T5 work with JPA ?

2009-08-14 Thread Scot Mcphee
2009/8/15 bdumeny : > Yes, all included in my pom.xml. > > If I haven't dependencies my tests wouldn't work during a mvn install... well not strictly true seeing as you could could have it in a "test" scope (e.g. something I often do with the HSQL classes). sorry i had to ask the obvious question.

Re: [T5] Does T5 work with JPA ?

2009-08-14 Thread bdumeny
Yes, all included in my pom.xml. If I haven't dependencies my tests wouldn't work during a mvn install... Scot Mcphee a écrit : Doesn't Tomcat - it being "just" a servlet and JSP engine and not a full blown JEE specification implementation - not have any actual JPA implementation? Are you inc

Re: Render body of the component in some other component

2009-08-14 Thread Andreas Andreou
use RenderBody instead of InnerComponent If for every iteration you want to pass dynamic data from @Component to the components that exist in the body of @Component, you can use the requestCycle, i.e. cycle.setAttribute() cycle.getAttribute() On Fri, Aug 14, 2009 at 4:27 PM, Marko Mrkus wrote: >

Re: Render body of the component in some other component

2009-08-14 Thread Richard Kirby
Yes - that is exactly what @RenderBody does. Cheers Richard Marko Mrkus wrote: Sorry, formatting of the last message was awful... Here's the message again: Hi, all! Can you tell me is it possible to render body of a component in some other component which is wrapped by this first one in Tapes

RE: Render body of the component in some other component

2009-08-14 Thread Marko Mrkus
Sorry, formatting of the last message was awful... Here's the message again: Hi, all! Can you tell me is it possible to render body of a component in some other component which is wrapped by this first one in Tapestry 4.1? I have an example: Page html: This is top level component's b

Render body of the component in some other component

2009-08-14 Thread Marko Mrkus
Hi, all! Can you tell me is it possible to render body of a component in some other component which is wrapped by this first one in Tapestry 4.1? I have an example: Page html: This is top level component's body Component.jwc: Haeder

Re: [T5] Does T5 work with JPA ?

2009-08-14 Thread Scot Mcphee
Doesn't Tomcat - it being "just" a servlet and JSP engine and not a full blown JEE specification implementation - not have any actual JPA implementation? Are you including one in your WAR file, e.g. Hibernate? 2009/8/14 bdumeny : > Thiago H. de Paula Figueiredo a écrit : >> >> Em Fri, 14 Aug 2009

Re: [T5] Does T5 work with JPA ?

2009-08-14 Thread bdumeny
Thiago H. de Paula Figueiredo a écrit : Em Fri, 14 Aug 2009 09:42:34 -0300, bdumeny escreveu: Hi all! Hi! I try to develop a T5 / jpa application! All junits tests on my DAOS work but when I try to deploy on tomcat I still have a "No Persistence provider for EntityManager name ..." error

Re: [T5] Security of files in the classpath

2009-08-14 Thread Thiago H. de Paula Figueiredo
Em Fri, 14 Aug 2009 09:28:48 -0300, Geoff Callender escreveu: Isn't this simply due to a Maven convention which has passed its "use by" date? I don't think so. Why not put .java, .tml, and .properties together in the source tree, and compile them all into WEB-INF/classes/ where they're

Re: [T5] Does T5 work with JPA ?

2009-08-14 Thread Thiago H. de Paula Figueiredo
Em Fri, 14 Aug 2009 09:42:34 -0300, bdumeny escreveu: Hi all! Hi! I try to develop a T5 / jpa application! All junits tests on my DAOS work but when I try to deploy on tomcat I still have a "No Persistence provider for EntityManager name ..." error when I call DAOs. My persistence.xml

[T5] Does T5 work with JPA ?

2009-08-14 Thread bdumeny
Hi all! I try to develop a T5 / jpa application! All junits tests on my DAOS work but when I try to deploy on tomcat I still have a "No Persistence provider for EntityManager name ..." error when I call DAOs. My persistence.xml seams to be at good place... So my question is : Is it possible th

Re: Fragments, Validation and IE

2009-08-14 Thread Felix Gonschorek
we are encountering the same problem here - server side validation errors for fields in a form fragment that is not visible/active. happens under firefox too. the textfields not visible that produce the validation errors are filled with default values when the form is loaded the first time. th

Re: [T5] Security of files in the classpath

2009-08-14 Thread Geoff Callender
Isn't this simply due to a Maven convention which has passed its "use by" date? Why not put .java, .tml, and .properties together in the source tree, and compile them all into WEB-INF/classes/ where they're automatically hidden from the users? Surely this makes so much sense. It's what I do

Re: Upload component in onValidate

2009-08-14 Thread Ulrich Stärk
onValidate() gets called for every form component inside your form. The NullPointerException you are getting is likely due to some other form component also validating. Change the method name to match your upload component's id, e.g. onValidateFromUpload() if your component's id is upload. That

RE: Antwort: Re: Upload component in onValidate

2009-08-14 Thread Newham, Cameron
>From JumpStart for a Form it is: pageAttached() onActivate() ...onPrepareForSubmit() ...onPrepare() ...onSelected() ...onValidateForm() ...onSuccess() ...onSubmit() ...Tapestry creates a URL to next page pageDetached() ...Tapestry redirects to render next page -Original Message- ... The

Re: Antwort: Re: Upload component in onValidate

2009-08-14 Thread Stephan Windmüller
dirk.latterm...@bgs-ag.de wrote: > So, in short, try using onValidateForm() instead of onValidate(). That solved my problem. Thank you very much for this simple solution! Regards Stephan Windmüller - To unsubscribe, e-mail: us

Re: Upload component in onValidate

2009-08-14 Thread Stephan Windmüller
Otho wrote: > From skimming the sources I would guess that you need to provide your own > FieldValidator as a component parameter to Thanks for the quick reply! I wrote the FieldValidator, but where do I register it and how do I set the component parameter? gives me this error: | Unknown val

Antwort: Re: Upload component in onValidate

2009-08-14 Thread dirk . lattermann
> 2009/8/14 Stephan Windmüller > > > Hello! > > > > We are using the upload component of tapestry and want to validate the > > content type during the upload. To accomplish this we wrote the > > following code: > > > > | @Property > > | private UploadedFile file; > > | > > | [...] > > | > > | voi

Re: Upload component in onValidate

2009-08-14 Thread Otho
>From skimming the sources I would guess that you need to provide your own FieldValidator as a component parameter to 2009/8/14 Stephan Windmüller > Hello! > > We are using the upload component of tapestry and want to validate the > content type during the upload. To accomplish this we wrote

Upload component in onValidate

2009-08-14 Thread Stephan Windmüller
Hello! We are using the upload component of tapestry and want to validate the content type during the upload. To accomplish this we wrote the following code: | @Property | private UploadedFile file; | | [...] | | void onValidate() { | | if(file.getContentType().toLowerCase(Locale.ENGLISH) |

Re: [T5] Security of files in the classpath

2009-08-14 Thread Juan E. Maya
The ResourceDigestGenerator by default secures files with extension: .tml and .class. To add more restrictions you'd have to contribute ResourceDigestGenerator. Something like this: public static void contributeResourceDigestGenerator(Configuration configuration) { configur

Re: tapestry-spring-security-2.1.0 logout issue

2009-08-14 Thread Robin Helgelin
Michael added the logout handler I was suggesting, and a 2.1.1-SNAPSHOT release is available from http://www.localhost.nu/java/mvn-snapshot/ -- regards, Robin - To unsubscribe, e-mail: users-unsubscr...@tapestry.

Re: tapx-templating: using it in a t5 webapp possible

2009-08-14 Thread Howard Lewis Ship
That may be possible in version #2. The problem is that to make tapx-templating work requires overriding several key internal services; in order to allow mixed mode, we would have to do something very dynamic so that some of the times, those services were left as is, sometimes overrides. That's po