This discussion is archived
1 Reply Latest reply: Oct 4, 2012 10:13 AM by lfd RSS

Cross web app JSF Templates

lfd Newbie
Currently Being Moderated
Is there a way to reference a Facelets template from another web app? In other words, I want to use the same template for web app "A" in web app "B" - I could just copy the templates to web app "B", but is there a better approach?

The templates in web app "A" are located in a templates directory under WEB-INF.
  • 1. Re: Cross web app JSF Templates
    lfd Newbie
    Currently Being Moderated
    <ui:composition template="/WEB-INF/templates/index_template.xhtml"></ui:composition>
    Is it appropriate to change the location of the templates to a location outside the web container?

    < anwered my own question... doesn't look like i can do that.>

    Edited by: lfd on Oct 4, 2012 10:12 AM

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points