Filter exclusion

2011-02-08 Thread Gnu Ubuntu
Hi,
I have an event filter that implement ComponentEventRequestFilter. My
project is devided on two packages A  B.
I need to exclude B from the filter, so the filter is not applicable for all
pages in this package.

Can you tell how to do ?

Thanks in advance.


Dynamic Layout

2011-01-23 Thread Gnu Ubuntu
Hi,
I need to apply an if condition in the title in a layout component.
In my layout I want to do :

html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_1_0.xsd;
head
t:if test=conditionError in /t:iftitlePage title/title
/head
body...

So I can get the information that current page is in error
(information stored in session),
but I seem that Tapestry don't reload Layout. So even if my page is in
error my IF is not verifiyed.

How can I tell Tapestry to reload layout page ?

thanks in advance.


Re: Dynamic Layout

2011-01-23 Thread Gnu Ubuntu
Thanks for your responses.
I can't paste code here, but I works for other use's cases. My method tell
me if my form in current page is on error. And in this case I need to add
the word Error in title of this page.
I hope it's more clear now.

So the second why proposed by Taha is not useful in this case.

Thanks,


Get referer url

2010-12-08 Thread Gnu Ubuntu
Hi,
In my app I'm redirected to an external url, and after I need to return to
my app. I'm looking for a way to store the referer url before exiting my app
to return to.
For now, I'm using :
String referer = request.getHeader(referer);
But it's not safe to referer to this browser information.

Do you know an other way to get previous url please?

Thanks in advance.


Re: Redirect to URL with params

2010-11-26 Thread Gnu Ubuntu
Hi,
It not works, because I redirect to an external URL with params.
So I don't know if I must use Response object, and if so how to pass params
to it?
Thanks in advance.


Redirect to URL with params

2010-11-25 Thread Gnu Ubuntu
Hi!
I need to redirect user to an url with some parameters (simulate a post
without form).
Can you help me to do that, please ?

Thanks in advance.


Re: Redirect to URL with params

2010-11-25 Thread Gnu Ubuntu
Thanks Richard for your response.
What I want is to do a post request but my page dosn't contain any form. The
user will be redirected to an URL with some parameters and after that I must
get some other parameters from the response.

I hope that is more clear now.
Thanks.


Re: Redirect to URL with params

2010-11-25 Thread Gnu Ubuntu
Thanks Richard, I'll try that.

2010/11/25 Richard Hill r...@su3analytics.com


 Ok so, if I follow correctly:

 Page A: Doesn't have a form. So instead you have a normal link. This
 contains as url parameters the data to be sent. After processing you
 want to redirect to Page B. So you could do something like this:

 PageA.java:

 @Inject
 private Request request;
 @Inject
 private PageRenderLinkSource prls;


 public Link onActivate() {

   String value1 = request.getParam(key1);
   String value2 = 

   // Do something with these

   Link link = prls.createPageRenderLink(PageB.class);
   link.addParameter(key1, value1);
   ...
   return link;

 }


 If the processing is done by PageA as above, you'll need some logic in
 onActivate() that determines whether you redirect or render the page
 (returning null will mean that PageA is rendered).

 Or instead of a t:pagelink in PageA you could use an t:actionlink
 instead, and return the Link in the onActionFromYourLink().

 Hope that helps.









 -Original Message-
 From: Gnu Ubuntu gnu.ubu...@gmail.com
 Reply-to: Tapestry users users@tapestry.apache.org
 To: Tapestry users users@tapestry.apache.org, r...@su3analytics.com
 Subject: Re: Redirect to URL with params
 Date: Thu, 25 Nov 2010 11:56:15 +0100

 Thanks Richard for your response.
 What I want is to do a post request but my page dosn't contain any form.
 The
 user will be redirected to an URL with some parameters and after that I
 must
 get some other parameters from the response.

 I hope that is more clear now.
 Thanks.



 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org