myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Werner Punz (JIRA)" <>
Subject [jira] Created: (MYFACES-2939) f:event type=postValidate does not work
Date Wed, 06 Oct 2010 20:48:33 GMT
f:event type=postValidate does not work

                 Key: MYFACES-2939
             Project: MyFaces Core
          Issue Type: Bug
    Affects Versions: 2.0.2
         Environment: All
            Reporter: Werner Punz

>From the mailinglist following bug was reported by Nikolai Rychkov

(I have to add I could reproduce the bug here on my machine as well, even
with a field being set to required so that validation definitely is called)

Original Message:

I try this simple example. But event doesn't be invoked. It looks like
<f:event type="postValidate"> doesn't work

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"


<html   xmlns=""






    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>




    <h:form id="form">

        <f:event type="postValidate" listener="#{user.validate}"/>

        <h3>Please enter your name and password.</h3>




                <td><h:inputText id="name" value="#{}"/></td>




                <td><h:inputSecret id="password"



        <p><h:commandButton id="button" value="Login" action="welcome"/></p>




@ManagedBean(name = "user")


public class UserBean implements Serializable {

    private Logger log = LoggerFactory.getLogger(UserBean.class);

    private String name;

    private String password;

    private static final long serialVersionUID = -7858335225156624734L;

    public String getName() {    return name;    }

    public void setName(String newValue) {        name = newValue;    }

    public String getPassword() {    return password;    }

    public void setPassword(String newValue) {        password = newValue;

    public void validate(ComponentSystemEvent e) {"========================================");



This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message