message of ViewExpiredException
-------------------------------

                 Key: MYFACES-3147
                 URL: https://issues.apache.org/jira/browse/MYFACES-3147
             Project: MyFaces Core
          Issue Type: Bug
          Components: JSR-314
    Affects Versions: 2.0.5
            Reporter: Gerhard Petracek
            Assignee: Leonardo Uribe
            Priority: Minor


#1 the message isn't internationalized
the message is hardcoded:

throw new ViewExpiredException("No saved view state could be found for the view 
identifier: " + viewId, viewId)

#2 the message doesn't make a lot of sense
#2.1 #getMessage concatenate two strings without a blank
#2.2 the original message text gets concatenated with the view-id and 
#getMessage adds the view-id again to the beginning of the message.

this results in a message which isn't very useful - e.g.:

/page.xhtmlNo saved view state could be found for the view identifier: 
/page.xhtml

-> since ViewExpiredException also provides #getViewId we can remove the 
overridden #getMessage completely.
workaround:
just use the exception as a marker and use a custom message

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to