Category Archives: Ajax

JSF 2.2: Reset input fields

In this post of the series on JSF 2.2 I will show a use case for the new resetValues attribute on f:ajax. With this attribute (and the the related code) JSF 2.2 provides a solution for a problem that has been around for quite some time. In some cases JSF cannot update the values of input components during ajax requests unless their value is explicitly reset.

Continue reading

Advertisements

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