Optional property can now have an inline help
@@ -33,12 +33,13 @@ THE SOFTWARE.
and the presence of the value.
<st:attribute name="field" use="required" />
<st:attribute name="title" use="required" />
+ <st:attribute name="help" />
</st:documentation>
<!--
Without @checked, optionalBlock will try to coerce an object to a boolean, which fails,
so override @checked manually.
-->
- <f:optionalBlock field="${field}" title="${title}" checked="${instance[field]!=null}">
+ <f:optionalBlock field="${field}" title="${title}" checked="${instance[field]!=null}" help="${help}">
<j:set var="descriptor" value="${app.getDescriptorOrDie(descriptor.getPropertyTypeOrDie(instance,field).clazz)}" />
<j:set var="instance" value="${instance[field]}"/>
<st:include from="${descriptor}" page="${descriptor.configPage}" />
