Java Reference
In-Depth Information
<!-- Pass through element -->
<input type="submit" value="myButton"
pte:actionListener="#{html5Bean.submitListener}"/>
</h:form>
Resource Library Contracts
The Resource Library Contracts provide a JSF mechanism for applying templates to
different parts of your web application. This feature announces a major change: the
ability to download a look and feel (theme) and apply it to your account or website by
using a button or management console, as in Joomla!.
For now, the Resource Library Contracts enable you to group resources (template
files, JavaScript files, style sheets, and images) of your various templates in the
contracts folder of your web application. To improve the maintainability of your ap-
plication, resources for each template can be grouped into a subfolder called con-
tract . The following code demonstrates a web application with three templates
stored in three different contracts : template1 , template2 , and template3 :
src/main/webapp
WEB-INF/
contracts/
template1/
header.xhtml
footer.xhtml
style.css
logo.png
scripts.js
template2/
header.xhtml
footer.xhtml
style.css
logo.png
scripts.js
Template3/
header.xhtml
Search WWH ::




Custom Search