I've got a web application that I need to be able to configure parts of from a JSF page. So for example, imagine my application was split into several smaller parts each with a folder/file structure like below:
/partname
/config
config.xhtml
/template
generaltemplate.xhtml
search.xhtml
results.xhtml
Search.xhtml & results.xhtml both use the template file, generaltemplate.xhtml. This generaltemplate has an to include the contents of config.xhtml. The plan is to put all shared configuration into this page so that the applications can access it. But I'm having trouble doing this.
If i create the variables using <c:set> in the config.xhtml, then they seem to only be accessible from that config page. Previously I would have just changed the scope on <c:set> to request and ny problem would be solved. But as JSF works in a different way, I know that scope in this case is useless.
Does anyone have any suggestions for how I am going to be able to create all my config in this one page and then be able to access it throughout my application?
This app is written using Seam so using something from Seam could be an option.