Hi, I haven't met XML and JSF working together. I mean having structure and dictionaries defined in XML and representation in JSF. It will be nice to hear your opinion about this idea.
Consider creating a kind of project-info.xml. It could contain something like this:
<project-info>
<project-name>My project</project-name>
<menu-pages>
<menu-page name="home" view-id="/home.xhtml" title="Home" />
<menu-page name="compose-letter" view-id="/compose-letter.xhtml" title="Composing a letter" />
<menu-page name="company" view-id="/company.xhtml" title="Our Company">
<menu-pages>
<menu-page name="colleagues" view-id="/colleagues.xhtml" title="Our Colleauges">
<!-- etc. -->
</menu-pages>
</menu-page>
<!-- etc. -->
</menu-pages>
</project-info>
Using this file it could be easy to separate the structure of the web-site and its jsf-components representation.
It is also easy to support internationalization using XML.
Do you think this concept is not so comfortable in some way? Or are there any other methods to achieve the same separation result?