free web page hit counter
Monday Apr 30, 2007

Netbeans tip: Creating an AJAX enabled custom JSF component - Part 2

Finally I got some time to complete  part 2 of the Creating an AJAX enabled custom JSF component.

Part1, mainly covers how to write a simple Ajax enabled JSF component (ImageSlider). In this part, I have given the walk through on how to create the Image Slider Component. The Image Slider component would take one or more images and displays each image with a previous and a next link. Clicking on the next or previous link displays the next or previous image. Since the component has Ajax capability, the Image Slider component displays the next or previous image by fetching them with out submitting the form using Ajax transaction.

In Part2, the walk through explains how to add design time to the ImageSlider component and create a complib archive. Also the walk through explains how the complib is imported in to the Netbeans Visual Web Pack application to add the component to a visual web page by drag and drop.

Comments:

easy

Posted by 81.191.148.192 on May 08, 2007 at 12:58 AM PDT #

Hi.

I am trying to create a complib for a set of components that I have not coded myself. So I wanted to ask, do I have to use the same package for the designtime and runtime files?

Thanks...

Posted by Zzzzz on January 18, 2008 at 01:41 AM PST #

You could use different package name. In that case you need to register your package name to the Java Bean Introspector. Unfortunately, complib does not provide a way to do that. It is a good enhancement for complib manager though.

Posted by Winston Prakash on January 18, 2008 at 06:16 AM PST #

good

Posted by 122.164.228.202 on August 06, 2009 at 06:19 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed