On Thu, Aug 7, 2014 at 7:29 PM, <[email protected]> wrote:Author: adelbene Date: Thu Aug 7 17:29:32 2014 New Revision: 1616553 URL: http://svn.apache.org/r1616553 Log: Added some documentation on MetaDataHeaderItem. We can wait the new release to regenerate the docs. Modified: wicket/common/site/trunk/_site/guide/guide/src/docs/guide/resources/resources_4.gdoc Modified: wicket/common/site/trunk/_site/guide/guide/src/docs/guide/resources/resources_4.gdoc URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/guide/guide/src/docs/guide/resources/resources_4.gdoc?rev=1616553&r1=1616552&r2=1616553&view=diff ============================================================================== --- wicket/common/site/trunk/_site/guide/guide/src/docs/guide/resources/resources_4.gdoc (original) +++ wicket/common/site/trunk/_site/guide/guide/src/docs/guide/resources/resources_4.gdoc Thu Aug 7 17:29:32 2014 @@ -11,6 +11,8 @@ Header entries are instances of abstract * *OnLoadHeaderItem:* the JavaScript code added with this class is executed after the whole page is loaded, external files included. The factory method is @forScript(CharSequence javaScript)@. * *PriorityHeaderItem:* it wraps another header item and ensures that it will have the priority over the other items during rendering phase. * *StringHeaderItem:* with this class we can add an arbitrary text to the header section. Factory method is @forString(CharSequence string)@. +* *MetaDataHeaderItem:* starting from version 6.17.0, Wicket provides this class to handle meta informations such as <meta> tags or [canonical link element|http://en.wikipedia.org/wiki/Canonical_link_element]. The available factory methods are @forLinkTag@ and @forMetaTag@ which can be used to create respectively a <link> tag ora a <meta> one. We can add tag attribute to an existing instance of @MetaDataHeaderItem@ with method @addTagAttribute(Stringora ^^attributeName, Object attributeValue)@. See JavaDoc for further details on this class. + In the following example our custom component loads a CSS file as a package resource (placed in the same package) and it adds it to header section.
Sorry, I'm not completely sure about what you wanted to point out in
your mail :)
- Re: svn commit: r1616553 - /wicket/common/site/trunk/_site... Martin Grigorov
- Re: svn commit: r1616553 - /wicket/common/site/trunk/... Andrea Del Bene
- Re: svn commit: r1616553 - /wicket/common/site/tr... Martin Grigorov
- Re: svn commit: r1616553 - /wicket/common/sit... Andrea Del Bene
