Hi Robert, Thanks, looking at that outbound link, I just don't know how to form a link to a grid's pager:
from this: /internallist.grid.pager/2?t:ac=X change to: /mylist:grid.pager/2?t:ac=X seems not working. Robert Zeigler wrote: > > Sure. Make your rule rewrite both inbound and outbound. The outbound > refers to links created by tapestry, so you have an opportunity to > rewrite the urls that go out to the client. Just make sure to > properly convert them back to tapestry-understood urls when they come > back in. You can distinguish between "outbound" and "inbound" > rewriting via the urlRewriteContext. > > Cheers, > > Robert > > On Oct 5, 2009, at 10/55:21 PM , Angelo Chen wrote: > >> >> 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 > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > > -- View this message in context: http://www.nabble.com/t5%3A-urlrewrite-and-grid-pager%27s-link-tp25757184p25763110.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