I have been trying to find the best component to display messages next to the text boxes if it failed validation in the bean.
It seems like the message component will do that but I cannot figure out how to implement it.
createSobe.xhtml
Code: Select all
<p:messages id="msgs"/>
<h:panelGrid columns="2">
<h:outputText value="Manufacturer" />
<h:inputText value="#{create.manufacturer}"/>
my xhtml page no longer loads. It says: Cannot find component "manufacturer" in view
So I think I am doing this completely wrong.
If there is documentation on how to implement this please point me to it. The code on the message component showcase page does not show any bean code. Or maybe I am totally confused and the bean cannot send error messages to this component. If that's the case what do I use?
Thanks!