wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mihir Chhaya <mihir.chh...@gmail.com>
Subject Re: Table Tree expand node
Date Thu, 16 Oct 2014 21:20:50 GMT
Thanks, Sven for your suggestion. I am using custom CSS, and also the
project is using Wicket Bootstrap.

But, the scroll bar is not displayed even after making TableTree page
independent (removing CSS, and free from bootstrap). Following is from my
modified version of AdvancedTreePage.html.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns:wicket>
<head>
    <title>Folder structure</title>
</head>
<body>
<form wicket:id="form">
    <p>
        <a wicket:id="collapseAll">collapse all</a> <a
wicket:id="expandAll">expand all</a>
    </p>

    <p>
        <wicket:child/>
    </p>

    <input type="submit" wicket:id="submit" value="OK"/>
</form>
</body>
</html>

And here is for from <wicket:child/> page:

<html xmlns:wicket="
http://wicket.apache.org/dtds.data/wicket-xhtml1.3-strict.dtd" >
<head>
    <wicket:head>
        <style>
            table {
            width: 90%;
            border: 1px solid #DDDDDD;
            }
            tr.even {
            background-color: #FFFFFF;
            }
            tr.odd {
            background-color: #EEEEEE;
            }
            td.number {
            text-align: right;
            padding-right: 1em;
            }
        </style>
    </wicket:head>
</head>
<body>
<wicket:extend>
    <div wicket:id="tree">[tree]</div>
</wicket:extend>
</body>
</html>

Thanks,
-Mihir.

On Thu, Oct 16, 2014 at 4:36 PM, Sven Meier <sven@meiers.net> wrote:

> Hi,
>
> >Expand and collapse of the node using '+' icon next to Folder path.
> >It shows the scroll bar only if I revisit the same page by clicking the
> menu option.
>
> are you using custom CSS to style your page?
> What happens if you run without this CSS, does the scrollbar appear
> immedtiately?
>
> Sven
>
>
> On 10/16/2014 09:41 PM, Mihir Chhaya wrote:
>
>> Hello,
>>
>> Could anybody please help me on following?
>>
>> This is related to:
>> -------------------------
>> Table Tree with custom Tree Provider to display folder structure.
>> I am referring to Sven Meier's Advanced Tabular Tree Structure example for
>> Wicket 6.x. (
>> http://www.wicket-library.com/wicket-examples-6.0.x/tree/
>> wicket/bookmarkable/org.apache.wicket.examples.tree.
>> TableTreePage?0&foo=AAA
>> )
>>
>>
>> My goal is:
>> -----------------
>> To display vertical scroll bar on expanding single folder/subfolder in
>> Table Tree.
>>
>>
>> The part working is:
>> -----------------------------
>> Expand and collapse of the node using '+' icon next to Folder path.
>>
>>
>> The part I am struggling with is:
>> -----------------------------------------------
>> Table Tree is not showing vertical scroll bar if there are more files, so
>> not allowing to view complete folder/sub folder content. It shows the
>> scroll bar only if I revisit the same page by clicking the menu option.
>>
>>
>> Thanks,
>> -Mihir.
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message