incubator-adffaces-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kamran Kashanian (JIRA)" <adffaces-iss...@incubator.apache.org>
Subject [jira] Created: (ADFFACES-288) Move the defaulting of the focusRowKey attribute for the TreeTable component to the renderer
Date Sat, 11 Nov 2006 22:04:37 GMT
Move the defaulting of the focusRowKey attribute for the TreeTable component to the renderer
--------------------------------------------------------------------------------------------

                 Key: ADFFACES-288
                 URL: http://issues.apache.org/jira/browse/ADFFACES-288
             Project: MyFaces ADF-Faces
          Issue Type: Improvement
         Environment: All
            Reporter: Kamran Kashanian


The Trinidad TreeTable is limited to a single root node. The root node that is displayed by
the TreeTable is indicated by the focusRowKey attribute of TreeTable. When no focusRowKey
attribute is specified, TreeTable defaults the focusRowKey to the first node in the tree model.
This defaulting of the focusRowKey attribute is done in a package scoped method (__init())
of the UIXTreeTable class. Since there is no hook for subclasses of UIXTreeTable to override
the defaulting of the focusRowKey attribute, the subclasses are also limited to a single root
node (if they use the same focusRowKey logic to display the root node.)

The proposal is to move the defaulting of the focusRowKey attribute out of the UIXTreeTable
component and into the renderer. This allows subclasses of UIXTreeTable to handle a null focusRowKey
and display multiple root nodes. 

This patch includes this change. Also currently both Tree and TreeTable initially expand the
focusRowKey node. This initial expansion was also being done in the component. This patch
moves the initial expansion of the focusRowKey node into the renderer.

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

        

Mime
View raw message