You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Pi Trash <pt...@web.de> on 2009/07/13 21:43:46 UTC

add html-attribute to a tab

Hi,

I generate a tab navigation panel and use a name abbreviation for the tab label:


ITab tab = (new AbstractTab(new Model<String>(nameAbbreviation)) {
                private static final long serialVersionUID = 1L;

                @Override
                public Panel getPanel(String id) {
                    // Do something
                }
            });
            
tabs.add(tab);

this.add(new TabbedPanel("tabNavigationPanel", tabs));


Is it possible to add the tabs a title-Attribute which contains the full name of the tab. The html then would something like the following:

...
<li title="This is the full label of the tab">This is an abbreviation</li>
...


Thanks for your help...
________________________________________________________________
Neu: WEB.DE Doppel-FLAT mit Internet-Flatrate + Telefon-Flatrate
für nur 19,99 Euro/mtl.!* http://produkte.web.de/go/02/


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: add html-attribute to a tab

Posted by Jonas <ba...@gmail.com>.
usually, you can attach an AttributeModifier to the component
representing the tag, like
new AttributeModifier("title", true, new Model("The Title Text"))

I never tried it in a TabbedPanel, but its probably one of the
Components generated
by one of the newXXX methods on TabbedPanel where you should attach
the attribute modifier

cheers,
Jonas



On Thu, Jul 16, 2009 at 11:12 AM, ptrash<pt...@web.de> wrote:
>
> So, it is not possible?
> --
> View this message in context: http://www.nabble.com/add-html-attribute-to-a-tab-tp24468087p24512963.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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


Re: add html-attribute to a tab

Posted by ptrash <pt...@web.de>.
So, it is not possible?
-- 
View this message in context: http://www.nabble.com/add-html-attribute-to-a-tab-tp24468087p24512963.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org