Re: weird stuff with TreeTable
I had exactly the same problem. Your solution worked, but did you get any further information? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/weird-stuff-with-TreeTable-tp1885401p3005112.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
weird stuff with TreeTable
Hello, I am having something very strange in my TreeTable. I've put the tree in a Dynamic Wizard Step. When I get to that step (which is the summary), the columns gets wider and wider. After looking at Firebug, I've noticed that the width of the header is increasing: div class=wicket-tree-table div class=header div style=width: 1878px; ... - this is keeping being larger and larger. I was looking at Tree.js but as I'm not a JS expert, I couldn't understand what's wrong. Is it possible that another object in my DOM causes this problem? I am using Wicket 1.3.6 Thanks, Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary
Re: weird stuff with TreeTable
Below are the columns I add: treeColumns.add(new CustomPropertyTreeColumn(new ColumnLocation(Alignment.MIDDLE, 100, Unit.PROPORTIONAL), new ResourceModel(purge.wizard.analyzeDocumentsStep.treeTable.header), userObject.displayName)); treeColumns.add(new PropertyRenderableColumn(new ColumnLocation(Alignment.RIGHT, 100, Unit.PX), purge.wizard.analyzeDocumentsStep.treeTable.header.counters, userObject.counter)); CustomPropertyColumn get IModel instead of String Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary On Sun, Jul 12, 2009 at 11:40 AM, Eyal Golan egola...@gmail.com wrote: Hello, I am having something very strange in my TreeTable. I've put the tree in a Dynamic Wizard Step. When I get to that step (which is the summary), the columns gets wider and wider. After looking at Firebug, I've noticed that the width of the header is increasing: div class=wicket-tree-table div class=header div style=width: 1878px; ... - this is keeping being larger and larger. I was looking at Tree.js but as I'm not a JS expert, I couldn't understand what's wrong. Is it possible that another object in my DOM causes this problem? I am using Wicket 1.3.6 Thanks, Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary
Re: weird stuff with TreeTable
What I did, and for now it's working, is override one of the js functions:Wicket.TreeTable.attachUpdate It does nothing now. Wicket.TreeTable.attachUpdate = function(treeTableId) { //// get the object that contains ids of elements on which the update method was already attached //var attached = Wicket.TreeTable.attached; // //// force updating the element //Wicket.TreeTable.update(treeTableId); // //// if the update has not been attached to this tree table yet... //if (typeof(attached[treeTableId]) == undefined) { //// ... attach it //attached[treeTableId] = window.setInterval(function() { Wicket.TreeTable.update(treeTableId); }, 100); //} return; } I'm sure this not a good thing. Any suggestions? Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary