Questions tagged [resource-contracts]

Resource Library Contracts is a JSF 2.2 specific feature which allows an easier way to introduce multi-templating in JSF web applications.

4 questions
7
votes
1 answer

How behaves f:view with many defined resource library contracts?

We're trying to use the feature from JSF 2.2, with many simultaneous contracts, as "contract1,contract2". In our contract1, we have a file style1.css, and in our contract2, a style2.css. We include both in our views…
Xavier Portebois
  • 3,354
  • 6
  • 33
  • 53
2
votes
0 answers

JSF 2.2 can't load contract template from jar

We have problem with loading template.xhtml from .jar file in web app. We use GlassFish Server 4.1, Netbeans 8.0.1. We are make Maven Enterprise Application project with moduls. Some of modula are WebApps (WAR), and we would like u share contracts…
Igor
  • 381
  • 3
  • 17
1
vote
1 answer

PicketLink protection stops JSF 2.2 resource contract from being loaded

I have a JSF 2.2 webapp with a contract and several pages, located directly in the WebContent folder. The contract consists of an image, a template file template.xhtml and a css file global.css. So far everything is working as expected. Now I want…
devrys
  • 1,571
  • 3
  • 27
  • 43
0
votes
0 answers

How to load JSF 2.2 contracts resources

I have been trying to load resources (css, js and image files) using JSF 2.2's contracts in my maven project, but I get nothing but "unable to load" messages. Here is the file…
Ivan G
  • 3
  • 1
  • 6