1

Suppose I have the following in my JSF page:

<ui:include src="/WEB-INF/templates/footer.xhtml"></ui:include>

If this is changing to be static content loading from a non-webapp path - is is possible to change my ui:include to an absolute path on the file system?

Assumptions:

  • Mojarra 2.0
  • Java 7.0
  • Tomcat 7.0
BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
hawkeye
  • 34,745
  • 30
  • 150
  • 304

1 Answers1

1

On a mac (for example) the path look like this:

<ui:include src="file:///Users/Julian/Documents/.../WEB-INF/templates/footer.xhtml" />

On Windows the path looks like this:

<ui:include src="file:///C:/Users/.../footer.xhtml" />
hawkeye
  • 34,745
  • 30
  • 150
  • 304