[Wicket-user] wicket:head with page

2007-01-24 Thread Marc-Andre Houle
In the wiki, there is a gotcha that look like this : Adding wicket:head to a Page wicket:head is intended for panels and borders only. Do not add this to a page. The problem is : it is exactly what I wanted to do. I got a child class that need to add some css/javascript to the header of the

Re: [Wicket-user] wicket:head with page

2007-01-24 Thread Otan
The following works for me: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns=http://www.w3.org/1999/xhtml; xmlns:wicket= http://www.wicketframework.org; head title~/title wicket:head script

Re: [Wicket-user] wicket:head with page

2007-01-24 Thread Marc-Andre Houle
Yeah, I know, I also implemented something and It work. But since it is in the gotcha part of the wiki, this mean that we should not do this. But since it work, I don't know why... Marc On 1/24/07, Otan [EMAIL PROTECTED] wrote: The following works for me: !DOCTYPE html PUBLIC -//W3C//DTD

Re: [Wicket-user] wicket:head with page

2007-01-24 Thread Timo Rantalaiho
On Wed, 24 Jan 2007, Marc-Andre Houle wrote: In the wiki, there is a gotcha that look like this : Adding wicket:head to a Page wicket:head is intended for panels and borders only. Do not add this to a page. The problem is : it is exactly what I wanted to do. I got a child class that

Re: [Wicket-user] wicket:head with page

2007-01-24 Thread Marc-Andre Houle
Wiki : Yes it is if you create an account. The comment of igor in the mailling list archive is directly related to what I want to do. What I want to know is : Why is it not in the wiki, should I update the wiki? I don't want to disturb developer because they surely have something else to do,

Re: [Wicket-user] wicket:head with page

2007-01-24 Thread Eelco Hillenius
I changed the WIKI entry. Thanks for finding. Eelco - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through

Re: [Wicket-user] wicket:head with page

2007-01-24 Thread Eelco Hillenius
On 1/24/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: In the wiki, there is a gotcha that look like this : Adding wicket:head to a Page wicket:head is intended for panels and borders only. Do not add this to a page. The problem is : it is exactly what I wanted to do. I got a child class

Re: [Wicket-user] wicket:head with page

2007-01-24 Thread Marc-Andre Houle
Yeah, but when you have big chunk and everything, you don't necessary want this to be in the Java world. At least, that what I think since I want all my decoration in html and all my logic in java... On 1/24/07, Eelco Hillenius [EMAIL PROTECTED] wrote: On 1/24/07, Marc-Andre Houle [EMAIL

Re: [Wicket-user] wicket:head with page

2007-01-24 Thread Eelco Hillenius
Sure. Just wanted to point out that there is an alternative way, which is not better or worse, just different :) Eelco On 1/24/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: Yeah, but when you have big chunk and everything, you don't necessary want this to be in the Java world. At least, that

Re: [Wicket-user] wicket:head with page

2007-01-24 Thread Timo Rantalaiho
On Wed, 24 Jan 2007, Eelco Hillenius wrote: I changed the WIKI entry. Thanks for finding. This remains Note: the use of wicket:head should not even be necessary at all in a Page, since everything in the head of a Page is already contributed to the output. The development team is

Re: [Wicket-user] wicket:head with page

2007-01-24 Thread Eelco Hillenius
Changed it, thanks, Eelco On 1/24/07, Timo Rantalaiho [EMAIL PROTECTED] wrote: On Wed, 24 Jan 2007, Eelco Hillenius wrote: I changed the WIKI entry. Thanks for finding. This remains Note: the use of wicket:head should not even be necessary at all in a Page, since everything in the

Re: [Wicket-user] wicket:head with page

2007-01-24 Thread Otan
Oops! Let me correct my previous post. Based on the new Wiki, wicket:head is not necessary for a child markup if it is a page; the html head is enough to be contributed to the final head of the markup. On 25/01/07, Otan [EMAIL PROTECTED] wrote: The following works for me: !DOCTYPE html PUBLIC

[Wicket-user] wicket:head in page template...

2006-08-27 Thread Erik Brakkee
Hi, In some of the documentation it is mentioned that wicket:head is not supposed to be used in pages (e.g. http://www.wicket-wiki.org.uk/wiki/index.php/Including_CSS_resources). However, if I use markup inheritance for all my pages, then the base markup will contain a head section. This head

Re: [Wicket-user] wicket:head in page template...

2006-08-27 Thread Igor Vaynberg
afaik it should be ok, where does it say otherwise?-IgorOn 8/27/06, Erik Brakkee [EMAIL PROTECTED] wrote:Hi,In some of the documentation it is mentioned that wicket:head is not supposed to be used in pages(e.g.http://www.wicket-wiki.org.uk/wiki/index.php/Including_CSS_resources).However, if I use

Re: [Wicket-user] wicket:head in page template...

2006-08-27 Thread Eelco Hillenius
Thanks for finding that, that WIKI page was wrong. When I wrote it, I didn't think about markup inheritance. Using wicket:head with base pages/ markup inheritance is perfectly alright. I updated the WIKI page. Eelco On 8/27/06, Erik Brakkee [EMAIL PROTECTED] wrote: Hi, In some of the

Re: [Wicket-user] wicket:head in page template...

2006-08-27 Thread Erik Brakkee
Igor Vaynberg wrote: afaik it should be ok, where does it say otherwise? Well, on the wiki it said today: " If you are authoring a page, you don't need (and shouldn't use) wicket:head tags but instead put it in the page's head section directly.". But Eelco edited the wiki page today, and