was trying to find if someone has already answered my question previously, but nothing found.
The question is the next:
I want to edit the error messages that primefaces already have as default. For example, I have this:
Code: Select all
# <h:form>
#
# <p:panel id="panel" header="Register">
#
# <p:focus />
#
# <p:messages />
#
# <h:panelGrid columns="3">
# <h:outputLabel for="firstname" value="Firstname: *" />
# <p:inputText id="firstname" required="true" label="Firstname"
# value="#{personBean.firstname}" >
# <f:validateLength minimum="2" />
# </p:inputText>
# <p:message for="firstname" />
# </h:panelGrid>
#
# <p:commandButton value="Submit" update="panel"
# actionListener="#{personBean.savePerson}" />
# </p:panel>
#
# </h:form>
This example show the error message: Firstname: Validation Error: Value is less than allowable minimum of '2'
That I need is change the message "Value is less than allowable minimum of '2'" to another. Also if this error message can be internationalized
Somebody knows how can I do it both?
Thanks in advance and sorry if this is a newbie question
Regards!
ps: If this is a the wrong forum, please accept my apologies and move them to the proper