beehive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carlin Rogers (JIRA)" <>
Subject [jira] Resolved: (BEEHIVE-974) Allow users to define their own tree renderer
Date Fri, 18 Nov 2005 00:53:42 GMT
     [ ]
Carlin Rogers resolved BEEHIVE-974:

    Resolution: Fixed
     Assign To: Alejandro Ramirez  (was: Carlin Rogers)

Finished some code clean up for this issue... svn revision 345369.

The treeRenderer attribute on the <netui:tree> tag with a Java class name of a custom
TreeRenderer implementation to use for a given tree has been removed. The long term solution
will be to do this with some Dependency Injection. Removing this attribute will avoid having
to support and then deprecate these code changes. The support for using the new element in
the NetUI config file to define a custom TreeRenderer (to use for trees in the entire web
app) remains in place. This is the mechanism to use until we get DI support.

The test files can be used to verify that a custom TreeRenderer can be configured for the
the trees in a web app. Edit the beehive-netui-config.xml file and add a <tree-renderer-class>
element within the <jsp-tag-config>...</jsp-tag-config> section.
For example, with the test class, use...

> Allow users to define their own tree renderer
> ---------------------------------------------
>          Key: BEEHIVE-974
>          URL:
>      Project: Beehive
>         Type: Improvement
>   Components: NetUI
>     Versions: V1
>     Reporter: Carlin Rogers
>     Assignee: Alejandro Ramirez
>      Fix For: 1.1
>  Attachments: j974-patch-2.txt, j974-patch.txt
> From the email thread on the beehive dev list, there was a discussion about how to allow
control of formatting and white space in the NetUI tree rendering. Some folks want to completely
control white space in the tree rendering using CSS and/or image padding and not have the
"&nbsp;" entities, space characters, and line breaks in the node markup. The discussion
led to a suggestion to allow overriding the default NetUI implementation of the TreeRenderer.
See the "Control of white space in the NetUI tree rendering..." thread from early October
in the beehive dev list.
> I will attach a patch for review and will describe some of the detail in the design.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message