Akaine Harga wrote:Sorry for becoming pain in the ash with this.
And thanks for your help.
Let's simplify the terms and arguments. I'm looking for solution for 2 issues:
1. To make all resources (images, styles, scripts, etc.) be displayed on every page based on the template.
2. Show the URL with application base only (htpp://host/webapp) without sub-routes and maybe even without session ids.
And yes, in (2) I'm talking about the url string in a browser. What really happens with the external or faces contexts I don't care as soon as these 2 are solved.
Btw, I know what url and context are
Tim Holloway wrote:On #2 You're doomed. That control belongs to the client's web browser not to you or the web server. You can't put arbitrary text in it and expect it to work. If you don't like the URLs returned by JSF, you'll just have to invent your own system. In J2EE, the context just points you to the webapp. You have to provide additional data to target the incoming URL and data to a specific servlet/jsp within that webapp such as the FacesServlet. That's the function of servlet mapping in web.xml. If you have a "welcome" element in web.html, a bare context URL will be rewritten by the appserver to target the welcome URL, but that's about as close as you can get.