I am trying to use tapestry sitemesh integration that you provided. It works
pretty well, unfortunately, I have a problem.
I configured sitemesh to use the decorator that you have designed.
If I go to myJSP.jsp,
Address: http://localhost:8080/myApp/myJSP.jsp
The decorator is applied but all the other URLs generated by tapestry components reference to myJSP.jsp rather than /app
Example,
1. The url referencing any image is :
http://localhost:8080/myJSP.jsp?service= asset amp
sp=S%2Fimages%2Ffolder-closed.gif amp sp=S47614fcee6bd1c46b4ef12eab4896642
Instead of
http://localhost:8080/app?service=asset
<http://localhost:8080/app?service=asset&sp=S%2Fimages%2Ffolder- closed.gif&s
p=S47614fcee6bd1c46b4ef12eab4896642>
&sp=S%2Fimages%2Ffolder-closed.gif&sp=S47614fcee6bd1c46b4ef12eab4896642
As you can see, the request URL is myJSP,so url generated is wrong.
What would be the easiest way to change this.
Great question. I have just duplicated this issue with the sitemesh-example.war that SiteMesh includes (after applying my Tapestry decorator patch). I added <a jwcid="@PageLink" page="Tapestry">link back to this page</a> to decorators/Tapestry.html and it generated this link:
http://localhost:8080/sitemesh-example/tapestry.html?service=page/ Tapestry
I have been using the Tapestry decorator, but without any Tapestry components to generate links so I hadn't seen this before.
At this point all I'm doing is confirming the bug. I will look into this further when I can and let you know. Feel free to try to resolve this yourself somehow and let me know the fix if you discover it.
Erik
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
