A Fragment
is the basic element handled by the aggregation engine to compose the final portal page. It represents a reserved screen area whose layout is managed by a specified component.
The component that is responsible for the layout policy of the fragment is defined by two properties:
In addition to specifying the component responsible for the layout, the fragment also stores contextual information used for rendering:
Finally the fragment also holds layout and rendering properties that may be used by a parent fragment to layout all its inner fragments in an appropriate fashion. These properties are always defined for a specific named component.
@version $Id: Fragment.java,v 1.4 2005/01/11 20:01:44 weaver Exp $Fragments provide a means to maintain the panels tiny piece of markup. Since it can be anywhere, the component whose markup contains the fragment's markup must be provided (markup provider).
<span wicket:id="myPanel">Example input (will be removed)</span> <wicket:fragment wicket:id="frag1">panel 1</wicket:fragment> <wicket:fragment wicket:id="frag2">panel 2</wicket:fragment>
add(new Fragment("myPanel1", "frag1", myPage);@author Juergen Donnerstag
prkKeyとprkValueは、独立した専用のタグを記述した場合のフラグメントとして設定される。
例えば、<prk:replace value="name" />
である場合、 prkKeyはreplaceとなり、prkValueはnameとなる。
|
|