I have come accross a problem that i can't work out its solution. I use JSF 2.0.
I am trying to change the architecture behing and I In order to be able just to write the attributes of several components starting with data- (attributes commonly used in jquery) in the HTML page. I have overriden renderers such as inputTextRenderer, checkBoxRenderers, etc. All of them seems to be working fine except one.
I use <h:link> and for instance, I want to write in HTML <h:link outcome"where" data-theme="c">. as I do with other components. To do that, I extend the OutcomeTargetLinkRenderer which also extends OutcomeTargetRenderer which extends HtmlBasicRenderer same as I did with others components' renderers (InputTextRenderer extends TextRenderer which extends HtmlBasicInputRenderer and this HtmlBasicRenderer for instance).
The problem is that when I create MyLinkRenderer.java class which extends OutcomeTargetLinkRenderer does not access into my custom renderer class and therefore does not run my overriden methods. My faces-config.xml file looks fine and there are no typing errors in the file: