I also think this would be a good solution. -Matej
On 6/24/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > On 6/23/07, Matej Knopp <[EMAIL PROTECTED]> wrote: > > Modifying the tag (onComponentTag) and rendering header contribution > > (renderHead) are two different thing. While onComponentTag on a > > behavior attached to page won't work (for reasons as you stated), > > there is no reason why renderHead shouldn't work as well. > > > > -Matej > > attach the page to <html> tag and the entire ibehavior should make sense i > think. > > -igor > > > > > > > On 6/23/07, Juergen Donnerstag <[EMAIL PROTECTED]> wrote: > > > Jan, > > > > > > the problem is that though you can attach attribute modifier (that is > > > what HeaderContributor is as well) to a Page (or WebPage), it'll not > > > work. WebPage doesn't have a tag. Since there is no tag, the attribute > > > modifier are not invoked, hence the nothing gets added to the header > > > section. > > > > > > Solution: you simply must attach HeaderContributor.forCss to any other > > > of your components (e.g. html in your code) > > > > > > In order to prevent such errors, Wicket should detect (if not prevent) > > > that attribute modifiers are added to WebPage. I've no idea right now > > > how to make it a compile error, but we certainly can make it a runtime > > > exception. > > > > > > Juergen > > > > > > On 6/22/07, Jan Kriesten < [EMAIL PROTECTED]> wrote: > > > > > > > > copy to the list, as sourceforge doesn't allow zip-attachments atm. > > > > > > > > > > > > -------- Original Message -------- > > > > Subject: Re: [Wicket-user] <html wicket:id="html"> && CSS > > > > Date: Fri, 22 Jun 2007 08:53:23 +0200 > > > > From: Jan Kriesten < [EMAIL PROTECTED]> > > > > > > > > > > > > Hi Juergen, > > > > > > > > > I'll try my best to find some spare time to do it. Hopefully over > the weekend. > > > > > > > > much appreciated, thank you! :-) > > > > > > > > I attached a zip-file containing the example. > > > > > > > > Best regards, --- Jan. > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > > 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 > > > > > > > > ------------------------------------------------------------------------- > > 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 > > ------------------------------------------------------------------------- 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