Ok, now I think I found what was going on... Previously I tought I resolved the thing by upgrading to latest 1.3, but it was only sporadic behaviour.. I wrote my own TabbedPanel. Just because I needed that sometimes its ajax, and sometimes not, based on a constructor boolean (and I wanted that because I was trying to get rid of the error that pops up when AjaxSelfUpdatingTimerBehavior is on one tab and when switching to another - btw, a non-ajax tabbedpanel does not help, but anyway...). And on top of that, I want to switch tabbedPanel tabs, also by setting a session variable, without the caller referencing the panel directly. When doing that, the only place, where I can call panel.replace(..), to switch the tab content, is inside onBeforeRender - and that appears to be "too late" - the css does not get included.
I resolved now the problem in that way: my session "variable", wich hold the selected tab index, gets bound with the TabbedPanel - it holds a SoftReference to the Panel - that way, when setting the tab index, the session object knows to call setSelectedTab, which in turn calls panel.replace - all before onBeforeRender. And looks like that works. Sorry, if this post is so verbose. Bye dx74a19 wrote: > > Hi all, > When I call ajaxRequestTarget.addComponent(theUpdatedComponent), and that > component has associated markup, AND it includes Css (via > add(.forCss("x")) ... does the ajax request take care of the css (add it > to the page's styles somehow, automatique')? > > Dont know how or why, I found that issue in my app just now, after 3 > months of developing... Hope it's just my err somewhere.. > > Btw, wicket is great. I choose it after evaluating many, many, MANY > frameworks. > Just keep it cool & tidy. Thx ;) > > -- View this message in context: http://www.nabble.com/ajax-update-for-header-tf3791286.html#a10762427 Sent from the Wicket - User mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user