myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nikolay Rychkov <nikolay.rych...@gmail.com>
Subject Re: Problem with <f:event> on GAE
Date Wed, 06 Oct 2010 19:15:13 GMT
Please do It. I am not experienced MyFaces user.

Anyway, I just want to note that with Mojarra I have much more bugs using
PrimeFaces on GAE.

Great work.

2010/10/6 Werner Punz <werner.punz@gmail.com>

> Yes this seems to be a bug, can you raise an issue in the myfaces issue
> tracker for this one?
> Otherwise I will do it this evening.
>
> Werner
>
>
> Am 04.10.10 01:05, schrieb Nikolay Rychkov:
>
>  Hello all,
>>
>>
>>
>> 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"
>>
>>         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>>
>> <html   xmlns="http://www.w3.org/1999/xhtml"
>>
>>         xmlns:f="http://java.sun.com/jsf/core"
>>
>>         xmlns:h="http://java.sun.com/jsf/html"
>>
>>         xmlns:ui="http://java.sun.com/jsf/facelets"
>>
>>         >
>>
>> <h:head>
>>
>>
>>
>>     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
>>
>>     <title></title>
>>
>>
>>
>> </h:head>
>>
>> <h:body>
>>
>>     <h:form id="form">
>>
>>         <f:event type="postValidate" listener="#{user.validate}"/>
>>
>>         <h3>Please enter your name and password.</h3>
>>
>>         <table>
>>
>>             <tr>
>>
>>                 <td>Name:</td>
>>
>>                 <td><h:inputText id="name" value="#{user.name}"/></td>
>>
>>             </tr>
>>
>>             <tr>
>>
>>                 <td>Password:</td>
>>
>>                 <td><h:inputSecret id="password"
>> value="#{user.password}"/></td>
>>
>>             </tr>
>>
>>         </table>
>>
>>         <p><h:commandButton id="button" value="Login"
>> action="welcome"/></p>
>>
>>     </h:form>
>>
>> </h:body>
>>
>> </html>
>>
>>
>>
>> @ManagedBean(name = "user")
>>
>> @SessionScoped
>>
>> 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) {
>>
>>         log.info("========================================");
>>
>>     }
>>
>> }
>>
>>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message