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/