You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Chris Hornsey (JIRA)" <de...@myfaces.apache.org> on 2006/05/12 21:50:08 UTC

[jira] Created: (TOMAHAWK-434) Tree2 Client Rendered when using MyFaces tiles support will not inject javascript tags correctly.

Tree2 Client Rendered when using MyFaces tiles support will not inject javascript tags correctly.
-------------------------------------------------------------------------------------------------

         Key: TOMAHAWK-434
         URL: http://issues.apache.org/jira/browse/TOMAHAWK-434
     Project: MyFaces Tomahawk
        Type: Bug

  Components: Tree2  
    Versions: 1.1.2    
 Environment: Rendered on client and on a page using the MyFaces Tiles integration.
    Reporter: Chris Hornsey


When I put the tree control on a pge which uses the tiles support from MyFaces, then rendere page has the injected javascript references broken up.  The page can not parse the rendered html to get a proper reference to the javascript files, thus the javascript functions needed when clicking the expand nodes will not execute.

The javascript tags are rendered slightly above the begining of the controls form tag.
You can see that the comment tag was interputed, it may be as simple as flushing the buffer in the appropriate spots:

clear_propertyListResult();
//--></script></form></td></tr>
</tbody></table>
	<!-- MYFACES JAVASCR
<script type="text/javascript" src="/CARE/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/11474621/tree2.HtmlTreeRenderer/javascript/tree.js"><!--

//--></script>

-- 
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] Commented: (TOMAHAWK-434) Tree2 Client Rendered when using MyFaces tiles support will not inject javascript tags correctly.

Posted by "Kasturi Mudulodu (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/TOMAHAWK-434?page=comments#action_12419603 ] 

Kasturi Mudulodu commented on TOMAHAWK-434:
-------------------------------------------

If anyone changed Tree2 renderer to overcome this problem, please let me know by adding your file.

> Tree2 Client Rendered when using MyFaces tiles support will not inject javascript tags correctly.
> -------------------------------------------------------------------------------------------------
>
>          Key: TOMAHAWK-434
>          URL: http://issues.apache.org/jira/browse/TOMAHAWK-434
>      Project: MyFaces Tomahawk
>         Type: Bug

>   Components: Tree2
>     Versions: 1.1.2
>  Environment: Rendered on client and on a page using the MyFaces Tiles integration.
>     Reporter: Chris Hornsey

>
> When I put the tree control on a pge which uses the tiles support from MyFaces, then rendere page has the injected javascript references broken up.  The page can not parse the rendered html to get a proper reference to the javascript files, thus the javascript functions needed when clicking the expand nodes will not execute.
> The javascript tags are rendered slightly above the begining of the controls form tag.
> You can see that the comment tag was interputed, it may be as simple as flushing the buffer in the appropriate spots:
> clear_propertyListResult();
> //--></script></form></td></tr>
> </tbody></table>
> 	<!-- MYFACES JAVASCR
> <script type="text/javascript" src="/CARE/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/11474621/tree2.HtmlTreeRenderer/javascript/tree.js"><!--
> //--></script>

-- 
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] Commented: (TOMAHAWK-434) Tree2 Client Rendered when using MyFaces tiles support will not inject javascript tags correctly.

Posted by "Chris Hornsey (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/TOMAHAWK-434?page=comments#action_12422759 ] 
            
Chris Hornsey commented on TOMAHAWK-434:
----------------------------------------

This is actually not related to the tiles as I had originally expected.
The problem comes from pages which use more than one <head> tag.  This is common for applciations which must be used by older IE browsers ref KB article :
http://support.microsoft.com/kb/222064/en-us
Microsoft suggests puting an extra head tag at the bottom of pages to force it to understand the cache headers correctly.

This confuses the extension filter.  When a page has more than one head tag (never should I know, but forced to support old browsers). the filter has an issues determining where to place the references to the requested resources.

> Tree2 Client Rendered when using MyFaces tiles support will not inject javascript tags correctly.
> -------------------------------------------------------------------------------------------------
>
>                 Key: TOMAHAWK-434
>                 URL: http://issues.apache.org/jira/browse/TOMAHAWK-434
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>          Components: Tree2
>    Affects Versions: 1.1.2
>         Environment: Rendered on client and on a page using the MyFaces Tiles integration.
>            Reporter: Chris Hornsey
>
> When I put the tree control on a pge which uses the tiles support from MyFaces, then rendere page has the injected javascript references broken up.  The page can not parse the rendered html to get a proper reference to the javascript files, thus the javascript functions needed when clicking the expand nodes will not execute.
> The javascript tags are rendered slightly above the begining of the controls form tag.
> You can see that the comment tag was interputed, it may be as simple as flushing the buffer in the appropriate spots:
> clear_propertyListResult();
> //--></script></form></td></tr>
> </tbody></table>
> 	<!-- MYFACES JAVASCR
> <script type="text/javascript" src="/CARE/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/11474621/tree2.HtmlTreeRenderer/javascript/tree.js"><!--
> //--></script>

-- 
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