Category Archives: Composite components

JSF 2.2: Empty composite component attributes

In my post about empty attributes in composite components I discussed problems with composite component attributes whose value is null. So, in my fifth post of the series on JSF 2.2 features I will show that the JSF 2.2 specification (see [1]) solves this issue (see [2]).

Continue reading

Advertisements

JSF 2.2: Composite components in taglibs

JSF 2.0 introduced composite components and a simple but limited way to include them into custom tag libraries. In my fourth post of the series on JSF 2.2 features I will show a new and more flexible way to add tags for composite components to custom taglibs.

Continue reading

JSF 2.2: Configurable resource directory

In my third post of the series on JSF 2.2 features I will present a small extension of the JSF resource handling mechanism. JSF 2.2 allows to configure the directory used for resource lookup.

Continue reading

Composite component pitfalls: Root component

In my second post in the JSF composite component pitfalls series I would like to discuss the root component of composite components. This time I will show you examples that are not working although they seem reasonable at first glance.

Continue reading

Composite component pitfalls: Empty attributes

With this post I am going to start a small series about JSF composite component pitfalls. While composite components really simplify my life as JSF developer in most cases they (still) have some minor quirks from time to time.

In my first post in this series I would like to discuss problems with composite component attributes whose value is null.

Continue reading

Ajaxify composite component collapsiblePanel

In my last posts about the composite component collapsiblePanel I showed you how to make it self-contained and reusable and how to put it into a custom component library. The only thing that remains to do is to add some ajax behavior. As we are using JSF 2.0 this is actually easy to accomplish.

Continue reading

Building a custom component library

In my last post I showed you how to combine the composite component collapsiblePanel with a classic component to make it really self-contained and reusable. As a next step, it would be nice to have this component in a jar file. In this post I will take reusability to the next level and show you how to build a custom component library with JSF 2.

Continue reading