Java Reference
In-Depth Information
<h:commandButton value="Cancel"
actionListener="#{studentBean.onclickCancelListener}"
/>
</h:panelGroup>
</dir>
</h:panelGrid>
</dir>
</h:form>
</f:view>
</h:body>
</html>
The latest improvements of JSF 2.2 in action
Because of the great improvements provided in HTML5, a priority of JSF 2.2 was
to incorporate new features of the language; but this is not the only big change.
Besides the integration of HTML5, the JSF 2.2 Specification comes with Resource
Library Contracts, which announce multitemplate features, Faces Flow, and State-
less Views.
HTML5-friendly markup
As we saw earlier, JSF is a component-based architecture. This justifies the fact that
the creation of relatively complex user interface features is done by the development
of JavaServer Faces components. These components are processed on the server
side before delivering the right content to the browser. Although this approach saves
the developer from the complexity of HTML, scripts, and other resources involved in
each component, you have to know that the creation of a component is not always
easy and the generated code is not always the lightest or most optimal.
The advent of HTML5 has greatly simplified the development of web applications
with the introduction of new features, new elements, and new attributes. To avoid
JSF component developers from reinventing the wheel, JSF 2.2 has integrated
support of markup through two major concepts: pass-through attributes and pass-
through elements.
Search WWH ::




Custom Search