Re: Passing data to the same page - Understanding PersistanceContext.FLASH

2009-07-22 Thread Kristian Marinkovic
Tapestry 5 handles action requests and page requests. action requests identify a certain component or event that will be used to process the request. if the component request has been processed a redirect (= second request) page request is generated and issued. the flash persistence strategy is

Tapestry 5 Component Report

2009-07-22 Thread Cordenier Christophe
Hello all I'm actually working on a component library, i would like to generate the component reference documentation, but it fails with this error : Embedded error: Error rendering Maven report: Published parameter 'volatile' (from embedded component class

Re: Passing data to the same page - Understanding PersistanceContext.FLASH

2009-07-22 Thread Stephan Windmüller
Kristian Marinkovic wrote: in your case you'd need the session scope (=default) But this will break if the user is creating several tasks in multiple browser tabs. When I summarize my issue it all comes to the following question: How do I access data that is stored in objects and submitted

Re: [T5] Problems with commitAfter

2009-07-22 Thread jose luis sanchez
Hi all. Maybe i missed some info .. This code was inside a standard T5 page, with a hibernate session injected. It's curious , because i find no reason for the code not to be commited, it's even not giving errors ... not even a rollback. Ups...Sorry Jose i didn't notice u were using the

Re: Passing data to the same page - Understanding PersistanceContext.FLASH

2009-07-22 Thread Kristian Marinkovic
you can use PersistenceConstants.CLIENT to store all your data on the client side - with all iths pros and cons. or can store your data in the session wia SESSION or as SessionStateObject another way - when using a form - you can use the onPrepare, onPrepareForRender and onPrepareForSubmit

Re: Passing data to the same page - Understanding PersistanceContext.FLASH

2009-07-22 Thread Stephan Windmüller
De Saint Steban Emmanuel wrote: PersistanceContext.FLASH is storing the object for only one time. The data will be deleted after the first access. Okay, but what is meant by first access? Even writing the data with a debug logger? Or after the onActivate-method is finished? Is there a way to

Re: Passing data to the same page - Understanding PersistanceContext.FLASH

2009-07-22 Thread Stephan Windmüller
Kristian Marinkovic schrieb: you can use PersistenceConstants.CLIENT to store all your data on the client side - with all iths pros and cons. This creates a very long URL. I found no way to force client persistence into a form. another way - when using a form - you can use the onPrepare,

RE: Passing data to the same page - Understanding PersistanceContext.FLASH

2009-07-22 Thread De Saint Steban Emmanuel
-Message d'origine- De : Stephan Windmüller [mailto:stephan.windmuel...@cs.tu-dortmund.de] Envoyé : mercredi 22 juillet 2009 10:50 À : Tapestry users Objet : Re: Passing data to the same page - Understanding PersistanceContext.FLASH De Saint Steban Emmanuel wrote:

Re: T5 - Configuration and .tml Files are Exposed By Tapestry.

2009-07-22 Thread Ulrich Stärk
There is no directory listing with 5.2-SNAPSHOT but I'm still able to access the templates and stuff on the classpath. Uli On 21.07.2009 03:13 schrieb Daniel Jones: Hello, OK, so here is my problem. In my page template: ${asset:context:assets/images/layout/add.png} Tapestry generated URL

Issue : Initialisation of javascript for form into a tapestry Zone

2009-07-22 Thread De Saint Steban Emmanuel
Is there anybody who can help me with this ? In the tapestry doc page for the component Zone, I found this : Not shown here, but fully valid, is to include JavaScript libraries and generate initialization JavaScript. This fully consistent with ordinary full-page renders. It said it was fully

Re: Is AjaxFormLoop example working for you?

2009-07-22 Thread moonlee
I use AjaxFormLoop-addrow-addrowlink-parameter to dynamic add a row , I want to fill the row with some defult value which base on the link param user click. for example: tml: t:parameter name=addRow td colspan=5 style=text-align: right t:addrowlink value=1Add a row/t:addrowlink

RE: T5.1.0.5: StackMapTable format error

2009-07-22 Thread Newham, Cameron
Thanks Thiago, although it turned out to be because I'm using Java 1.6 and I had an old(ish) version of Javassist being brought in as a dependency from tapestry-ioc that wants javassist-3.4.GA. Specifying the latest Javassist (3.8.GA) in my POM solved the problem. I note that I found this out

