Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes JSF and the fly likes Custom tag does not render. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Custom tag does not render." Watch "Custom tag does not render." New topic
Author

Custom tag does not render.

Jakim Rachev
Greenhorn

Joined: Sep 04, 2010
Posts: 14
Hello guys,

I have a big problem. I'm trying ti customize selectOneRadio as such I can group radiobuttons in a singel row of a table. Each cell must contain a radio button.
I found this tutorial http://www.javaworld.com/javaworld/jw-02-2007/jw-02-jsf.html?page=2#resources and have modified it a little because some of the methods are deprecated. I'm using JSF 1.2. How ever when I run my solution, I notice in the source code that the custom tag is not rendered and the radio buttons were not displayed.
My suspicious are, that I'm doing something wrong when declaring and setting my custom tag:
Here the steps that I have followed:

Add a component definition and renderer in faces-config.xml



Write the radio_taglib.tld file


Add the tld file reference in web.xml


Then in JSF response source code I'm geting this:



And the outcome page looks like this:

 
Don't get me started about those stupid light bulbs.
 
subject: Custom tag does not render.