Re: Deal with URL as a parameter and redirect

2010-09-08 Thread Katia Aresti Gonzalez
I don't understand what do you mean about "reverse solution". What exactly are you trying to do ? Why do you need to pass the URL as an url parameter ? 2010/9/9 t5.0 > > Thanks but I'm looking for the "reverse" solution: handle a URL provided to > the page. > > I tried with a onActivate(url)

Re: Retrieve ActivationRequestParameters in custom PageResponseRenderer

2010-09-08 Thread Christophe Cordenier
Weird, does you Index page extends a base class ? 2010/9/8 Markus Feindler > Sorry to bother you, but Im stuck with a DuplicateMemberException: > Caused by: java.lang.RuntimeException: > javassist.bytecode.DuplicateMemberException: duplicate method: > extractRequestParameters in de.wiv.tapestry

Re: Deal with URL as a parameter and redirect

2010-09-08 Thread t5.0
Thanks but I'm looking for the "reverse" solution: handle a URL provided to the page. I tried with a onActivate(url) based page but it seems Tapestry prevents the URL to be passed as a parameter, since it interprets the '/' as parameter separator. Is there a way for *one* to prevent this interpr

Re: reloading not working, what did i break?

2010-09-08 Thread Kalle Korhonen
I had another developer complaining to me about the same issue that Paul originally stated in this thread, so in case it's of interest to others... This particular issue is caused by Eclipse trying to copy resources around while Tapestry is reloading resources for live class reloading, and the reme

Re: Display Objects of BeanClass in Grid

2010-09-08 Thread Howard Lewis Ship
Behind the scenes for Grid, BeanEditor and BeanDisplay is the BeanModel class, a description of the properties of the object to be displayed. Most of the time, Tapestry creates this BeanModel for you, using the BeanModelSource service. The best way to accomplish what you want is to get the BeanMo

Re: form field validation

2010-09-08 Thread Sven Homburg
hehe, cool i cant see the forrest there are too many trees in front of with regards Sven Homburg Founder of the Chenille Kit Project http://chenillekit.codehaus.org 2010/9/8 LLTYK : > > If you validate server side its easy with onValidateFromSoAndSoField(). > Then you just check you

Re: form field validation

2010-09-08 Thread LLTYK
If you validate server side its easy with onValidateFromSoAndSoField(). Then you just check your parameter that enables validation and decide whether or not to do it. -- View this message in context: http://tapestry-users.832.n2.nabble.com/form-field-validation-tp5511922p5512116.html Sent fr

Re: Retrieve ActivationRequestParameters in custom PageResponseRenderer

2010-09-08 Thread Markus Feindler
Sorry to bother you, but Im stuck with a DuplicateMemberException: Caused by: java.lang.RuntimeException: javassist.bytecode.DuplicateMemberException: duplicate method: extractRequestParameters in de.wiv.tapestryportlet2.pages.Index at org.apache.tapestry5.internal.services.InternalClassTr

Re: Versioned assets

2010-09-08 Thread LLTYK
Does putting it in the filename instead of the "directory" also have caveats? -- View this message in context: http://tapestry-users.832.n2.nabble.com/Versioned-assets-tp5421811p5512040.html Sent from the Tapestry Users mailing list archive at Nabble.com. ---

form field validation

2010-09-08 Thread Sven Homburg
Hi there, i search for a solution for the problem below: i have a components that includes some form field components. in one page i want to use this component with sone validations and in an other page i want to use the same component but with no validations. how is the best way to solve this p

Re: Versioned assets

2010-09-08 Thread Howard Lewis Ship
This has been considered, but it would mess up relative URLs inside stylesheets. On Tue, Sep 7, 2010 at 4:14 AM, LLTYK wrote: > > What it should do is instead insert some sort of hash of the file's contents > in the url. Then whenever your file changes the browser won't pick up the > previous cac

Re: Deal with URL as a parameter and redirect

