You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@shale.apache.org by "Steven Oglesby (JIRA)" <ji...@apache.org> on 2006/10/02 11:04:15 UTC

[jira] Created: (SHALE-302) TilesViewHandler does not work for JSF 1.2

TilesViewHandler does not work for JSF 1.2
------------------------------------------

                 Key: SHALE-302
                 URL: http://issues.apache.org/struts/browse/SHALE-302
             Project: Shale
          Issue Type: Bug
          Components: Tiles
    Affects Versions: 1.0.3
            Reporter: Steven Oglesby


The TilesViewHandler does not handle the JSF 1.2 spec. It does not fulfil the requirements of wrapping and buffering the response. This has been introduced in the JSF 1.2 spec in order to solve the JSF / JSP content interweaving problems.

I have managed to implement a work-around solution. However, it is probably not compatible with JSF 1.1!

My (rather inelegant) solution is to have copied the renderView method implementation (and all the subsequent methods it calls) from the ViewHandlerImpl class of the Sun RI of JSF 1.2. I have then made the necessary changes so that the executePageToBuildView method dispatches to the tile rather than the original viewId that was asked for.


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

        

[jira] Commented: (SHALE-302) TilesViewHandler does not work for JSF 1.2

Posted by "Gregg Leichtman (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/SHALE-302?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_42350 ] 

Gregg Leichtman commented on SHALE-302:
---------------------------------------

As per developer request, I have attached my modified version of Steven Oglesby JSF 1.1 TilesViewHandler. This modifed version works with JSF 1.2 and, at a minimum, Tiles 2.0.4. This code is Sun RI specific. It will not work with MyFaces in its current form, but it does work with the Shale 1.1.0 snapshot from 20070923, Trinidad 1.2.1 and Tomahawk 1.1.6.

                             -=> Gregg <=-

> TilesViewHandler does not work for JSF 1.2
> ------------------------------------------
>
>                 Key: SHALE-302
>                 URL: https://issues.apache.org/struts/browse/SHALE-302
>             Project: Shale
>          Issue Type: Bug
>          Components: Tiles
>    Affects Versions: 1.0.3
>            Reporter: Steven Oglesby
>             Fix For: TBD
>
>
> The TilesViewHandler does not handle the JSF 1.2 spec. It does not fulfil the requirements of wrapping and buffering the response. This has been introduced in the JSF 1.2 spec in order to solve the JSF / JSP content interweaving problems.
> I have managed to implement a work-around solution. However, it is probably not compatible with JSF 1.1!
> My (rather inelegant) solution is to have copied the renderView method implementation (and all the subsequent methods it calls) from the ViewHandlerImpl class of the Sun RI of JSF 1.2. I have then made the necessary changes so that the executePageToBuildView method dispatches to the tile rather than the original viewId that was asked for.

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


[jira] Updated: (SHALE-302) TilesViewHandler does not work for JSF 1.2

Posted by "Gregg Leichtman (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/SHALE-302?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gregg Leichtman updated SHALE-302:
----------------------------------

    Attachment: TilesViewHandler.java

See above comment from me. I have allowed inclusion of this file in ASF works, if it doesn't violate any Sun licensing clauses. Since it is likely to be changed completely, I don't believe this will represent a problem.

                                -=> Gregg <=-

> TilesViewHandler does not work for JSF 1.2
> ------------------------------------------
>
>                 Key: SHALE-302
>                 URL: https://issues.apache.org/struts/browse/SHALE-302
>             Project: Shale
>          Issue Type: Bug
>          Components: Tiles
>    Affects Versions: 1.0.3
>            Reporter: Steven Oglesby
>             Fix For: TBD
>
>         Attachments: TilesViewHandler.java
>
>
> The TilesViewHandler does not handle the JSF 1.2 spec. It does not fulfil the requirements of wrapping and buffering the response. This has been introduced in the JSF 1.2 spec in order to solve the JSF / JSP content interweaving problems.
> I have managed to implement a work-around solution. However, it is probably not compatible with JSF 1.1!
> My (rather inelegant) solution is to have copied the renderView method implementation (and all the subsequent methods it calls) from the ViewHandlerImpl class of the Sun RI of JSF 1.2. I have then made the necessary changes so that the executePageToBuildView method dispatches to the tile rather than the original viewId that was asked for.

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


[jira] Commented: (SHALE-302) TilesViewHandler does not work for JSF 1.2

Posted by "Gregg Leichtman (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/SHALE-302?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41620 ] 

Gregg Leichtman commented on SHALE-302:
---------------------------------------

This issue is also referenced in more detail at: http://forum.java.sun.com/thread.jspa?threadID=770686&messageID=4408064

> TilesViewHandler does not work for JSF 1.2
> ------------------------------------------
>
>                 Key: SHALE-302
>                 URL: https://issues.apache.org/struts/browse/SHALE-302
>             Project: Shale
>          Issue Type: Bug
>          Components: Tiles
>    Affects Versions: 1.0.3
>            Reporter: Steven Oglesby
>             Fix For: TBD
>
>
> The TilesViewHandler does not handle the JSF 1.2 spec. It does not fulfil the requirements of wrapping and buffering the response. This has been introduced in the JSF 1.2 spec in order to solve the JSF / JSP content interweaving problems.
> I have managed to implement a work-around solution. However, it is probably not compatible with JSF 1.1!
> My (rather inelegant) solution is to have copied the renderView method implementation (and all the subsequent methods it calls) from the ViewHandlerImpl class of the Sun RI of JSF 1.2. I have then made the necessary changes so that the executePageToBuildView method dispatches to the tile rather than the original viewId that was asked for.

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