You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Sandor Feher <sf...@bluesystem.hu> on 2012/12/30 15:55:25 UTC

tree component problems in 6.x

Hi,

I'm just upgraded my project from 1.5.9 to 6.4.0 without major problems. The
only thing I can't get rid so far is tree component.

My 1.5.9 code is this.

        tree.addTopToolbar(new HeadersToolbar(tree));
        tree.addBottomToolbar(new NoRecordsToolbar(tree));
        tree.add(new Behavior() {

            @Override
            public void renderHead( Component component, IHeaderResponse
response) {
                response.renderCSSReference(new WindowsTheme());
            }

Now it looks to me that there is no addTopToolbar/addBottomToolbar method
belongs to tree component.
I'm also struggling with WindowsTheme behavior. Please let me know the
replacements things above.


thnx. Sandor



        });




--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/tree-component-problems-in-6-x-tp4655101.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: tree component problems in 6.x

Posted by Sandor Feher <sf...@bluesystem.hu>.
Hi,

Thanks for the hint. It was the table tag. WindowsTheme problem still
persists but I will be working on it.
So happy new year!

thnx. ,Sandor



--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/tree-component-problems-in-6-x-tp4655101p4655110.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: tree component problems in 6.x

Posted by Sven Meier <sv...@meiers.net>.
Hi Sandor,

TableTree nests a <table> tag inside its markup, so make sure itself is 
*not* mapped to a <table> but a <div> tag.

Sven

On 12/31/2012 01:54 PM, Sandor Feher wrote:
> Hi Sven,
>
> I though so you're my man  .getTable() works fine but I have two other
> problems left.
> First is adding windowstheme has no affect for me.
> Second one if I open a node with child items then it doubles the displayed
> items. If I keep clicking then it triples the content and so one. It might
> be they related to each other. (See screenshots.)
> It's not so easy to create a quickstart from this situation so if you have
> any idea I would appreciate that.
> (The bottom line is that the code worked fine in 1.5.9).
>
> thnx., Sandor
>
> <http://apache-wicket.1842946.n4.nabble.com/file/n4655107/1.png>
> <http://apache-wicket.1842946.n4.nabble.com/file/n4655107/2.png>
> <http://apache-wicket.1842946.n4.nabble.com/file/n4655107/3.png>
>
>
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/tree-component-problems-in-6-x-tp4655101p4655107.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: tree component problems in 6.x

Posted by Sandor Feher <sf...@bluesystem.hu>.
Hi Sven,

I though so you're my man  .getTable() works fine but I have two other
problems left.
First is adding windowstheme has no affect for me.
Second one if I open a node with child items then it doubles the displayed
items. If I keep clicking then it triples the content and so one. It might
be they related to each other. (See screenshots.)
It's not so easy to create a quickstart from this situation so if you have
any idea I would appreciate that.
(The bottom line is that the code worked fine in 1.5.9).

thnx., Sandor

<http://apache-wicket.1842946.n4.nabble.com/file/n4655107/1.png> 
<http://apache-wicket.1842946.n4.nabble.com/file/n4655107/2.png> 
<http://apache-wicket.1842946.n4.nabble.com/file/n4655107/3.png> 



--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/tree-component-problems-in-6-x-tp4655101p4655107.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: tree component problems in 6.x

Posted by Sven Meier <sv...@meiers.net>.
Hi Sandor,

you'll have a TableTree's table first to change the toolbars:

   tree.getTable().addTopToolbar(...);

If you're not using DefaultTableTree but extend from TableTree you'll 
have to add the theme as follows:

   tree.add(new 
org.apache.wicket.extensions.markup.html.repeater.tree.theme.WindowsTheme());

Hope this helps
Sven




On 12/30/2012 03:55 PM, Sandor Feher wrote:
> Hi,
>
> I'm just upgraded my project from 1.5.9 to 6.4.0 without major problems. The
> only thing I can't get rid so far is tree component.
>
> My 1.5.9 code is this.
>
>          tree.addTopToolbar(new HeadersToolbar(tree));
>          tree.addBottomToolbar(new NoRecordsToolbar(tree));
>          tree.add(new Behavior() {
>
>              @Override
>              public void renderHead( Component component, IHeaderResponse
> response) {
>                  response.renderCSSReference(new WindowsTheme());
>              }
>
> Now it looks to me that there is no addTopToolbar/addBottomToolbar method
> belongs to tree component.
> I'm also struggling with WindowsTheme behavior. Please let me know the
> replacements things above.
>
>
> thnx. Sandor
>
>
>
>          });
>
>
>
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/tree-component-problems-in-6-x-tp4655101.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org