Examples for Ajax in JSF 2@Herbstcampus 2011

On September 7, 2011 I will do the session Ajax in JSF 2.0 at the Herbstcampus 2011 in Nürnberg. For this session I prepared a set of examples to show the integration of ajax in JSF 2.0.

The example can be found on the JSFlive github: JSF 2 Ajax Herbstcampus 2011@Github.

Best workshop@CONFESS 2011

I am proud to announce that my workshop JSF 2 composite components in action was voted best workshop @ CONFESS 2011. Thanks to everyone!

Example for Go Fullstack@CONFESS 2011

Together with Martin Marinschek I did the session Go Fullstack – The Java EE way of building a web-application at the CONFESS 2011. For this session I ported the example MyGourmet from JSF@Work to a Java EE 6 stack.

The example can be found on the JSFlive github: MyGourmet CONFESS 2011@Github.

Example for Go Fullstack@JAX 2011

Today I will do the session Go Fullstack – JPA und JSF effizient kombinieren at the JAX 2011. For this session I developed a simple example to show the integration of JSF 2 and JPA 2 with dynamic search parameters, real paging and selection within the search result.

The example can be found on the JSFlive github: MyMail JAX 2011@Github.

Examples on Github

Examples for JSFlive blog posts are now available for download via the JSFLive Github profile.

I updated all previous posts with the related link.

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

Composite component collapsiblePanel revisited

In my last post I showed you the composite component collapsiblePanel. In my final remark I mentioned that this component has a major design flaw. The logic for collapsing and expanding the content must be supplied by the user and is not part of the component. In this post I show you how this problem can be solved.

Every now and then parts of a composite component’s intended behaviour can only be implemented with Java code. Just like our logic for collapsing and expanding the panel. What we need is an extension point to integrate this code into a composite component. As composite components are internally built with a set of classical components the most obvious idea is to use a component for this purpose.

Continue reading