On 6/23/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.
can we make webpage attach to <html> tag?
-igor
-------------------------------------------------------------------------
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