Tree disappears on disclosure when debug-output=true in trinidad-config.xml
---------------------------------------------------------------------------

                 Key: TRINIDAD-2198
                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2198
             Project: MyFaces Trinidad
          Issue Type: Bug
          Components: Components
    Affects Versions: 2.0.0-core
         Environment: Firefox 3.6/8
            Reporter: Matt Weaver


Using a <tr:tree> component, when debug-output is set to true in 
trinidad-config.xml and a node is expanded, the entire tree disappears.  
Reloading the page shows the tree with the node expanded.

I traced the PPR with firebug, and it looks like the problem is that it is 
creating a comment node from the response.  Here is what the response looks 
like:

     <partial-response><changes><update id="tr1"><![CDATA[<!--Start: 
org.apache.myfaces.trinidad.Tree["tr1"]--><div id="tr1">...

I think because it starts with the comment, instead of the div, it is only 
inserting a comment node into the DOM, so the whole tree goes away.  It 
wouldn't surprise me if other components were affected by this too.

Changing debug-output to false definitely fixes it for me.  I can provide a 
sample or other information if needed, but I think this should probably be 
enough to go on.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to