0

I have a website with two diferents styles (some different xhtml files). I would like have three folders:

  • common
  • style1
  • style2

When a user is logged, he select one style, then, JSF load the files from this style, but if the file don't exist in style's folder, load the default file from common folder

  • common
    • file1.xhtml
    • file2.xhtml
    • file3.xhtml
  • style1
    • file2.xhtml
    • file3.xhtml
  • style2
    • file1.xhtml

If the user select style1, he loads file2.xhtml and file3.xhtml from style1, and file1.xhtml from common.

Any idea?

I use JSF with Primefaces 6.0

Jasper de Vries
  • 19,370
  • 6
  • 64
  • 102
MiguelAngel_LV
  • 1,200
  • 5
  • 16

0 Answers0