• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to develop our own custom component in jsf

 
kalpana kp
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

I need how to develop our own custom component in jsf.I am implementing auto completetext component i heard that it is easy to do in jsf.I need some breif idea about this .can anyone please help in this.
 
Chris Schalk
author
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Custom component development is covered in Chapter 10 and 11.

When considering building custom JSF components, one thing you should always do is look to see if it doesn't already exist. If so, then you can probably save yourself some time..

If you do go and build your components, you'll find that building custom components isn't completely brain dead simple, but once you build a simple example, you'll get the hang of it. This is because custom components can have several moving parts - such as a renderer class, UI component class JSP tag.. The reason for this is because JSF is markup agnostic and can even run without JSPs. This is why custom components can often be a collection of elements.

The book however starts slow and provides a simple Helloworld component that is as simple as a single UI component class and an associated JSP tag handler. The book then progresses to more advanced stuff with examples of rendering in non HTML and dealing with JavaScript. Chap 11 then moves on to how to build AJAX enabled JSF components.

-Chris
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65530
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"shiny",

You have previously been warned on one or more occasions regarding adjusting your display name to meet JavaRanch standards. This is not optional. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it prior to your next post.

Your display name must be a first and a last name separated by a space character, and must not be obviously fictitious. Initials for a last name are not acceptable.

Be aware that accounts with invalid display names are removed.

bear
JavaRanch Sheriff

P.S. Your post is not eligible for the book drawing.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!