try with DomReadyHederItem to see if you get a different behavior.

On Thu, Mar 21, 2013 at 3:44 PM, mac <[email protected]> wrote:

> Hi,
> I have a panel component containing
> org.apache.wicket.extensions.markup.html.tabs.TabbedPanel(s):
>
> Java (my component constructor):
> List<Tab> tabs = new ArrayList<>();
> ...
> add( new AjaxTabbedPanel<>( "menu", tabs ) );
>
> HTML:
> <div id="menu">
>    <div class="tab-row">
>       ...
>    </div>
>    <div class="tab-panel">
>       ...
>    </div>
>    ...
> </div>
>
> I need to add a css class to "tab-row" and "tab-panel" selectors (by jQuery
> I suppouse).
> I tried calling
> response.render( JavaScriptHeaderItem.forScript( "$("#menu >
> .tab-row").addClass("myClass");", "someId" ) );
> inside myComponent#renderHead but without any success.
>
> Maybe my way is not correct? Thanks for any help.
>
> mac
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Wicket-panel-call-jQuery-tp4657401.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>


-- 
Regards - Ernesto Reinaldo Barreiro
Antilia Soft
http://antiliasoft.com/ <http://antiliasoft.com/antilia>

Reply via email to