myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Werner Punz (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Commented] (MYFACES-4156) Myface is not showing the FacesMessage after validation when ValidatorException is thown.
Date Tue, 10 Oct 2017 09:55:00 GMT

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

Werner Punz commented on MYFACES-4156:
--------------------------------------

I found the issue, it was not on the server but on the client.
the names of the viewstates were prefixed with the viewroot id in certain cases.

No need to search on the server. Doras Example and the logout now goes through.



> 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: MessageBean.java, MyValidator.java, login.xhtml, mf23test.zip
>
>
> 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