Posts

Showing posts with the label primefaces

Creating custom component based on Primefaces'

Image
Clash Royale CLAN TAG #URR8PPP Creating custom component based on Primefaces' <p:diagram> I've been lurking this helping community for years now and yet never posted because I usually find what I need before asking. I have read through those articles : How to render a composite component using a custom renderer? What is the relationship between component family, component type and renderer type? and yet i'm stuck trying to create my own component based on Primefaces <p:diagram> . The component in itself almost fits my needs but I would need the web browser to be able to correctly interpret HTML tags such as <mark>, <strong> for the data attribute of the Element of the <p:diagram> . I have yet to found a solution without implementing my own component. Knowing a bit how JSF's <h:outputText> gives the option (through the escape tag) to interpret HTML tags correctly, I thought about adding this tag and it's behaviour to the <...