Is it possible to map URL's with independent view dir structure?
If so how?
My goal is to simply point an url to a specific view file:
i.e.
to
and
to
A couple solutions I found so far where:
Solution 1
PrettyFaces
I just didn't wanted to use a third party solution.
This is my best solution so far.
Solution 2(a
JSF solution):
navigation rule entries in the faces-config.xml file.
A bean is required, not a bad thing in above example but not great in combination with static navigation like:
Solution 3 (another JSF solution)
Resource Library Contracts
This forces me to work in the contracts file.
None of the solutions gave me a clear solution except prettyfaces.
Are there some elegant native JSF solutions ?
Something flexible and reusable? Something like a mvc controller i used to use in php applications. In this controller I was able to add a template file in the constructor and an content file in specific function. Custom paths where no problem.
I didn't want to use mvc nor the php language in this project.
Maybe I should go completely custom. But I just wanted to ask if there was something out of the box for this.
I'm still studying
Java EE and jsf a lot, forgive me for asking a noob question. :)
Thanks a lot!