T5.1.0.5 IllegalStateException after invalidating Session

2009-07-22 Thread raucha
I try to upgrade an application from 5.0.18 to 5.1.0.5. After invalidating the Session for the user logout I get the included Exception. Everything works fine with 5.0.18 and I checked hat I do not invalidate the HttpSession but invalidate the Tapestry Session via the injected

@Secured annotation handling

2009-07-22 Thread Eldred Mullany
Hi All I am spinning my head here trying to get Spring-Tapestry-security:2.1.0 to work with Tapestry 5.1.0.5 . I have done the upgrade to 2.1.0 and when place my @secured annotation on the top of my class name is throws an access denied exception: Following that

RE: again on webservices

2009-07-22 Thread Henning Petersen
I wouldn't run the web service through Tapestry at all. Instead, register your web service as a separate servlet inside your application with a certain path (e.g. /ws/), and make sure the Tapestry filter ignores those paths by a contribution to your app module: public static void

Application Period for Travel Assistance to ApacheCon US 2009 Opens Soon

2009-07-22 Thread Howard Lewis Ship
The Travel Assistance Committee is taking in applications for those wanting to attend ApacheCon US 2009 (Oakland) which takes place between the 2nd and 6th November 2009. The Travel Assistance Committee is looking for people who would like to be able to attend ApacheCon US 2009 who may need some

Re: T5.1.0.5 IllegalStateException after invalidating Session

2009-07-22 Thread P . Stavrinides
I still think this is a bug... I see it occasionaly but incosistently between containers (jetty and tomcat), I think there is some inconsistency between 2.3 compliant and 2.4 compliant Servlet containers when invalidating a session. If you use the workaround for 5.1 then change: if

JumpStart 4.3 for T5.1.0.5: old documentation links

2009-07-22 Thread Sergey Didenko
Hi Geoff, I suggest to change links from T5.0 to T5.1 documentation. For example on page http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/input/creatingvalidators1 there are links like Form Input and Validation that point to T5.0 docs. On Thu, Jul 16, 2009 at 8:59 AM, Geoff

Re: T5.1.0.5: StackMapTable format error

2009-07-22 Thread P . Stavrinides
Be sure also to include an exclusion if you use ChenilleKit, or you will run into similar issues. dependency groupIdorg.chenillekit/groupId artifactIdchenillekit-tapestry/artifactId version1.0.0/version exclusions exclusion groupIdjboss/groupId artifactIdjavassist/artifactId /exclusion

Re: Passing data to the same page - Understanding PersistanceContext.FLASH

2009-07-22 Thread Thiago H. de Paula Figueiredo
Em Wed, 22 Jul 2009 05:51:23 -0300, Stephan Windmüller stephan.windmuel...@cs.tu-dortmund.de escreveu: It is really necessary to use a persistent store when all needed data is transmitted with each submit of the form? Tapestry does redirect-after-post by default, so some form of persistence

RE: T5.1.0.5: StackMapTable format error

2009-07-22 Thread Newham, Cameron
Thanks Peter. I do use ChenilleKit but haven't run into this problem (I presume that's because Maven always uses the later version if there is a conflict? And as I've explicitly brought in the later version of Javassist then that overrides any earlier versions being included on the classpath) I

Re: T5.1.0.5: StackMapTable format error

2009-07-22 Thread P . Stavrinides
Specifying the latest Javassist (3.8.GA) in my POM solved the problem. I note that I found this out from an email sent by Howard in 2007 addressing a query on StackMapTable error. I find it somewhat surprising that this problem still occurs in 2009. Surely Tapestry 5.1.x should be using the

Re: T5.1.0.5: StackMapTable format error

2009-07-22 Thread Thiago H. de Paula Figueiredo
Em Wed, 22 Jul 2009 07:40:24 -0300, Newham, Cameron cameron.new...@bl.uk escreveu: I note that I found this out from an email sent by Howard in 2007 addressing a query on StackMapTable error. I find it somewhat surprising that this problem still occurs in 2009. Surely Tapestry 5.1.x should be

