You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Aleksei Valikov (JIRA)" <de...@myfaces.apache.org> on 2006/03/10 14:56:39 UTC

[jira] Created: (TOMAHAWK-189) Remove explicit cast in AjaxDecodePhaseListener

Remove explicit cast in AjaxDecodePhaseListener
-----------------------------------------------

         Key: TOMAHAWK-189
         URL: http://issues.apache.org/jira/browse/TOMAHAWK-189
     Project: MyFaces Tomahawk
        Type: Bug
    Versions: 1.1.2-SNAPSHOT    
    Reporter: Aleksei Valikov


Currently, AjaxDecodePhaseListener performs an explicit cast in beforePhase():

            if (!context.getApplication().getStateManager().isSavingStateInClient(context))
            {
                ((JspStateManagerImpl) context.getApplication().getStateManager()).saveSerializedView(context);
            }

I am using a custom state manager, whic is not JspStateManagerImpl, and I get class cast exception.
Please remove the explicit cast.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Closed: (TOMAHAWK-189) Remove explicit cast in AjaxDecodePhaseListener

Posted by "Volker Weber (JIRA)" <de...@myfaces.apache.org>.
     [ http://issues.apache.org/jira/browse/TOMAHAWK-189?page=all ]
     
Volker Weber closed TOMAHAWK-189:
---------------------------------


> Remove explicit cast in AjaxDecodePhaseListener
> -----------------------------------------------
>
>          Key: TOMAHAWK-189
>          URL: http://issues.apache.org/jira/browse/TOMAHAWK-189
>      Project: MyFaces Tomahawk
>         Type: Bug
>     Versions: 1.1.2-SNAPSHOT
>     Reporter: Aleksei Valikov
>     Assignee: Volker Weber
>  Attachments: AjaxDecodePhaseListener.diff
>
> Currently, AjaxDecodePhaseListener performs an explicit cast in beforePhase():
>             if (!context.getApplication().getStateManager().isSavingStateInClient(context))
>             {
>                 ((JspStateManagerImpl) context.getApplication().getStateManager()).saveSerializedView(context);
>             }
> I am using a custom state manager, whic is not JspStateManagerImpl, and I get class cast exception.
> Please remove the explicit cast.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (TOMAHAWK-189) Remove explicit cast in AjaxDecodePhaseListener

Posted by "Volker Weber (JIRA)" <de...@myfaces.apache.org>.
     [ http://issues.apache.org/jira/browse/TOMAHAWK-189?page=all ]
     
Volker Weber resolved TOMAHAWK-189:
-----------------------------------

    Resolution: Fixed

> Remove explicit cast in AjaxDecodePhaseListener
> -----------------------------------------------
>
>          Key: TOMAHAWK-189
>          URL: http://issues.apache.org/jira/browse/TOMAHAWK-189
>      Project: MyFaces Tomahawk
>         Type: Bug
>     Versions: 1.1.2-SNAPSHOT
>     Reporter: Aleksei Valikov
>     Assignee: Volker Weber
>  Attachments: AjaxDecodePhaseListener.diff
>
> Currently, AjaxDecodePhaseListener performs an explicit cast in beforePhase():
>             if (!context.getApplication().getStateManager().isSavingStateInClient(context))
>             {
>                 ((JspStateManagerImpl) context.getApplication().getStateManager()).saveSerializedView(context);
>             }
> I am using a custom state manager, whic is not JspStateManagerImpl, and I get class cast exception.
> Please remove the explicit cast.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira