Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Overriding OutcomeTargetLinkRenderer  RSS feed

jon begood
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

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 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:


Can anyone see where is the issue coming from? Has the OutcomeTargetLinkRenderer a special treatment?

Thanks in advance,

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!