Hmm... looking at the code a bit, I don't think making getColumns() non-final
it will help after all.  I assumed that getColumns() was used internally by
DataTable but it doesn't appear to be.  What would really be nice is if
DataTable took a List (or a model wrapping a list) instead of an IColumn
array but I agree that would be a much bigger change.

Although, in the mean time, I still have the same problem - not being able
to change change the columns after the DataTable has been declared, at
render time.  Any suggestions?

-Brandon


igor.vaynberg wrote:
> 
> are you sure that will help you? does datatable refresh the component
> hierarchy that defines the toolbars on every requests?
> 
> -igor
> 
> 
> On Jan 28, 2008 11:32 AM, UPBrandon <[EMAIL PROTECTED]> wrote:
>>
>> Is there any chance simply removing the "final" modifier could make it
>> into a
>> 1.3.1 type of release?
>>
>>
>> igor.vaynberg wrote:
>> >
>> > you will have to roll your own for now. we might fix this in 1.4 if
>> > you add this to the wiki wishlist for 1.4 page.
>> >
>> > -igor
>> >
>> >> I was wondering if there is any way to change the columns of a
>> DataTable
>> >> once
>> >> it has been declared.  On my page, I pass an IModel into a Panel that
>> >> contains my DataTable.  As the user users the page, the contents of
>> the
>> >> model will change and I would like for that to affect which columns
>> are
>> >> shown in the table.  The problem is that DataTables take an array of
>> >> IColumns (instead of a List, which could be manipulated after
>> >> instantiation.)  I would override the DataTable's getColumns() method
>> to
>> >> return the appropriate columns but it is final.  Is there any
>> >> technical/design reason why getColumns() is final?  To me, it seems
>> >> unnecessary and is very annoying in an OO framework.
>> >>
>> >> Does anyone know of any way I could make the columns in my table
>> dynamic
>> >> without setting the visibility of <th>'s and <td>'s from inside my
>> >> IColumns?
>> >> Any help would be appreciated.
>> >>
>> >> -Brandon
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Dynamic-DataTable-columns-tp15142596p15143304.html
>>
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Dynamic-DataTable-columns-tp15142596p15144865.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to