Re: T5.1.0.5: StackMapTable format error

2009-07-22 Thread Peter Stavrinides
I do use ChenilleKit but haven't run into this problem (I presume that's because Maven always uses the later version if there is a conflict? In my limited experience with Maven that is not the case, I think it may depend on a few factors, explicit dependency declarations tend to win out, as

RE: T5.1.0.5: StackMapTable format error

2009-07-22 Thread Newham, Cameron
Very odd. I based my comment on what I observed in the M2 POM editor dependencies tab... -Original Message- From: Thiago H. de Paula Figueiredo [mailto:thiag...@gmail.com] Sent: 22 July 2009 14:22 To: Tapestry users Subject: Re: T5.1.0.5: StackMapTable format error Em Wed, 22 Jul 2009

Pop up validation error bubbles

2009-07-22 Thread Sergey Didenko
I propose to add .t-error-popup { z-index: 2; } into common Tapestry css. Without it popup errors are semi-hidden behind input labels, which looks ugly. I'm going to create a JIRA issue for that. Any remarks, objections? Regards, Sergey.

At OSCON thru Friday

2009-07-22 Thread Howard Lewis Ship
I just arrived at OSCON; if any Tapestry folks are here (despite the anemic Java track) come and fine me! I'll be here through Friday. -- Howard M. Lewis Ship Creator of Apache Tapestry Director of Open Source Technology at Formos

Re: Return type org.apache.tapestry5.json.JSONObject can not be handled

2009-07-22 Thread Franz Amador
I wondered that also, and I'm waiting on an answer. Does disabling JavaScript make the Ajax stuff invisible to Tapestry? If so, it'd be great to have a better error message. From: Howard Lewis Ship (via Nabble) ml-user+45099-44142...@n2.nabble.com To: Franz

Component Event Context, ValueEncoder Lifecycle

2009-07-22 Thread Stefan
Hi, i'm currently writing my first component, which should work like this one : http://wiki.apache.org/tapestry/Tapestry5HowToCreateASimpleGraphComponent Everything works fine so far, but: I have to pass some complex data structures (encapsulated in objects) to the component, doing so:

Re: Pop up validation error bubbles

2009-07-22 Thread Sergey Didenko
Sorry, that turned out to be caused by z-index: 1 property on my content. Sorry again. Regards, Sergey. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail:

Re: Component Event Context, ValueEncoder Lifecycle

2009-07-22 Thread Thiago H. de Paula Figueiredo
Em Wed, 22 Jul 2009 13:57:16 -0300, Stefan ste...@wammel.com escreveu: Hi, Hi! void beginRender(MarkupWriter writer) { Link lnk = resources.createEventLink(EVENT_NAME, context); You should encode the event context before passing it to createEventLink(). ;) Then, in your event

Form component generates invalid xhtml

2009-07-22 Thread Sergey Didenko
I just encountered that Form generates invalid xhtml 1.0 strict - it puts name attribute to the form tag and that is invalid. ' form name=loginForm id=loginForm method=post ...' Do you know any workaround? Or should I better switch to Html Strict? Regards, Sergey.

Re: T5 - Configuration and .tml Files are Exposed By Tapestry.

2009-07-22 Thread Daniel Jones
Julian: Thanks for sharing your solution to this problem. It seems like a good workaround. Ulrich: It is good to know that the directory listing has been addressed. Hopefully this security hole will be fixed in the next release. Daniel Ulrich Stärk wrote: There is no directory listing

Re: Form component generates invalid xhtml

2009-07-22 Thread Ulrich Stärk
Did you set the correct doctype inside your templates? On 22.07.2009 20:27 schrieb Sergey Didenko: I just encountered that Form generates invalid xhtml 1.0 strict - it puts name attribute to the form tag and that is invalid. ' form name=loginForm id=loginForm method=post ...' Do you know any

Re: T5 - Configuration and .tml Files are Exposed By Tapestry.

2009-07-22 Thread Julian Wood
You can secure the directory listing too: public static void contributeMasterDispatcher(OrderedConfigurationDispatcher configuration) { configuration.addInstance(DirectoryAsset, DirectoryAssetDispatcher.class, before:Asset); } public class DirectoryAssetDispatcher