[
https://issues.jboss.org/browse/RF-11846?page=com.atlassian.jira.plugin.s...
]
Mercer Traieste updated RF-11846:
---------------------------------
Environment: Maven 3, Tomcat 6.0.x, Ubuntu 11.10 x64, Glassfish jsf 2.x
implementation, Hibernate validator 4.1.0.Final (was: Maven 3, Tomcat 6.0.x, Ubuntu 11.10
x64, Glassfish jsf 2.x implementation)
Description:
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.
was:
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}
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
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:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira