Re: Specify view-id for “Non-JSF” resources

Splash Forums PrettyFaces Users Specify view-id for "Non-JSF" resources Re: Specify view-id for “Non-JSF” resources


Yes, it should be possible to use the URL of a Servlet as a viewId in a mapping. Actually PrettyFaces just forwards the request to the viewId, so every URL that your container knows about should work.

What exactly is your question? How you would use this mapping? You could for example use the <pretty:link> component to create a link to the URL.

BTW: You don’t need to use a Servlet for this. You could also simply create your content in an URL action. See this article for details: