...
<wicket:fragment> - is similar to <wicket:panel> but its is declared in the parent's markup instead of in a separate markup file.
Example:
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<html xmlns:wicket="http://wicket.apache.org"> <body> <span wicket:id="panel1">panel</span> <span wicket:id="panel2">panel</span> <wicket:fragment wicket:id="frag1">This is the content of fragment 1</wicket:fragment> <wicket:fragment wicket:id="frag2">fragment 2222222</wicket:fragment> </body> </html> |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
public MyPage() { Fragment panel1 = new Fragment("panel1", "frag1", MyPage.this); add(panel1); Fragment panel2 = new Fragment("panel2", "frag2", MyPage.this); add(panel2); } |
...
<wicket:head> - Used for header contributions. Using this, panels, borders and child pages can add header sections to the pages they are placed on. For instance:
...
With markup like this all header contributions done by using IHeaderResponse or via usage of <wicket:head> will be inserted between <meta name="someKey"> and <title> elements. This way the application developer can make sure that some head elements, like the special <meta charset="utf-8">, are always rendered before/after Wicket contributions.
Element wicket:enclosure
...