[Wicket-user] Dynamic number of columns in TreeTable

2007-05-31 Thread Mats Norén
Hi, Would it be possible to let the TreeTable take a model of columns instead of a fixed array? So that it would be possible to dynamically alter the number of columns based on a model? My usecase is a timeplanning tree with activities as rows and time as columns. Looking at the code it seems

Re: [Wicket-user] Dynamic number of columns in TreeTable

2007-05-31 Thread Martijn Dashorst
It is discussed in this thread on @dev. [1] You could join and ask for the change... It is not too big a change, but Igor mentioned some problems. Martijn [1] http://www.nabble.com/-proposal--Make-columns-of-repeaters-List%3CIColumn%3E-instead-of-IColumn---tf3785568.html#a10705320 On 5/31/07,

Re: [Wicket-user] Dynamic number of columns in TreeTable

2007-05-31 Thread Matej Knopp
I'm affraid this is not possible at the moment and I can see some issues with implementing this. What you can do now is either override isVisible to hide particular columns, or recreate the tree every time the columns change. -Matej On 5/31/07, Mats Norén [EMAIL PROTECTED] wrote: Hi, Would it

Re: [Wicket-user] Dynamic number of columns in TreeTable

2007-05-31 Thread Mats Norén
Ok, I tried to switch the column-array to a IModel with a list and I got the tree to render...once... :) Seems like I missed a couple of spots... Thanks for the quick reply. I guess an alternate approach for my usecase could be to only add two columns, one tree column and one panel containing a