Hi,

I use following code to rewrite http://localhost:8080/mylist to
http://localhost:8080/internallist/X

this works, however the page has a grid, so the pagination's link does not
change, I still get:

/internallist.grid.pager/2?t:ac=X

any idea how to change the pager's link as well? Thanks.

public class PathRewrite implements URLRewriterRule {

    public Request process(Request request, URLRewriteContext
urlRewriteContext) {

        String path = request.getPath();

        if ("/mylist".equalsIgnoreCase(path)) {
            String newURL = "/internallist/X";
            request = new SimpleRequestWrapper(request, newURL);
        }
        return request;
    }

    public RewriteRuleApplicability applicability() {
        return RewriteRuleApplicability.INBOUND;
    }
}
-- 
View this message in context: 
http://www.nabble.com/t5%3A-urlrewrite-and-grid-pager%27s-link-tp25757184p25757184.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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

Reply via email to