4
votes

Ok. I've looked everywhere for a simple example on how to create a custom jsf 2.0 custom component.

Basically, I am trying to create a tag that I can use, for example, inside panelGrid, series. etc.. that will display my own javasript. everything I have found is a tutorial on composite components, which are useless to me. I don't need to jumble a bunch of existing tags in a composite, i need to create my own.

does anyone know of any example code showing how to do this in 2.0. (no jsf 1.2)

Thanks

1
Did you check the Java EE 6 tutorial? download.oracle.com/javaee/6/tutorial/doc/bnavg.html - BalusC

1 Answers

8
votes

Look at Creating Custom UI Components in The Java EE 6 Tutorial (as BalusC pointed). This applies to JSF 2 and describes creation of custom UI components (not composite components).