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 …
Eclipse Support for Java 8
Eclipse officially announced that it supports the latest Java version Java 8 from the version Luna 4.4. However, this is not the stable version and it is in the developer downloads. If you are using the latest stable eclipse version 4.3.2, it is very simple to install the patch using the instructions provided in this …
JavaScript Validation
JavaScript can be used to validate data in the HTML documents before sending the content to the server. Validation occur at server side when client had entered data successfully and pressed submit button. We can use validation for some fields such as: to check whether required field is empty ? to check whether user has …
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 …
JSF 2 Include Example
Facelets was originally developed as an alternative to the JSP-based view handler in JSF1.x. In JSF 2.0 facelets replaces JSP as JSF’s default view technology. In addition to being a better view handler, Facelets supports a number of tags and one of them is a tag for including content from other XHTML pages. Also Read: …
JSF 2 Template – Composition, Insert and Define Example
Most web applications follow a similar pattern, in which all pages have a common layout and styling. It is typical for pages to have the same header, footer and sidebars. Facelets lets you encapsulate that commonality in a template, so that you can update the look of your site by making changes to the template, not …
JavaScript Syntax
JavaScript was originally named LiveScript, was developed by Netscape. JavaScript is light weight client side scripting programming language used to build interactive web sites. It can be executed by all modern browsers like Internet Explorer, Google Chrome, Mozilla Firefox, Safari etc.It is case-sensitive language. JavaScript can be divided into three parts: the core, client side …