myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jakob Korherr (JIRA)" <...@myfaces.apache.org>
Subject [jira] Commented: (MYFACES-2665) Legacy ViewHandler doesn't work in back compatibility mode for JSP pages
Date Tue, 20 Apr 2010 14:54:51 GMT

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

Jakob Korherr commented on MYFACES-2665:
----------------------------------------

The problem here originates from the fact that the code that builds the whole component tree
was moved from ViewHandler.renderView() to ViewDeclarationLanguage.buildView() in JSF 2.0.
This is a problem for the legacy ViewHandler, because it returns null for getViewDeclarationLanguage()
and thus VDL.buildView() is never called.

To solve this problem we have to memorize if VDL.buildView() was already called for the current
UIViewRoot in VDL.renderView(), and if not, we have to call it from there.

> Legacy ViewHandler doesn't work in back compatibility mode for JSP pages
> ------------------------------------------------------------------------
>
>                 Key: MYFACES-2665
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2665
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-314
>    Affects Versions: 2.0.0-beta-3
>            Reporter: Nick Belaevski
>            Assignee: Jakob Korherr
>         Attachments: myfaces-2665.zip
>
>
> Attached demo project shows ViewHandler wrapper based on JSF 1.2 that prevents JSP pages
rendering in back-compatibility mode. View structure is just not being built, because calls
to VDL doesn't happen. Mojarra works (activate "jsfri" Maven profile to check).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message