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
egolan74@gmail.com
Visit: http://jvdrums.sourceforge.net/
Does this also mean that one must add a wicket:id into the thead?
**
Martin
2008/3/11, Christian Alejandro Marquez Grabia <ch...@gmail.com>:
> 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 <ig...@gmail.com> 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 <eg...@gmail.com> 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 <igor.vaynberg@gmail.com
> > >
> > > wrote:
> > >
> > >
> > >
> > > > can you not use css?
> > > >
> > > > -igor
> > > >
> > > >
> > > > On Mon, Mar 10, 2008 at 6:17 AM, Eyal Golan <eg...@gmail.com>
> > 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
> > > > > egolan74@gmail.com
> > > > >
> > > > > Visit: http://jvdrums.sourceforge.net/
> > > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > > For additional commands, e-mail: users-help@wicket.apache.org
> > > >
> > > >
> > >
> > >
> > > --
> > >
> > >
> > > Eyal Golan
> > > egolan74@gmail.com
> > >
> > > Visit: http://jvdrums.sourceforge.net/
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
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, 2008 at 1:43 AM, Christian Alejandro Marquez Grabia <
chalmagr@gmail.com> wrote:
> 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 <eg...@gmail.com> wrote:
> >
> > 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 <thead> of a DataTable issue.
> >
> > Thanks guys
> >
> >
> > On Tue, Mar 11, 2008 at 3:45 AM, Christian Alejandro Marquez Grabia <
> > chalmagr@gmail.com> wrote:
> >
> > > 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 <ig...@gmail.com> 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 <eg...@gmail.com>
> > 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 <
> > > igor.vaynberg@gmail.com
> > > > >
> > > > > wrote:
> > > > >
> > > > >
> > > > >
> > > > > > can you not use css?
> > > > > >
> > > > > > -igor
> > > > > >
> > > > > >
> > > > > > On Mon, Mar 10, 2008 at 6:17 AM, Eyal Golan <egolan74@gmail.com
> >
> > > > 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
> > > > > > > egolan74@gmail.com
> > > > > > >
> > > > > > > Visit: http://jvdrums.sourceforge.net/
> > > > > > >
> > > > > >
> > > > > >
> > > ---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > > > > For additional commands, e-mail: users-help@wicket.apache.org
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > > --
> > > > >
> > > > >
> > > > > Eyal Golan
> > > > > egolan74@gmail.com
> > > > >
> > > > > Visit: http://jvdrums.sourceforge.net/
> > > > >
> > > >
> > > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > > For additional commands, e-mail: users-help@wicket.apache.org
> > > >
> > > >
> > >
> >
> >
> >
> >
> > --
> >
> > Eyal Golan
> > egolan74@gmail.com
> >
> > Visit: http://jvdrums.sourceforge.net/
> >
>
--
Eyal Golan
egolan74@gmail.com
Visit: http://jvdrums.sourceforge.net/
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 <eg...@gmail.com> wrote:
>
> 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 <thead> of a DataTable issue.
>
> Thanks guys
>
>
> On Tue, Mar 11, 2008 at 3:45 AM, Christian Alejandro Marquez Grabia <
> chalmagr@gmail.com> wrote:
>
> > 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 <ig...@gmail.com> 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 <eg...@gmail.com>
> 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 <
> > igor.vaynberg@gmail.com
> > > >
> > > > wrote:
> > > >
> > > >
> > > >
> > > > > can you not use css?
> > > > >
> > > > > -igor
> > > > >
> > > > >
> > > > > On Mon, Mar 10, 2008 at 6:17 AM, Eyal Golan <eg...@gmail.com>
> > > 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
> > > > > > egolan74@gmail.com
> > > > > >
> > > > > > Visit: http://jvdrums.sourceforge.net/
> > > > > >
> > > > >
> > > > >
> > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > > > For additional commands, e-mail: users-help@wicket.apache.org
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > >
> > > >
> > > > Eyal Golan
> > > > egolan74@gmail.com
> > > >
> > > > Visit: http://jvdrums.sourceforge.net/
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > For additional commands, e-mail: users-help@wicket.apache.org
> > >
> > >
> >
>
>
>
>
> --
>
> Eyal Golan
> egolan74@gmail.com
>
> Visit: http://jvdrums.sourceforge.net/
>
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 <thead> of a DataTable issue.
Thanks guys
On Tue, Mar 11, 2008 at 3:45 AM, Christian Alejandro Marquez Grabia <
chalmagr@gmail.com> wrote:
> 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 <ig...@gmail.com> 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 <eg...@gmail.com> 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 <
> igor.vaynberg@gmail.com
> > >
> > > wrote:
> > >
> > >
> > >
> > > > can you not use css?
> > > >
> > > > -igor
> > > >
> > > >
> > > > On Mon, Mar 10, 2008 at 6:17 AM, Eyal Golan <eg...@gmail.com>
> > 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
> > > > > egolan74@gmail.com
> > > > >
> > > > > Visit: http://jvdrums.sourceforge.net/
> > > > >
> > > >
> > > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > > For additional commands, e-mail: users-help@wicket.apache.org
> > > >
> > > >
> > >
> > >
> > > --
> > >
> > >
> > > Eyal Golan
> > > egolan74@gmail.com
> > >
> > > Visit: http://jvdrums.sourceforge.net/
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>
--
Eyal Golan
egolan74@gmail.com
Visit: http://jvdrums.sourceforge.net/
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 <ig...@gmail.com> 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 <eg...@gmail.com> 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 <igor.vaynberg@gmail.com
> >
> > wrote:
> >
> >
> >
> > > can you not use css?
> > >
> > > -igor
> > >
> > >
> > > On Mon, Mar 10, 2008 at 6:17 AM, Eyal Golan <eg...@gmail.com>
> 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
> > > > egolan74@gmail.com
> > > >
> > > > Visit: http://jvdrums.sourceforge.net/
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > For additional commands, e-mail: users-help@wicket.apache.org
> > >
> > >
> >
> >
> > --
> >
> >
> > Eyal Golan
> > egolan74@gmail.com
> >
> > Visit: http://jvdrums.sourceforge.net/
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
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 <eg...@gmail.com> 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 <ig...@gmail.com>
> wrote:
>
>
>
> > can you not use css?
> >
> > -igor
> >
> >
> > On Mon, Mar 10, 2008 at 6:17 AM, Eyal Golan <eg...@gmail.com> 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
> > > egolan74@gmail.com
> > >
> > > Visit: http://jvdrums.sourceforge.net/
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>
>
> --
>
>
> Eyal Golan
> egolan74@gmail.com
>
> Visit: http://jvdrums.sourceforge.net/
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
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 <ig...@gmail.com>
wrote:
> can you not use css?
>
> -igor
>
>
> On Mon, Mar 10, 2008 at 6:17 AM, Eyal Golan <eg...@gmail.com> 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
> > egolan74@gmail.com
> >
> > Visit: http://jvdrums.sourceforge.net/
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
--
Eyal Golan
egolan74@gmail.com
Visit: http://jvdrums.sourceforge.net/
can you not use css?
-igor
On Mon, Mar 10, 2008 at 6:17 AM, Eyal Golan <eg...@gmail.com> 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
> egolan74@gmail.com
>
> Visit: http://jvdrums.sourceforge.net/
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org