Re: [Wicket-user] DataTable header manipulation

2006-11-08 Thread dulanov
After same experiments I stop by following: public static final class IssueHeadersToolbar extends HeadersToolbar { public IssueHeadersToolbar(DataTable table, ISortStateLocator stateLocator) { super(table, stateLocator); get("headers:1:header").add(new Attribu

Re: [Wicket-user] DataTable header manipulation

2006-11-08 Thread dulanov
I added a class "check" to the first header element by next code: List columns = new ArrayList(); columns.add(new AbstractColumn(new Model("")) { @Override public Component getHeader(String componentId) { return new IssueSelectionFragment(componentId, "ch

Re: [Wicket-user] DataTable header manipulation

2006-11-08 Thread dulanov
I added a class "check" to the first header element by next code: issues = new DataTable("issues", columns.toArray(new IColumn[columns.size()]), issueListProvider, itemsPerPage) { @Override protected Item newRowItem(String id, int index, IModel model) {

Re: [Wicket-user] DataTable header manipulation

2006-10-07 Thread Martijn Dashorst
You can create your own toolbars. It is not hard and will give you everything you ever wanted. We had a design where the filter bar is not aligned with each column, but just fills from left to right, with a header between etc. The easiest way was just to create my own filter bar and be done with i

Re: [Wicket-user] DataTable header manipulation

2006-10-06 Thread Leszek Gawron
Igor Vaynberg wrote: > what if you have two datatables on a page? then your ids are no longer > unique. that is why classes should be used... -- Leszek Gawron - Take Surveys. Earn Cash. Influence the Future of IT Join Sour

Re: [Wicket-user] DataTable header manipulation

2006-10-06 Thread Igor Vaynberg
lets see a patch of what you want-IgorOn 10/6/06, Stefan Lindner <[EMAIL PROTECTED]> wrote: I think there are two cases:1. Improve the look of all tables generated by DefaultDataTable    This can be done by adding id and class attributes to and 2. Tune the appearence of a special table.   This can

Re: [Wicket-user] DataTable header manipulation

2006-10-06 Thread Stefan Lindner
I think there are two cases: 1. Improve the look of all tables generated by DefaultDataTable This can be done by adding id and class attributes to and 2. Tune the appearence of a special table. This can still be done by surrounding the table with a tag having an id. E.g. HTML: He

Re: [Wicket-user] DataTable header manipulation

2006-10-06 Thread Igor Vaynberg
what if you have two datatables on a page? then your ids are no longer unique.On 10/6/06, Stefan Lindner <[EMAIL PROTECTED] > wrote:If you want to have the first column of a table in a special layout or the last, a special css treatment is needed. In this cases it is very helpful to have an id-attr

Re: [Wicket-user] DataTable header manipulation

2006-10-06 Thread Stefan Lindner
If you want to have the first column of a table in a special layout or the last, a special css treatment is needed. In this cases it is very helpful to have an id-attribute in the tag. So I overwrite cellContainer @Override protected Item newCellItem(MarkupContainer cellContainer, final Str

Re: [Wicket-user] DataTable header manipulation

2006-10-06 Thread Leszek Gawron
Gwyn Evans wrote: > I'm not sure about Stefan's requirements, but doesn't the > "table. > thead > tr.headers > th" hierarchy let you target the > header sufficiently? e.g. it does not allow me to specify column widths. If every column had it's id appended as class like: nameactions I could set

Re: [Wicket-user] DataTable header manipulation

2006-10-06 Thread Igor Vaynberg
when i look at the markup of the headers toolbar i see                                      that is, i see that the tr carries a class, and the th carries a class. if there is a sortable header then those also carry classes.have you seen the demo of the datatable in examples? it is fully styled. wh

Re: [Wicket-user] DataTable header manipulation

2006-10-06 Thread Gwyn Evans
I'm not sure about Stefan's requirements, but doesn't the "table. > thead > tr.headers > th" hierarchy let you target the header sufficiently? /Gwyn On 06/10/06, Leszek Gawron <[EMAIL PROTECTED]> wrote: > Stefan Lindner wrote: > > I can manipulate the data grip part of a DataTable by overriding

Re: [Wicket-user] DataTable header manipulation

2006-10-06 Thread Leszek Gawron
Stefan Lindner wrote: > I can manipulate the data grip part of a DataTable by overriding newCellItem. > But if I e.g. need a speical layout for the table header, I must add a class > or id attribute to the elements of the headline (different layout on the > left and right side e.g.). > I can se

[Wicket-user] DataTable header manipulation

2006-10-06 Thread Stefan Lindner
I can manipulate the data grip part of a DataTable by overriding newCellItem. But if I e.g. need a speical layout for the table header, I must add a class or id attribute to the elements of the headline (different layout on the left and right side e.g.). I can see no way to manipulate the gener