Hi!
This should be posted in the users mailing list, not the dev one.
On Thu, 07 Jul 2011 14:14:29 -0300, dick_hu <[email protected]> wrote:
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]
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
Consultor, desenvolvedor e instrutor em Java, Tapestry e Hibernate
http://www.arsmachina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]