Re: [Wicket-user] wicket:head with page
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 language=javascript type=text/javascript alert('Content of the wicket:head gets contributed into the final page.'); /script /wicket:head /head body wicket:extend This is a child markup and here is its content. Notice that I have a wicket:head above. /wicket:extend /body /html On 25/01/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 that need to add some css/javascript to the header of the page. Is it because our design is too pour or just that this is not true anymore or what else? I wanted to have a little more detailed about that. Thanks Marc P.S. : I'll make sure to copy the details into the wiki after :) - 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 brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - 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 brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket:head with page
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 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 language=javascript type=text/javascript alert(' Content of the wicket:head gets contributed into the final page.'); /script /wicket:head /head body wicket:extend This is a child markup and here is its content. Notice that I have a wicket:head above. /wicket:extend /body /html On 25/01/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 that need to add some css/javascript to the header of the page. Is it because our design is too pour or just that this is not true anymore or what else? I wanted to have a little more detailed about that. Thanks Marc P.S. : I'll make sure to copy the details into the wiki after :) - 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 brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - 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 brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - 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 brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket:head with page
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 need to add some css/javascript to the header of the page. Is it because our design is too pour or just that this is not true anymore or what else? I wanted to have a little more detailed about that. I think that it might be outdated, I take that you mean http://cwiki.apache.org/WICKET/best-practices-and-gotchas.html And here there seems to be the same issue http://cwiki.apache.org/WICKET/consistent-page-layout-using-borders.html Maybe there should be the same point about markup inheritance as here: http://www.mail-archive.com/wicket-user@lists.sourceforge.net/msg17430.html P.S. : I'll make sure to copy the details into the wiki after :) Is it publicly editable? -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - 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 brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket:head with page
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, but I would like to clear this thing out in my head... Marc On 1/24/07, Timo Rantalaiho [EMAIL PROTECTED] wrote: 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 need to add some css/javascript to the header of the page. Is it because our design is too pour or just that this is not true anymore or what else? I wanted to have a little more detailed about that. I think that it might be outdated, I take that you mean http://cwiki.apache.org/WICKET/best-practices-and-gotchas.html And here there seems to be the same issue http://cwiki.apache.org/WICKET/consistent-page-layout-using-borders.html Maybe there should be the same point about markup inheritance as here: http://www.mail-archive.com/wicket-user@lists.sourceforge.net/msg17430.html P.S. : I'll make sure to copy the details into the wiki after :) Is it publicly editable? -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - 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 brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - 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 brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket:head with page
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 brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket:head with page
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 that need to add some css/javascript to the header of the page. Is it because our design is too pour or just that this is not true anymore or what else? I wanted to have a little more detailed about that. Thanks The WIKI entry was wrong or at least outdated. I changed it. Note that can can use add(HeaderContributor.forJavaScript(..)) etc for the same thing. 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 brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket:head with page
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 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 that need to add some css/javascript to the header of the page. Is it because our design is too pour or just that this is not true anymore or what else? I wanted to have a little more detailed about that. Thanks The WIKI entry was wrong or at least outdated. I changed it. Note that can can use add(HeaderContributor.forJavaScript(..)) etc for the same thing. 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 brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - 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 brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket:head with page
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 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 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 that need to add some css/javascript to the header of the page. Is it because our design is too pour or just that this is not true anymore or what else? I wanted to have a little more detailed about that. Thanks The WIKI entry was wrong or at least outdated. I changed it. Note that can can use add(HeaderContributor.forJavaScript(..)) etc for the same thing. 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 brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - 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 brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - 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 brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket:head with page
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 currently considering throwing an exception if wicket:head is used in a Page component. http://cwiki.apache.org/WICKET/consistent-page-layout-using-borders.html or should the entire page be removed? In the top it says Markup inheritance is much more convenient to use than Borders. Everything below is more complicated than necessary. :) -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - 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 brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket:head with page
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 head of a Page is already contributed to the output. The development team is currently considering throwing an exception if wicket:head is used in a Page component. http://cwiki.apache.org/WICKET/consistent-page-layout-using-borders.html or should the entire page be removed? In the top it says Markup inheritance is much more convenient to use than Borders. Everything below is more complicated than necessary. :) -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - 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 brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - 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 brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket:head with page
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 -//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 language=javascript type=text/javascript alert(' Content of the wicket:head gets contributed into the final page.'); /script /wicket:head /head body wicket:extend This is a child markup and here is its content. Notice that I have a wicket:head above. /wicket:extend /body /html On 25/01/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 that need to add some css/javascript to the header of the page. Is it because our design is too pour or just that this is not true anymore or what else? I wanted to have a little more detailed about that. Thanks Marc P.S. : I'll make sure to copy the details into the wiki after :) - 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 brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - 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 brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket:head in page template...
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 markup inheritance for all my pages, then the base markup will contain a head section. This head section could beinsufficient since I might need some special css or _javascript_ for somepages. To do this, using wicket:head in those pages to include the extra content (e.g. style sheets or _javascript_) solves the problem. Therefore,I think wicket:head in pages is still useful. Is this a good use ofwicket:head or should I use some other means to add specific content to the head section for some pages?CheersErik-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket:head in page template...
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 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 section could be insufficient since I might need some special css or javascript for some pages. To do this, using wicket:head in those pages to include the extra content (e.g. style sheets or javascript) solves the problem. Therefore, I think wicket:head in pages is still useful. Is this a good use of wicket:head or should I use some other means to add specific content to the head section for some pages? Cheers Erik - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket:head in page template...
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 modified it to: "The wicket:head pair can be used in Panels, Borders and Fragments, and is used for doing a 'header contribution', meaning that the contents will be written to the head section of the page the component is placed in. If you are authoring a normal page, you don't need wicket:head tags but instead put it in the page's head section directly. The exception to this is when you use markup inheritance, and one of the pages to extend wants to contribute to the header of some extending page, and the header is not part of the wicket:extend region. In that case, you can use wicket:head. " Problem solved! -Igor On 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 markup inheritance for all my pages, then the base markup will contain a head section. This head section could be insufficient since I might need some special css or _javascript_ for some pages. To do this, using wicket:head in those pages to include the extra content (e.g. style sheets or _javascript_) solves the problem. Therefore, I think wicket:head in pages is still useful. Is this a good use of wicket:head or should I use some other means to add specific content to the head section for some pages? Cheers Erik - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user