I am trying to return some useful feedback to a JSF page from my custom component in the event of an error. I initially thought to use the h:message tag, but am having some problems. The sort of code I am using is:
But nothing is being displayed on my JSF page. I have a UI, Tag and Renderer class, but no validation or conversion classes. In case it's relevant, the UI class extends UIOutput.
So question 1 - is this the right way to handle errors in custom components. If yes, question 2 is - what am I doing wrong??
I've done a lot of searching around h:message and FacesMessage, but nearly everything I find is implemented in a custom validator, not a custom component.