Customize sortable datatable (css, html attributes and sort)
Hello, I am testing Wicket possibilities in order to launch the development of a new application. I wanted to display a sortable datatable, so I read this: http://cwiki.apache.org/WICKET/simple-sortable-datatable-example.html It works fine but I have few questions: -1. This example is up to date? 0. Is it the best solution? 1. I read the html generated source code and I write css classes: headers, wicket_orderUp, even, odd, etc. Is it possible to put my own css class names? For example, can I put a different class for the first header column only? 2. I notice that the sort is working fine but can I customize it? For example, I do not want to sort date by alphabetic order. 3. Is it possible to i18n the navigator label (Showing 1 to 5 of 15)? 4. Is it possible to fix the witdh of each column? Just nowrap! Where I put the new SimpleAttributeModifier(nowrap, nowrap)? lol Thank you for reading Thank you very much for some future answers Have a good day Nico -- View this message in context: http://www.nabble.com/Customize-sortable-datatable-%28css%2C-html-attributes-and-sort%29-tp20015233p20015233.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]
Re: Customize sortable datatable (css, html attributes and sort)
On Thu, 16 Oct 2008, ns_wicket wrote: I wanted to display a sortable datatable, so I read this: http://cwiki.apache.org/WICKET/simple-sortable-datatable-example.html It works fine but I have few questions: -1. This example is up to date? 0. Is it the best solution? 1. I read the html generated source code and I write css classes: headers, wicket_orderUp, even, odd, etc. Is it possible to put my own css class names? For example, can I put a different class for the first header column only? You should just try things out in practice to see how they go. You can customise a lot of things in a DataTable, but for heavy customisation I've found components that are more bare-bone (DataView for example) easier. This is because DataTable uses a lot of other components inside it, and the more of them you need to customise or replace entirely, the more cluttered it becomes. You can anyway use DataTable as a reference on how to achieve different things, as it has so much built-in functionality. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]