Hi All I have an htmlb tree control that shows the folders in the content management part of my SAP portal.
I create the tree in a Java bean using a recursive method to go through the folder structure
tree = new Tree("navTree");
tree.setOnTreeClick("treeClick");
this.setRoot(buildTree(request));
//buildTree is the recursive method, which appends child nodes
my jsp page then displays the tree like this
<%@ taglib uri="htmlb" prefix="hbj" %>
<%@page import="com.sapportals.htmlb.TreeNode"%>
<jsp:useBean id="navigationDataBean" scope="session" class="com.dfdstransport.portal.pub.externalweb.beans.NavigationDataBean" />
<table>
<tr>
<td align="left" valign="top" class="header1" style="background-image:url(img/dots-horizontal.gif); background-repeat:repeat-x; background-position:bottom;padding-bottom:3px"><%=navigationDataBean.getNavigationHeader()%></td>
</tr>
</table>
<hbj:content id="myContext" >
<hbj:page title="PageTitle">
<hbj:form id="myFormId" >
<table>
<tr>
<td width ="100">
<%
myFormId.addComponent(navigationDataBean.getTree());
%>
</td>
</tr>
</table>
</hbj:form>
</hbj:page>
</hbj:content>
no problem so far the tree is shown with the correct nodes.
my problem is that I want to control the width of the Tree so it has a fixed width, so if some node has a very long name it will be wrapped within the tree control.
but the tree control does not seem to have any width attribute either in java api or in htmlb tags.
I have found some forum post and blogs where people use something like
<htmlb:Tree
id="foo"
node="fooNode"
..
..
width="100"
/>
I am running on EP6 SP9, could that be a problem.
any help or ideas on how to control the width would be greatly appreciated