myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dora Rajappan (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Comment Edited] (MYFACES-4156) Myface is not showing the FacesMessage after validation when ValidatorException is thown.
Date Mon, 25 Sep 2017 12:55:00 GMT

    [ https://issues.apache.org/jira/browse/MYFACES-4156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16178896#comment-16178896
] 

Dora Rajappan edited comment on MYFACES-4156 at 9/25/17 12:54 PM:
------------------------------------------------------------------

bq. <h:commandButton type="submit" id="submit"  action="#{userBean.success}" actionListener="#{userBean.login}"
value="Login" >
bq.        <f:ajax event="click" render="helloForm" execute="helloForm"/>   
bq.       </h:commandButton>
bq. Still partial response not contain facesmessage!
bq. <?xml version="1.0" encoding="UTF-8"?><partial-response id="j_id__v_0"><changes><update
id="j_id__v_0:javax.faces.ViewState:1"><![CDATA[7CqkdFCcuvYzQhVgeuEVHERUXOVAtpLXCHYdtV5fVmDBHHe44THDrMJCqA0Py8doTFfDMK6ATRYorUcQnA3Nr8NZP874qT6mQVboRRY377ua90OHKhE6oP8gQQfnQBifkYwx5QLhjt1TArYhW5SthkTPEr38mbxexCf9usO2BN0znzSnT10niem4kTC6Kwg5Tgp/duvjBO3R3FHW6rLir5E/an6aWREoluBvRepoSl5sg0KWHE2E7HkFbonPIZp+2whV3tUy9Ce29PI6hwGSsfudyhTSjbF+W0xK2nqQnF1/3KmKWlS/sVk6MQjsCXE1WHoflGjaC16gqzbPs3hhfjz3m4SX5JIrREsl+b7MKxFKE8EMnaLMwiBv4sOsxTSnt3cv1QO89rcQdZOWTkL55mWyxtfP/aSq3J1Qw+nU/3jH9Iro7ldhd76Ie56PF1VkOyz6QxH7CRjUz8JT99luzsOW3Z+PN5q1wCMRxVIzkrDrzN6S1ms8pSZSd+3UeJi3nAIYMSGoaI8NNsJlqN23hGo7DlpfVhEUFRInQcgNH4tfKJ7IKyAa0J7I8Fmbe9hZJ0IOZs0liQtZm3Jl0mqNVnPvsLGaeI2FeQVuic8hmn7g9LQ4/NHNalzVtPwLoGkq9iRvuS/XToitkiLWlRgnsq4b++1SHmjBOO9SRugsT5X9QwdNwEnEYP8aiam19eBG4/Nw4NxleWYNM37W1SRrV6gR1Q1dvAEmbbIr7tXSB+8dyn8ahYaZ4ypXOqU1qJfzJh9JAJGVcDUngIzd5aU2QteKp/R17vtT3gmDeEu3L+vVAiSkGIHlvhsj2249INEOGaBn8/N7XwH1aPTkuW8AWc0bQDNn3TaAMUsAx11MuQ1jo2f4kJsI/V/M2TWiMDZ6/5nZpI+AAqXjSwTZKYjCPYY6uHyJ9zbsP7IAsA==]]></update></changes></partial-response>


was (Author: dorarajappan):
<h:commandButton type="submit" id="submit"  action="#{userBean.success}" actionListener="#{userBean.login}"
value="Login" >
       <f:ajax event="click" render="helloForm" execute="helloForm"/>   
      </h:commandButton>
Still partial response not contain facesmessage!
<?xml version="1.0" encoding="UTF-8"?><partial-response id="j_id__v_0"><changes><update
id="j_id__v_0:javax.faces.ViewState:1"><![CDATA[7CqkdFCcuvYzQhVgeuEVHERUXOVAtpLXCHYdtV5fVmDBHHe44THDrMJCqA0Py8doTFfDMK6ATRYorUcQnA3Nr8NZP874qT6mQVboRRY377ua90OHKhE6oP8gQQfnQBifkYwx5QLhjt1TArYhW5SthkTPEr38mbxexCf9usO2BN0znzSnT10niem4kTC6Kwg5Tgp/duvjBO3R3FHW6rLir5E/an6aWREoluBvRepoSl5sg0KWHE2E7HkFbonPIZp+2whV3tUy9Ce29PI6hwGSsfudyhTSjbF+W0xK2nqQnF1/3KmKWlS/sVk6MQjsCXE1WHoflGjaC16gqzbPs3hhfjz3m4SX5JIrREsl+b7MKxFKE8EMnaLMwiBv4sOsxTSnt3cv1QO89rcQdZOWTkL55mWyxtfP/aSq3J1Qw+nU/3jH9Iro7ldhd76Ie56PF1VkOyz6QxH7CRjUz8JT99luzsOW3Z+PN5q1wCMRxVIzkrDrzN6S1ms8pSZSd+3UeJi3nAIYMSGoaI8NNsJlqN23hGo7DlpfVhEUFRInQcgNH4tfKJ7IKyAa0J7I8Fmbe9hZJ0IOZs0liQtZm3Jl0mqNVnPvsLGaeI2FeQVuic8hmn7g9LQ4/NHNalzVtPwLoGkq9iRvuS/XToitkiLWlRgnsq4b++1SHmjBOO9SRugsT5X9QwdNwEnEYP8aiam19eBG4/Nw4NxleWYNM37W1SRrV6gR1Q1dvAEmbbIr7tXSB+8dyn8ahYaZ4ypXOqU1qJfzJh9JAJGVcDUngIzd5aU2QteKp/R17vtT3gmDeEu3L+vVAiSkGIHlvhsj2249INEOGaBn8/N7XwH1aPTkuW8AWc0bQDNn3TaAMUsAx11MuQ1jo2f4kJsI/V/M2TWiMDZ6/5nZpI+AAqXjSwTZKYjCPYY6uHyJ9zbsP7IAsA==]]></update></changes></partial-response>

> Myface is not showing the FacesMessage after validation when ValidatorException is thown.
> -----------------------------------------------------------------------------------------
>
>                 Key: MYFACES-4156
>                 URL: https://issues.apache.org/jira/browse/MYFACES-4156
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 2.3.0-beta
>            Reporter: Dora Rajappan
>         Attachments: login.xhtml, MyValidator.java, UserBean.java
>
>
> Myfaces 2.3 is not showing the FacesMessage after validation when ValidatorException
is thrown. Same works with mojarra 2.2.
> if (param.length() > 32) {
> 		          FacesMessage msg = new FacesMessage("Username should not exceed 32");
> 		          
> 		          throw new ValidatorException(msg);
> 		      }



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message