How to add two messages for one inputText in clientSide

UI Components for JSF
Post Reply
matrella
Posts: 4
Joined: 10 Aug 2016, 23:35

16 Aug 2016, 20:05

Hi guys, im newer in primefaces, i have the following code

Code: Select all

<p:outputLabel id="labelApelido" value="Apelido" for="apelido"></p:outputLabel>
						<p:inputText id="apelido" value="#{pessoaBean.pessoa.apelido}"
							validator="#{pessoaBean.validarApelido}" required="true"
							requiredMessage="Apelido obrigatório!">
							<p:ajax event="blur" update="msgApelido apelido labelApelido"
								delay="500"></p:ajax>
						</p:inputText>
						<p:message for="apelido" id="msgApelido" display="icon" />

I need to add two messages to this inputText "apelido", one to my validator sucess and other to error.

Thanks in advanced.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 32 guests