]
Ján Jamrich commented on RF-11846:
----------------------------------
I was not able to simulate this on latest Metamer.
I made another page with inputs (there already was example for rich:validator enclosing
many inputs with binding to bean validated by bean validator (JSR-303)) containing simple
rich:validator per input.
RichFaces 4.1.1-SNAPSHOT
Metamer 4.1.1-SNAPSHOT r.${buildNumber}
Mojarra 2.1.3-SNAPSHOT
JBoss AS 7.0.2.Final
Java(TM) SE Runtime Environment 1.6.0_26-b03 @ Linux
Chrome 15.0.874.106 @ Linux i686
rich:validator ignores @NotEmpty
--------------------------------
Key: RF-11846
URL:
https://issues.jboss.org/browse/RF-11846
Project: RichFaces
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: component-validators
Affects Versions: 4.1.0.Final
Environment: Maven 3, Tomcat 6.0.x, Ubuntu 11.10 x64, Glassfish jsf 2.x
implementation, Hibernate validator 4.1.0.Final
Reporter: Mercer Traieste
Assignee: Ján Jamrich
I want to have [client-side
validation|http://richfaces-showcase.appspot.com/richfaces/component-samp...]
using rich:validator in Richfaces 4.1, but @NotEmpty is ignored.
{code:xml}
<h:outputText value="#{text['firstName']}"/>
<h:inputText id="firstNameInput"
value="#{richBean.firstName}">
<rich:validator/>
</h:inputText>
<rich:message for="firstNameInput"/>
{code}
{code:java}
import org.hibernate.validator.constraints.NotEmpty;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import java.io.Serializable;
@ManagedBean
@SessionScoped
public class RichBean implements Serializable {
private static final long serialVersionUID = -2403138958014741653L;
@NotEmpty
private String firstName;
public String getFirstName() {
return firstName;
}
public void setFirstName(String firstName) {
this.firstName = firstName;
}
}
{code}
@Email, another specific Hibernate validator 4.1 annotation works fine.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: