One of the major issues that could be cause a headache for the end user when the web application support Ajax, is the indicator of being things are going or happening. Most of web applications doesn’t consider such that indicator, so the end user may submit the form multiple times or canceling it or do …
JSF 2 Form with AJAX Example
Asynchronous JavaScript XML (Ajax) is considered for a long time as a luxury, either users or developers, but today Ajax is essential for building compelling and competitive applications. JSF2.0 has built-in Ajax support, with a standard JavaScript library. JSF Ajax requests partially process components on the server, and partially render components on the client when …
JSF 2 CommandLink and CommandButton with AJAX Example
Asynchronous JavaScript XML (Ajax) is considered for a long time as a luxury, either users or developers, but today Ajax is essential for building compelling and competitive applications. JSF 2.0 has built-in Ajax support, with a standard JavaScript library. JSF Ajax requests partially process components on the server, and partially render components on the client …
JSF 2 InputText with AJAX Example
Asynchronous JavaScript XML (Ajax) is considered for a long time as a luxury, either users or developers, but today Ajax is essential for building compelling and competitive applications. JSF 2.0 has built-in Ajax support, with a standard JavaScript library. JSF Ajax requests partially process components on the server, and partially render components on the client …
JSF 2 UI Fragment Example
Before JSF 2.0, you’ve used an <f:verbatim/> Tag for rendering a set of JSF components conditionally. The <f:verbatim/> tag creates an output component as a child of the component associated with the enclosing tag. An output component renders the output contained in the body of this tag, such as HTML markup. The <f:verbatim/> is more useful with JavaServer Pages …
JSF 2 Custom Tags Example
You’ve already seen how to lay out user interface elements with templates. In addition, facelets allows you to define a custom tags. A custom tag looks like a regular JSF tag, but it uses the facelets composition mechanism to insert content into your page. Implementing a custom Facelets tags with jsf2.0 is a two step: Implement …
JSF 2 UI Param Example
When you invoke a template, you can supply arguments in two way: with ui:define and with the ui:param tags. As you have already seen; ui:define is used to provide markup that’s inserted into the template. In contrast, ui:param sets an Expression Language (EL) variable for use in a template. In the corresponding template, you can access the parameter with an EL …
JSF 2 UI Decorate Example
Unlike the ui:composition, the ui:decorate is more content-centric approach, in that you write your pages as usual, but you surround the contents with ui:decorate tag that has a template attribute. The decorator in its turn uses the provided template for decorating the contents that written as you’ve determined in the template. Using of ui:decorate is vary differ from the …