Re: question about recursion in a component.

2008-08-20 Thread Francois Armand
Antonio Ordoñez wrote: Hallo everybody. My question is about how could I implement a recursion in tapestry 5? Tapestry does not support recursion. It's a pity, especially for your very use case, but according to Howard, it's a design choice that brings simplicity, scaling possibility and

Complete newbie issue: Tapestry tutorial inside Eclipse?

2008-08-20 Thread torput
I was trying this tutorial: http://tapestry.apache.org/tapestry5/tutorial1/env.html But with runjettyrun and also newer versions of other required tools. When I try to run the tutorial1 inside Eclipse, this is what I get. Any idea what I should do? [INFO] mortbay.log Logging to

Re: T5.0.14: Form with zone not uploading file

2008-08-20 Thread Bill Holloway
Actually, I've been doing it. XHR doesn't. But there's a trick you can pull. You set the target attribute of the form tag to a hidden iframe on the page and DON'T do XHR. Normal form submission. The effect is somewhat the same, but you don't have a client-side javascript callback once the

[t5] Modal Windows with t5Components Window Class

2008-08-20 Thread Daniel Alonso Sanchez
Hi again to everybody, i have came back again with more doubts and questions %-| I'm using the Window class of t5components, but i have a problem: i wan't partial behaviour of GoogleWindow sample (disabled background), but with the behaviour of the others (not automatically open, just

Re: [t5] Modal Windows with t5Components Window Class

2008-08-20 Thread Sven Homburg
a href=# onclick=window2.showCenter(*true*)click here for modal window/a 2008/8/20 Daniel Alonso Sanchez [EMAIL PROTECTED] Hi again to everybody, i have came back again with more doubts and questions %-| I'm using the Window class of t5components, but i have a problem: i wan't partial

Re: [t5] Modal Windows with t5Components Window Class

2008-08-20 Thread Sven Homburg
give the showCenter methode the parameter value true and it should works 2008/8/20 Daniel Alonso Sanchez [EMAIL PROTECTED] # click here for modal window Sorry for disturbing again, but inside my js function called ShowWindow2 i have the following code function showWindow2(idSeccion )

Re: [t5] Modal Windows with t5Components Window Class

2008-08-20 Thread Daniel Alonso Sanchez
Sven Homburg wrote: # click here for modal window # click here for modal window Sorry for disturbing again, but inside my js function called ShowWindow2 i have the following code function showWindow2(idSeccion ) { ${window2.componentResources.id}.setTitle(Ayuda);

Re: Tapestry5Chinaforum(中文论坛欢迎大家加入)and some words to Howard Lewis Ship

2008-08-20 Thread Donyee
Where is the link??? 2008/8/20 Angelo Chen [EMAIL PROTECTED] [EMAIL PROTECTED] (let's talk only about tapestry 5 in this forum, in English too) 孟凡振 wrote: Firstly,thank u for your suggestion!! 学习是一个过程,不管你现在多牛x,你也是从中国式的英语过度过来的吧,呵呵。况且,俺还不知道您的英语如何。

Re: [t5] Modal Windows with t5Components Window Class

2008-08-20 Thread Daniel Alonso Sanchez
Sven Homburg wrote: give the showCenter methode the parameter value true and it should works 2008/8/20 Daniel Alonso Sanchez [EMAIL PROTECTED] # click here for modal window Sorry for disturbing again, but inside my js function called ShowWindow2 i have the following code

Re: Cant get FromFragment to skip server side validation

2008-08-20 Thread devilabit
I have had some time to revisit the form fragment today. It seems that for a hidden form fragment section to bypass server side validation client side validation MUST be enabled. Is there any way to get a hidden form fragment with required fields to bypass server side validation on submit? It

[T4.1] Chained PageRedirectException doesn't seem to be working for me

2008-08-20 Thread Jim
Hello, I have PageA throwing a PageRedirectException to PageB in its pageBeginRender, and PageB throwing a PageRedirectException to PageC in its pageBeginRender. However, PageB's PageRedirectException is resulting in the Tapestry exception-page, without trying to render PageC -- the

[T5] Manipulating response after page is rendered

2008-08-20 Thread 9902468
Hi again list, I'm trying to implement features that need to modify response with a filter. Currently my biggest (and only as far as I can tell) problem is that T5 flushes the response in PageResponseRendererImpl. Thus the response is sent to client before my filter can manipulate response

Re: Trying to Implement RedirectException in Tapestry 5

2008-08-20 Thread Massimo Lusetti
On Wed, Aug 20, 2008 at 2:45 AM, Howard Lewis Ship [EMAIL PROTECTED] wrote: Using exceptions for control flow was never one of Tapestry great ideas; that's why its gone in Tapestry 5. Exceptions are exceptions, representing things that have failed. In any case, the activate event is a good

Re: Trying to Implement RedirectException in Tapestry 5

2008-08-20 Thread Thiago H. de Paula Figueiredo
Em Wed, 20 Aug 2008 08:23:12 -0300, 9902468 [EMAIL PROTECTED] escreveu: I have also noticed that onActivate is a bad place to check general access rights as you cannot be sure that the check implemented to base class is not overridden or if developer uses one of the onActivate(param)

Re: Trying to Implement RedirectException in Tapestry 5

2008-08-20 Thread 9902468
One possibility yes, but that approach requires to keep a list of secured pages to allow un-authorized users access non-secure pages. (Pages could of course be annotated to be secure or use marker interface.) And your approach occurs earlier in the request cycle... Thanks for the pointer!

[T5.0.14] Problem with ANSI codification in .properties files

2008-08-20 Thread Marcelo Lotif
Hi all, I'm experiencing a little problem with special characters (áãéõó... and so on) after I switched to T 5.0.14: some files, mainly properties files, are not displayed properly when they are loaded to my pages. Since I'm running on a windows machine, all my files are saved in ANSI by default.

Re: Trying to Implement RedirectException in Tapestry 5

2008-08-20 Thread Thiago H. de Paula Figueiredo
Em Wed, 20 Aug 2008 09:38:36 -0300, 9902468 [EMAIL PROTECTED] escreveu: One possibility yes, but that approach requires to keep a list of secured pages to allow un-authorized users access non-secure pages. (Pages could of course be annotated to be secure or use marker interface.) That's

Re: Complete newbie issue: Tapestry tutorial inside Eclipse?

2008-08-20 Thread Toby Hobson
Not exactly an answer to your problem but I debug mvn jetty:run through eclipse as an external tool and it works nicely. If you can't get the jetty launcher to work properly you might want to try this Toby 2008/8/20 torput [EMAIL PROTECTED] I was trying this tutorial:

Re: Trying to Implement RedirectException in Tapestry 5

2008-08-20 Thread 9902468
I've used Spring with T4 and it has it's merits, but Spring was outvoted for our two next projects as the projects are small scale and there is always overhead when using spring. (Trying to keep the technology stack as small as possible to make clean software.) So we have to make do with T5 +

T5: Grid and t:parameter and domain-object with getId presents strange output

2008-08-20 Thread Arve Klev
hi all, I'm presenting data from my domain-model in a grid, and run into some odd behavior in this circumstances: From the domain-model - Person.java: public class Person implements Serializable, ComparablePerson { ... private String id; public String

Re: Trying to Implement RedirectException in Tapestry 5

2008-08-20 Thread 9902468
On a side note, it's a bad thing to hard code allowed roles to page, we use a service that is queried if this role is allowed to access this page (Or execute this action.). That way we can have role - rights matrix that can be administrated by the super user of the system. (Info can be on a file

Re: Trying to Implement RedirectException in Tapestry 5

2008-08-20 Thread Peter Stavrinides
I love the dispatcher approach for this, I like it simply because it removes security concerns from pages and is lightweight and customizable. - Original Message - From: 9902468 [EMAIL PROTECTED] To: users@tapestry.apache.org Sent: Wednesday, 20 August, 2008 4:30:05 PM GMT +02:00

Re: Trying to Implement RedirectException in Tapestry 5

2008-08-20 Thread Markus Joschko
Just want to throw in a non security related use case. Imagine a wizard where the user jumps to the url of step3 before completing step1. A dispatcher approach would be overkill and the onactivate method seems to be only called if an context is provided which is not necessarily the case. How

Re: Trying to Implement RedirectException in Tapestry 5

2008-08-20 Thread Thiago H. de Paula Figueiredo
Em Wed, 20 Aug 2008 11:55:03 -0300, Markus Joschko [EMAIL PROTECTED] escreveu: Just want to throw in a non security related use case. Imagine a wizard where the user jumps to the url of step3 before completing step1. A dispatcher approach would be overkill and the onactivate method seems to

RE: Trying to Implement RedirectException in Tapestry 5

2008-08-20 Thread Ben Wong
Can you give me some guidance on this? I implemented the code as described in the wiki but the AppModule does not catch the RedirectException? I like the PageAttached approach over the onActivate but I cannot seem to get the page redirected. Once again, I am using the tapestry-spring filter,

[T4.1.5] hanging app

2008-08-20 Thread Jeroen Koomen
Hi, I am using tapestry 4.1.5 and sometimes my app does not react any more and the browser will just keep loading the page. The logging will only show DEBUG [RequestGlobals] Constructing core service implementation for service tapestry.globals.RequestGlobals And nothing else happens.

T5: two submit button in on form

2008-08-20 Thread Argo Vilberg
hi, How to handle two different submit buttons click in tapestry. @OnEvent(value=submit, component=search) void onFormSubmit2() { } @OnEvent(value=submit, component=search) void onFormSubmit3() { } t:form t:id=search t:submit

Re: T5: two submit button in on form

2008-08-20 Thread Martijn Brinkers (List)
See http://wiki.apache.org/tapestry/Tapestry5HowToUseForms Martijn On Wed, 2008-08-20 at 19:43 +0300, Argo Vilberg wrote: hi, How to handle two different submit buttons click in tapestry. @OnEvent(value=submit, component=search) void onFormSubmit2() { }

Re: T5: Grid and t:parameter and domain-object with getId presents strange output

2008-08-20 Thread Howard Lewis Ship
This is very odd; it certainly is not something inside Tapestry. I would look into what's going on with Maven and Jetty. Maven may be trying to filter the .tml file before Jetty deploys it; if possible, switch to an exploded WAR format and see exactly what file is in the exploded WAR ... it may

Re: T5: Grid and t:parameter and domain-object with getId presents strange output

2008-08-20 Thread Arve Klev
Thank you for the answer. I'll post a message if I should stumble across any interesting findings. thanks, Arve 2008/8/20 Howard Lewis Ship [EMAIL PROTECTED] This is very odd; it certainly is not something inside Tapestry. I would look into what's going on with Maven and Jetty. Maven may

Re: Trying to Implement RedirectException in Tapestry 5

2008-08-20 Thread Andreas Andreou
Yea - to quote you from http://issues.apache.org/jira/browse/TAPESTRY-647 Which just goes to show why using exceptions for this kind of control flow really is a bad idea! I'll fix it on my next framework, promise! :) On Wed, Aug 20, 2008 at 3:45 AM, Howard Lewis Ship [EMAIL PROTECTED] wrote:

Re: Trying to Implement RedirectException in Tapestry 5

2008-08-20 Thread Filip S. Adamsen
Hi, I'm using request filters for this right now. It's a pretty good approach imo, and it's easy to get the security configuration from wherever you want. My applications aren't that complex so I get by with annotations on my page classes, but you could easily get this from somewhere else,

Re: Trying to Implement RedirectException in Tapestry 5

2008-08-20 Thread Chris Lewis
Ben Wong wrote: I decided against the dispatcher approach for the reasons ville.virtanen brought up. The dispatcher will have to know what pages are secured and which aren't. Whatever authentication system you use will be burdened with the same issue. After all it is a critical

Why you should consider T5

2008-08-20 Thread Partogi, Joshua
Dear all, I written a small blog post to evangelize people about T5 here: http://joshuajava.wordpress.com/2008/08/21/why-you-should-consider-tapestry- 5/ Please give me some feedback to make this post even better. Thanks in advance IMPORTANT NOTICE: The information in this email (and any

client validators accept #,000.00 pattern

2008-08-20 Thread learner
i use validator like below. how to allow accept of value range 0.00 -- 5,000,000.000 , with comma ? tr tdspan jwcid=@Insert value=message:sellingprice//tdtdinput jwcid=@TextField value=ognl:sellingPrice maxlength=10 size=10 translator=translator:number,pattern=#.##