2

I want to pack my Templates in a jar and easy reuse them between projects.

So far i have been able to pack, faclets pages and .page.xml files in the jar and reuse them. but when it comes to pages that are included with template tag etc i can't figure out how to load them from a jar.

Anyone got any idea?

I use Seam 2.2.1.Final , Jsf 1.2 and Jboss 6

Shervin Asgari
  • 23,901
  • 30
  • 103
  • 143
Trind
  • 1,583
  • 4
  • 18
  • 38

1 Answers1

0

I think the answer to this question will help you.

How to create a modular JSF 2.0 application?

Community
  • 1
  • 1
maple_shaft
  • 10,435
  • 6
  • 46
  • 74
  • As far as I understand the OP's question, the OP was able to use packaged Facelets pages in the JAR file. So he is already using the resource resolver. I only do not really see the problem he is having with "pages that are included with template tag etc". – BalusC Jun 30 '11 at 12:00
  • I misunderstood the problem, thank you for clarifying. – maple_shaft Jun 30 '11 at 12:09
  • if i use the tag like this, template="/layout/template.xhtml" and have my resourceresolver to look under /layout/ i get the following error template="/layout/template.xhtml" if i have my resourceresolver to look at /framework/ and i have it like this template="/framework/layout/template.xhtml"> it works without any problem. – Trind Jun 30 '11 at 13:01
  • The error should be WARNING [facelets.factory] /layout/template.xhtml not found at jndi:/localhost/FrameWorkTest/layout/template.xhtml – Trind Jun 30 '11 at 13:02
  • ah sorry it should be when the template="layout/template.xhtml" like this it dosn't work. – Trind Jun 30 '11 at 13:09
  • Look in [this answer](http://stackoverflow.com/questions/5587808/how-to-use-facelets-composition-with-files-from-another-context) – Braully Rocha Aug 03 '12 at 03:12