I have some JSF xhtml pages like below.
ROOT | |--index.xhtml | |--register.xhtml | |--<templates> (Directory) | | | |--userForm.xhtml | | | |--banner.xhtml
both pages are using the templates from templates directory. My index file is getting the templates well and works fine. I have a link from index.xhtml file to register.xhtml. My register.xhtml is displayed like an xml file. The reason is ttemplate is not applied to that.
But if I call the register.xhtml like (faces/register.xhtml) then it displays correctly.
What would be the reason? is there any workaround to solve it?