Re: SimpleRequestWrapper and LinkTransformer (Solved)

2011-12-03 Thread angelochen
this works, thanks. -- View this message in context: http://tapestry.1045711.n5.nabble.com/SimpleRequestWrapper-and-LinkTransformer-tp5043890p5045517.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To un

Re: SimpleRequestWrapper and LinkTransformer

2011-12-03 Thread Martin Strand
Add a static import to the top of your module class and it will compile fine: import static org.apache.tapestry5.ioc.OrderConstraintBuilder.after; On Sat, 03 Dec 2011 07:25:44 +0100, angelochen wrote: "after" not accepte, btw, i'm still using 5.2.6 Martin Strand-4 wrote public void c

Re: SimpleRequestWrapper and LinkTransformer

2011-12-02 Thread angelochen
"after" not accepte, btw, i'm still using 5.2.6 Martin Strand-4 wrote > > > public void contributeRequestHandler(OrderedConfiguration > configuration) > { >configuration.add("basicPathRequestFilter", new > BasicPathRequestFilter(...), > after("StoreIntoGlobals").before("EndOfRequest").build

Re: SimpleRequestWrapper and LinkTransformer

2011-12-02 Thread Martin Strand
Do you mean it compiles fine, but has no effect at runtime? This is an "ordered" configuration, you might need to specify where in the list of request filters you want yours inserted. http://tapestry.apache.org/tapestry-ioc-configuration.html#TapestryIoCConfiguration-OrderedList Here's how I con

Re: SimpleRequestWrapper and LinkTransformer

2011-12-02 Thread angelochen
Thanks, can you give more details on this part? mine does not work: public void contributeRequestHandler(OrderedConfiguration configuration) { configuration.add("basicPathRequestFilter", new basicPathRequestFilter(pathServices)); } Martin Strand-4 wrote > > > public void contribute

Re: SimpleRequestWrapper and LinkTransformer

2011-12-02 Thread Martin Strand
I'm doing these kind of arbitrary rewrites with a custom RequestFilter, sounds like that would suit your needs. Here's an example: public class YourRequestFilter implements RequestFilter { @Override public boolean service(Request request, Response response, RequestHandler handler) th

Re: SimpleRequestWrapper

2011-09-19 Thread Thiago H. de Paula Figueiredo
On Mon, 19 Sep 2011 19:01:34 -0300, Juan Germán Castañeda Echevarria wrote: Hi, Hi! I am in the process of upgrading to 5.3 and I have a request handler which uses SimpleRequestWrapper which is now deprecated. It was part of the URL rewriting API that was deprecated in 5.2 and remove