Christain,
I'm a Wicket newbie and would like some helpful tips, as you already gave
one.
I was looking at the DataTable's source and tried to "play" with the markup
of my inherited table.
Can you give an example / link ref / more explanation of how it's done?
thanks very much
On Wed, Mar 12, 200
Martin,
Yes...you would have to set a wicket:id for the thead to add attributes
dynamically. This is easily done by setting markup to a subclass of
datatable, and using the same structure used in the wicket-extensions jar.
Cheers,
Christian
On 3/11/08, Eyal Golan <[EMAIL PROTECTED]> wrote:
>
> T
Thanks Christian,
As Igor suggested, I did use a CSS (at the beginning I didn't find the style
attribute I needed).
I'll keep in mind the onComponentTag() as well.
As I mentioned before, my problem was solved, but when I have time, I'll try
to find the of a DataTable issue.
Thanks guys
On Tue,
Does this also mean that one must add a wicket:id into the thead?
**
Martin
2008/3/11, Christian Alejandro Marquez Grabia <[EMAIL PROTECTED]>:
> You can change tag attributes by overriding the onComponentTag() method, at
> least that is what I do when modifying any class or other attribute. (you
You can change tag attributes by overriding the onComponentTag() method, at
least that is what I do when modifying any class or other attribute. (you
should get the attribute from the tag parameter, and then set it there as
well)
I'm not sure where you should add that for the thead builder, but if
there shouldnt be anything you cannot do through css that you can do
through adding things to markup
that said you can always subclass datatable and provide your own markup
-igor
On Mon, Mar 10, 2008 at 3:31 PM, Eyal Golan <[EMAIL PROTECTED]> wrote:
> well, I can and this is what I actually did.
well, I can and this is what I actually did.
I found out that I can use in style, the attribute: *text-align*
that has solved me the problem.
But my (more general) question is: what if there is an attribute that can't
be set in style? as what I understand, it can't be set in a CSS (if I'm
mistaken
can you not use css?
-igor
On Mon, Mar 10, 2008 at 6:17 AM, Eyal Golan <[EMAIL PROTECTED]> wrote:
> Hey all,
> I am having an issue that seems to be simple, but still, no success.
>
> I have a normal DataTable.
> I add to it the toptoolbars manually:
> HeadersToolbar thead = new HeadersToolb
Hey all,
I am having an issue that seems to be simple, but still, no success.
I have a normal DataTable.
I add to it the toptoolbars manually:
HeadersToolbar thead = new HeadersToolbar(entityDataTable,
entitiesProvider);
entityDataTable.addTopToolbar(thead);
This is how it looks in the HTML:
Thi