• Skip to primary navigation
  • Skip to content
  • Skip to primary sidebar
  • Skip to footer
  • Core Java
  • Design Patterns
  • JSP
  • Servlets
  • Building Tools
  • jQuery
  • Spring
  • Hibernate
  • Mongo DB
  • More
    • HTML
    • SCJP
    • AJAX
    • UML
    • Struts
    • J2EE
    • Testing
    • Angular JS

J2EE Reference

  • Home
  • About Us
    • Java Learning Centers
  • Contact Us

JSF Composite Components

July 17, 2017 By j2eereference Leave a Comment

Java Server Faces (JSF) uses the facelets and indeed offers the theory of composite components. Composite component is an individual kind of template, which operates as a component in user application. A composite component is comprised of markup tags and various active components. A JSF composite component is reusable and user-generated. It has a personalized, described functionality and it can also contain

(i) validators

(ii) converters

(iii) listeners connected to it like other components.

An XHTML page that has these markup tags and active components can be turned into a composite component.

Functions of the Composite Tags

Provided below is a functional overview of the available composite tags in JSF:

  1. composite:interface tag describes the subject of a composite component. The composite component can be utilized as an individual component whose attribute set is the combination of the attributes declared in the subject.
  2. composite:implementation tag describes the composite component implementation. When a composite:interface emerges, then there must be an equivalent composite:implementation.
  3. composite:attribute tag declares configuration values.attrs tag is used in composite:implementation in order to obtain an attribute described using composite:attribute in composite:interface.
  4. composite:insertChildren tag is used for inserting child elements inside the composite component tag.
  5. composite:valueHolder declares that the composite component reveals the functioning of the ValueHolder, which is appropriate to be used as an objective of connected components in the using page.
  6. composite:editableValueHolder declares that the composite component reveals the functioning of the EditableValueHolder, which is appropriate to be used as an objective of the connected components in the using page.
  7. composite:actionSource declares that the composite component reveals the functioning of the ActionSource which is appropriate to be used as an objective of the connected components in the using page.

In composite:valueHolder , composite:editableValueHolder  and composite:actionSource, the contract of the composite component is declared by the composite:interface , in which these composite components are nested.

Related Posts

  • JSF UI Components
  • What is JavaServer Faces (JSF)?

Filed Under: JSF

Reader Interactions

Leave a Reply Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

FOLLOW US ONLINE

  • View J2eereference-166104970118637’s profile on Facebook
  • View j2eereference’s profile on Twitter
  • View j2eereference’s profile on LinkedIn

Subscribe by email

Recent posts

  • Java Buzzwords
  • Anonymous Inner Class in Java
  • Network Programming – java.net Package
  • Java Regular Expressions
  • Method Local Inner Class in Java
  • URL Processing in Java
  • Iterator Design Pattern Implementation using Java
  • Strategy Design Pattern Implementation using Java
  • Decorator Design Pattern
  • Adapter Design Pattern Implementation using Java
  • JSF Composite Components
  • JSF UI Components
  • What is JavaServer Faces (JSF)?
  • GOF Design Patterns
  • History and Need for Design Patterns

Footer

Core Java
Design Patterns
JSP
Servlets
HTML
Building Tools
AJAX
SCJP
jQuery
Testing
Spring
UML
Struts
Java Centers
Java Training
Home
About Us
Contact Us
Copyright © j2eereference.com. All right reserved.