Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jsf 2.0 Custom Component/Tag NOT COMPOSITE

Tags:

java

jsf-2

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

like image 506
user858010 Avatar asked Feb 24 '23 12:02

user858010


1 Answers

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).

like image 73
John Avatar answered Feb 26 '23 02:02

John