Em Mon, 30 Mar 2009 18:47:39 -0300, xfile80303 <l...@grokers.net> escreveu:
> http://n2.nabble.com/How-to-parse-and-map-URLs--tt2540788.html
Besides the .page suffix in the example (I guess it is just wront), simple
URL rewriting (i.e. changing a page name) shouldn't cause you troubles. If
I wasn't having serious 64-bit Eclipse instability on Linux now, I would
try to do some simple rewriting in a real application I'm writing now . . .
Perhaps a better example is needed...
I want to insert the notion of "site" into the URL and application, such that I
can use the same pages to render content, but these pages can have access to
what "site" they are currently rendering and change behavior, look and feel,
whatever. The site parameter would need to be available for all pages, not
just a page context parameter, so the application url looks something like:
http://myhost.com/SITE/page/params
Where the only difference from normal Tapestry URL is the insertion of the SITE
before the rest of the URI, such that SITE could be anything (like, "partner",
"foo", or "main" etc.).
So the URL Rewriting implementation does not seem to be quite a match since if
I insert anything for SITE, as mentioned, it breaks Tapestry's ability to
properly deal with the request for pages and page content, etc. The SITE
parameter needs to be "virtual" and yet still generated for page links.
Not to cloud the issue, but for reference:
http://n2.nabble.com/-T5--Struggling-With-Concepts-tt2324920.html
http://n2.nabble.com/-T5--URL-Manipulation-tt2276010.html
Since those posts I was able to create a dispatcher which replaced the
PageRender dispatcher and a LinkFactory which overrides the
createPageRenderLink functionality to insert the "site" parameter into the
generated URLs.
Since 5.1.0.0 there seems to have been a lot of work in this space (which is
great!) and I was hoping to avoid overriding internal functionality in order to
accomplish what I needed (and allow for a simpler upgrade path in the future).
Thanks,
Levi
--
View this message in context:
http://n2.nabble.com/T5.1-URL-Rewriting-tp2557652p2560040.html
Sent from the Tapestry Users 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