I want to rewriting my page,code like this:
public class AutoLoginLinkTransformer implements PageRenderLinkTransformer {

        @Inject
        private RequestGlobals requestGlobals;

        @Inject
        private MainLoginService loginService;

        @Inject
        private TypeCoercer typeCoercer;

        private String usrid;

        public PageRenderRequestParameters decodePageRenderRequest(Request 
request)
{
                if (filter(request)) {
                        return new 
PageRenderRequestParameters(Space.class.getSimpleName(),
                                        new ArrayEventContext(typeCoercer, new 
Object[] { usrid }),
                                        false);
                }
                return null;
        }

        public Link transformPageRenderLink(Link defaultLink,
                        PageRenderRequestParameters parameters) {
                return defaultLink;
        }

I want to the page rewriting to page "Space" and it sucess to the space,but
the url is not change,
how can I solve this problem? Or is there any interface replace the
"PageRenderLinkTransformer".
My target is to add a filter,if it can not pass the filter's validate, then
page skip to another page.Is there any another way?  If can share the code
is best.
Any one can help me, thanks a lot.

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/A-T5-rewrite-problem-tp4561766p4561766.html
Sent from the Tapestry - Dev mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to