Arrgh. Discard my previous reply. This is wrong. Why shouldn't I be able to do header contribution on behavior attached to a page? This doesn't make sense!
I know onComponentTag doesn't make sense, but that's IMHO not valid reason to forbid header contribution as well. -Matej On 6/24/07, Jonathan Locke <[EMAIL PROTECTED]> wrote: > > my code which does this: > > add(HeaderContributor.forCss(CSS)); > > now throws the following exception. my web page needs to contribute CSS to > the header. i'm wondering, why can't i do it this way anymore (it seems > like WebPage is a component like any other and my code did work fine before > this exception)? and what's the best alternative? thanks! > > Caused by: org.apache.wicket.WicketRuntimeException: You can not > attach behaviors onto WebPages. Web pages do require a markup file but no > specific tag to attach the page to. This is why behaviors such as > HeaderContributor for example don't work if attached to a WebPage. Please > attach the behavior to any other of your components. > > > > > -- > View this message in context: > http://www.nabble.com/cannot-add-CSS-to-web-page--tf3970619.html#a11270671 > 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 > ------------------------------------------------------------------------- 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