2010-09-08 Thread Katia Aresti Gonzalez
Concerning to *"URL given as a parameter to a page"* Be careful, as this practice is not considered a good idea at all ;) You can read here why : http://www.owasp.org/index.php/Top_10_2010-A10 Thanks Christophe Cordenier for the tip 2010/9/8 Katia Aresti Gonzalez > Hi, > > You can return an

Looking for a Java/Tapestry Developer - Please help!

2010-09-08 Thread AaronNeale
Hi All, I hope I'm posting in the right place! I could really use some help with this position that I am currently recruiting for. Tapestry seems to be quite a specialist skill at the moment so any help you can provide will be sincerely appreciated. Who do you know that would be interested in th

Re: AjaxFormLoop insists on being a ? Or how to control where add row inserts.

2010-09-08 Thread LLTYK
Well I finally tried it, and you need a correct addrow too: Add Row Worked great :) -- View this message in context: http://tapestry-users.832.n2.nabble.com/AjaxFormLoop-insists-on-being-a-tr-Or-how-to-control-where-add-row-inserts-tp5342543p5510163.html Sent from the Tapestr

Re: Deal with URL as a parameter and redirect

2010-09-08 Thread Katia Aresti Gonzalez
Hi, You can return an URL object and this will perform the redirect like this example : public Object onActivate() { URL myURL= null; try { myURL= new URL("http://www.google.com";); } catch (MalformedURLException e) { //log

Deal with URL as a parameter and redirect

2010-09-08 Thread t5.0
What is the best strategy to deal with a URL given as a parameter to a page, and then perform a redirect to it, with Tapestry 5.0.x 1. onActivate @Inject private Response response; public void onActivate(String url) { ...some processing with url... response.sendRedirect(url); } 2.

Re: New Tapetry5 doc site ?

2010-09-08 Thread Massimo Lusetti
On Wed, Sep 8, 2010 at 11:43 AM, Christophe Cordenier wrote: > Hi > > Here it is https://cwiki.apache.org/TAPESTRY/ Thank you. Cheers -- Massimo http://meridio.blogspot.com - To unsubscribe, e-mail: users-unsubscr...@tapestry

Re: New Tapetry5 doc site ?

2010-09-08 Thread Christophe Cordenier
Hi Here it is https://cwiki.apache.org/TAPESTRY/ 2010/9/8 Massimo Lusetti > Hi guys, > I've been aways for a while and I think I miss the new location of > the new 'official' Tapestry5 doc site? Would anyone please remind me, > I'm stuck with http://tapestry.apache.org/tapestry5.2-dev/ but I t

Re: X-Frame-Options support?

2010-09-08 Thread Christophe Cordenier
Hi ! You can create your own RequestFilter that will add the corresponding header in the Response, also you can combine this filter with the use of @Meta annotation (see MetaDataLocator) if you want to handle it for specific pages only. HTH 2010/9/8 Patrick Moore > Hi there -- > > Does T5 hav

New Tapetry5 doc site ?

2010-09-08 Thread Massimo Lusetti
Hi guys, I've been aways for a while and I think I miss the new location of the new 'official' Tapestry5 doc site? Would anyone please remind me, I'm stuck with http://tapestry.apache.org/tapestry5.2-dev/ but I think the whole effort has been directed towards Confluence... right? BTW I completel

X-Frame-Options support?

2010-09-08 Thread Patrick Moore
Hi there -- Does T5 have support for X-Frame-Options ? http://blogs.msdn.com/b/ieinternals/archive/2010/03/30/combating-clickjacking-with-x-frame-options.aspx Patrick Moore Amplafi http://amplafi.com mobile: 650-207-9792 "Put your front window on your front page" corp blog : http://amplafi.com/

Re: New URL Rewriting API - how do I pass parameters to rewritten request?

2010-09-08 Thread Igor Drobiazko
Ok, I see. You want one of your activation methods to be called: either the one with numeric context or the one with string context. As Thiago suggested, just create an appropriate event context object and pass it. BTW this can be implemented without the URL rewriting as well. Just provide an acti