[
https://issues.jboss.org/browse/RF-11846?page=com.atlassian.jira.plugin.s...
]
Ján Jamrich reopened RF-11846:
------------------------------
Assignee: (was: Ján Jamrich)
But maybe I found it (correct me if I'm wrong):
If form with input bound to some bean (JSR-303 validated) with wrong value (in this case
empty input), client side validation doesn't raise message if just blur event fired on
this input.
When input preset by correct value (input is not empty), and then value is deleted by user
and then blur event fired, validation message appears in msg box.
But I'm not sure if there is workaround for this or it is expected behavior.
There is page in Metamer with JSR-303 validation with CSV together:
https://source.jboss.org/viewrep/RichFaces/modules/tests/metamer/trunk/ap...
An legacy example for CSV on JSR-303 validated bean:
https://source.jboss.org/viewrep/RichFaces/modules/tests/metamer/trunk/ap...
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