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

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
t; after("StoreIntoGlobals").before("EndOfRequest").build()); > } > -- View this message in context: http://tapestry.1045711.n5.nabble.com/SimpleRequestWrapper-and-LinkTransformer-tp5043890p5044026.html Sent from the Tapestry - User mailing list archive at Nabble.com

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
; > public void contributeRequestHandler(OrderedConfiguration > configuration, ...) > { >configuration.add("YourRequestFilter", new YourRequestFilter() ...); > } > > -- View this message in context: http://tapestry.1045711.n5.nabble.com/SimpleRequestWrapper-and-LinkT

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

SimpleRequestWrapper and LinkTransformer

2011-12-02 Thread angelochen
s message in context: http://tapestry.1045711.n5.nabble.com/SimpleRequestWrapper-and-LinkTransformer-tp5043890p5043890.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-