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
> 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 you
> find it, then you'll get it done. You may also use IBehaviours, like
> SimpleAttributeModifier.
>
> Or as Igor well said, use your own markup (you could see the default markup
> inside the jar, and simply add the attribute you want)
>
> Rgds,
>
> Christian
>
>
> On 3/10/08, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> >
> > 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.
> > > 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, please tell me how it's done).
> > >
> > > How can I add attributes to <thead> of a DataTable?
> > > Hope I'm clear enough.
> > >
> > > Eyal
> > > On Mon, Mar 10, 2008 at 7:17 PM, Igor Vaynberg <[EMAIL PROTECTED]
> > >
> > > wrote:
> > >
> > >
> > >
> > > > 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 HeadersToolbar(entityDataTable,
> > > > > entitiesProvider);
> > > > > entityDataTable.addTopToolbar(thead);
> > > > > This is how it looks in the HTML:
> > > > > <table wicket:id="entitiesList" class="browserTable">
> > > > >
> > > > > This is how (part of) the generated HTML looks like:
> > > > > <table class="browserTable" wicket:id="entitiesList">
> > > > > <thead>
> > > > > <tr class="headers">
> > > > > <th wicket:id="header" class="wicket_orderUp"><wicket:border
> > > > > _moz-userdefined=""><a wicket:id="orderByLink" class=""
> > > > >
> >
> > > >
> href="?wicket:interface=:4:tabs:browserTabbedPanel:panel:entitiesList:topToolbars:2:toolbar:headers:1:header:orderByLink::ILinkListener::"><wicket:body
> > > > > _moz-userdefined=""><span wicket:id="label">Person
> > > > > ID</span></wicket:body></a></wicket:border>
> > > > > </th>
> > > > >
> > > > > I want a simple thing: I want to align the header labels to the
> > left.
> > > > > The problem(s):
> > > > > - style doesn't have an attribute of align. Only vertical-align.
> > > > > - I tried to add to the HeadersToolbar an AttributeModifier:
> > > > > thead.add(new AttributeModifier("align", true, new
> > Model("left")));
> > > > >
> > > > > Nothing seems working.
> > > > > I am using Firebug and the label <thead> keeps with no attribute.
> > > > >
> > > > > Can anyone help?
> > > > >
> > > > > Thank a lot
> > > > >
> > > > >
> > > > > --
> > > > > Eyal Golan
> > > > > [EMAIL PROTECTED]
> > > > >
> > > > > Visit: http://jvdrums.sourceforge.net/
> > > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > >
> > > --
> > >
> > >
> > > Eyal Golan
> > > [EMAIL PROTECTED]
> > >
> > > Visit: http://jvdrums.sourceforge.net/
> > >
> >
> > ---------------------------------------------------------------------
> > 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]