User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 375,241 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,315 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JSP advertiser: Lunarpages JSP Web Hosting
Views: 2504 | Replies: 1
Reply
Join Date: Jun 2005
Posts: 1
Reputation: cetinertas is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
cetinertas cetinertas is offline Offline
Newbie Poster

help

  #1  
Jun 1st, 2005
Hi,
I seperated the layout with struts tiles. Now my question is how can I add scrollable feature to the left panel. Although it is inside the table as:


<td valign="top" height="100%" width="100%">
<table cellpadding="0" cellspacing="0" height="100%" class="st08">
<tr>
<td height="100%" valign="top" style="border-right: 3px solid ;" >
<tiles:insert attribute="left.panel"/>
</td>
</tr>
</table>
</td>

Now I want the table to have horizantal scroll bar when the column exceeds the width. code]<div style="overflow:auto"></div>[/code]does not work. Is there any idea?


Left me write my leftpanel.jsp here:

<table cellspacing="0" cellpadding="0" border="5">

<tree:tree tree="tree.model" node="tree.node" includeRootNode="false">

<tr>

<td>

<table cellspacing="0" cellpadding="0" border="0" height="100%">
<tr>

<td>
<tree:nodeIndent node="tree.node" indentationType="type">
<tree:nodeIndentVerticalLine indentationType="type"><img src="/ikryukleme/images/verticalLine.gif"></tree:nodeIndentVerticalLine>
<tree:nodeIndentBlankSpace indentationType="type" ><img src="/ikryukleme/images/blankSpace.gif"></tree:nodeIndentBlankSpace></tree:nodeIndent>
</td>
<td>

<tree:nodeMatch node="tree.node" hasChildren="true" expanded="false" isLastChild="false">
<a href="/ikryukleme/jsp/tree.jsp?expand=<tree:nodeId node="tree.node"/>&select=<tree:nodeId node="tree.node"/>"><img src="/ikryukleme/images/collapsedMidNode.gif" border="0"> <img src="/ikryukleme/images/openFolder.gif"/>
</a>
</tree:nodeMatch>

<tree:nodeMatch node="tree.node" hasChildren="true" expanded="true" isLastChild="false" >
<a href="/ikryukleme/jsp/tree.jsp?collapse=<tree:nodeId node="tree.node"/>&select=<tree:nodeId node="tree.node"/>"><img src="/ikryukleme/images/expandedMidNode.gif" border="0">
</a>
</tree:nodeMatch>
<tree:nodeMatch node="tree.node" hasChildren="true" expanded="false" isLastChild="true">
<a href="/ikryukleme/jsp/tree.jsp?expand=<tree:nodeId node="tree.node"/>&select=<tree:nodeId node="tree.node"/>"><img src="/ikryukleme/images/collapsedLastNode.gif" border="0">
</a>
</tree:nodeMatch>
<tree:nodeMatch node="tree.node" hasChildren="true" expanded="true" isLastChild="true">
<a href="/ikryukleme/jsp/tree.jsp?collapse=<tree:nodeId node="tree.node"/>&select=<tree:nodeId node="tree.node"/>"><img src="/ikryukleme/images/expandedLastNode.gif" border="0">
</a>
</tree:nodeMatch>
<tree:nodeMatch node="tree.node" hasChildren="false" isLastChild="false">
<a href="/ikryukleme/yukleme.tk?nodeId=<tree:nodeId node="tree.node"/>&nodeName=<tree:nodeName node="tree.node"/>&nodeType=<tree:nodeType node="tree.node"/>">
<img src="/ikryukleme/images/noChildrenMidNode.gif" border="0"><span style="Font-Size: 12px;"><b><tree:nodeName node="tree.node"/></b></span></a>
</tree:nodeMatch>
<tree:nodeMatch node="tree.node" hasChildren="false" isLastChild="true">
<a href="/ikryukleme/yukleme.tk?nodeId=<tree:nodeId node="tree.node"/>&nodeName=<tree:nodeName node="tree.node"/>&nodeType=<tree:nodeType node="tree.node"/>">
<img src="/ikryukleme/images/noChildrenMidNode.gif" border="0"><span style="Font-Size: 12px;"><b><tree:nodeName node="tree.node"/></b></span></a>
</tree:nodeMatch>


<tree:nodeMatch node="tree.node" selected="true" hasChildren="true"><span style="Font-Size: 12px;"><b><tree:nodeName node="tree.node"/></b></span></tree:nodeMatch>
<tree:nodeMatch node="tree.node" selected="false" hasChildren="true"><a href="/ikryukleme/jsp/tree.jsp?select=<tree:nodeId node="tree.node"/>&expand=<tree:nodeId node="tree.node"/>""><span style="Font-Size: 12px;"><tree:nodeName node="tree.node"/></span></a></tree:nodeMatch>

</td>

</tr>
</table>

</td>

</tr>

</tree:tree>
</table>



Think the width of the left panel is static.
As you see my tree.jsp always refreshes when a node is selected, I want this table have a horizantal scroll bar when any table width exceeds the width of the left panel.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Nov 2004
Location: Netherlands
Posts: 5,588
Reputation: jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough 
Rep Power: 18
Solved Threads: 187
Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: help

  #2  
Jun 7th, 2005
You need to specify the width of the table to accomplish that. I don't use Struts so I can't tell you how to determine the width of the panel at runtime to feed it to the table declaration.
42 Private messages asking for help will be ignored
In the frozen land of Nador they were forced to eat Steve's iMinstrels, and there was much rejoicing.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb JSP Marketplace
Thread Tools Display Modes

Other Threads in the JSP Forum

All times are GMT -4. The time now is 4:34 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC