How I show validation message in editor?

UI Components for JSF
Post Reply
Parche_
Posts: 32
Joined: 19 Mar 2012, 22:58
Location: Spain - Andalucia - Seville

27 May 2012, 18:42

Hi, I can not mostrar validate message because p:ajax dont work in p:editor. I am search info about this problemn but I dont find possible solutions.

This is the code in managedBean

Code: Select all

	@Length(max=1000,min=15,message="Este campo no es correcto: tamaño [1000]")
	@Pattern(regexp="^[a-zA-Z]+[a-zA-Z ]+",message="Este campo debe contener solo carácteres alfabéticos")
	private String texto;
This view code

Code: Select all

<p:editor controls="#{msg['asoc.crearActividad.controles.editor']}" id="texto" width="800" height="300" value="#{actView.texto}" required="true" requiredMessage="#{msg['asoc.crearActividad.texto.required']}" styleClass="#{component.valid ? '' : 'invalid'}">
    		<f:validateBean for="texto" />
    		<p:ajax event="blur" render="@this messageTextoError" />  <-Error
</p:editor>
Kind regars.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 31 guests