Details
-
Improvement
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
None
-
None
-
None
-
0.5
-
Turing
-
Turing & Tiger Sprint 225, Turing & Tiger Sprint 226
Description
- add public getter for fragment:
public Fragment getFragment()
{ return fragment; }- make #addButtons protected
protected void addButtons()
{ addSelectButton(); addOpenButton(); addClearButton(); }- make #hasFilledDocBase protected:
protected boolean hasFilledDocbase()
{ return StringUtils.isNotEmpty(getPathModel().getObject()); }- add wicket child element in view html
<html xmlns:wicket="http://wicket.apache.org/">
<wicket:panel>
<wicket:container wicket:id="fragment"/>
</wicket:panel>
<wicket:fragment wicket:id="edit">
<div class="hippo-editor-field-value">
<div class="hippo-editor-field-value-container mirrortemplate_link" wicket:id="openLinkPickerLink"></div>
<a class="btn btn-default btn-sm" wicket:id="select">
<span><wicket:message key="select">[Select]</wicket:message></span>
</a>
<a class="btn btn-default btn-sm" wicket:id="open" href="#">
<span><wicket:message key="open">[Open]</wicket:message></span>
</a>
<a class="btn btn-default btn-sm" wicket:id="clear" href="#">
<span><wicket:message key="clear">[Clear]</wicket:message></span>
</a>
<wicket:child/>
</div>
</wicket:fragment>
<wicket:fragment wicket:id="viewCompare">
<a class="hippo-editor-field-value" wicket:id="openLink">
<span class="hippo-editor-field-value-container">
<span wicket:id="value">[localizedName]</span>
</span>
</a>
<wicket:child/>
</wicket:fragment>
</html>
Attachments
Issue Links
- is a forward port of
-
CMS-12422 Make MirrorTemplatePlugin more extensible
- Closed