Methods Summary |
---|
public boolean | end(java.io.Writer writer, java.lang.String body)Overrides to be able to render body in a template rather than always before the template
evaluateParams();
try {
addParameter("body", body);
mergeTemplate(writer, buildTemplateName(template, getDefaultTemplate()));
} catch (Exception e) {
LOG.error("error when rendering", e);
}
finally {
popComponentStack();
}
return false;
|
public void | evaluateExtraParams()
super.evaluateExtraParams();
if (href != null)
addParameter("href", findString(href));
if (errorText != null)
addParameter("errorText", findString(errorText));
if (loadingText != null)
addParameter("loadingText", findString(loadingText));
if (afterLoading != null)
addParameter("afterLoading", findString(afterLoading));
if (beforeLoading != null)
addParameter("beforeLoading", findString(beforeLoading));
if (executeScripts != null)
addParameter("executeScripts", findValue(executeScripts, Boolean.class));
if (listenTopics != null)
addParameter("listenTopics", findString(listenTopics));
if (notifyTopics != null)
addParameter("notifyTopics", findString(notifyTopics));
if (handler != null)
addParameter("handler", findString(handler));
if (formId != null)
addParameter("formId", findString(formId));
if (formFilter != null)
addParameter("formFilter", findString(formFilter));
if (src != null)
addParameter("src", findString(src));
if (indicator != null)
addParameter("indicator", findString(indicator));
if (targets != null)
addParameter("targets", findString(targets));
if (showLoadingText != null)
addParameter("showLoadingText", findString(showLoadingText));
|
public void | evaluateParams()
if ((key == null) && (value == null)) {
value = "Submit";
}
if (((key != null)) && (value == null)) {
this.value = "%{getText('"+key +"')}";
}
super.evaluateParams();
|
protected java.lang.String | getDefaultTemplate()
return TEMPLATE;
|
public void | setAfterLoading(java.lang.String afterLoading)
this.afterLoading = afterLoading;
|
public void | setBeforeLoading(java.lang.String beforeLoading)
this.beforeLoading = beforeLoading;
|
public void | setErrorText(java.lang.String errorText)
this.errorText = errorText;
|
public void | setExecuteScripts(java.lang.String executeScripts)
this.executeScripts = executeScripts;
|
public void | setFormFilter(java.lang.String formFilter)
this.formFilter = formFilter;
|
public void | setFormId(java.lang.String formId)
this.formId = formId;
|
public void | setHandler(java.lang.String handler)
this.handler = handler;
|
public void | setHref(java.lang.String href)
this.href = href;
|
public void | setIndicator(java.lang.String indicator)
this.indicator = indicator;
|
public void | setListenTopics(java.lang.String listenTopics)
this.listenTopics = listenTopics;
|
public void | setLoadingText(java.lang.String loadingText)
this.loadingText = loadingText;
|
public void | setNotifyTopics(java.lang.String notifyTopics)
this.notifyTopics = notifyTopics;
|
public void | setShowErrorTransportText(java.lang.String showErrorTransportText)
this.showErrorTransportText = showErrorTransportText;
|
public void | setShowLoadingText(java.lang.String showLoadingText)
this.showLoadingText = showLoadingText;
|
public void | setSrc(java.lang.String src)
this.src = src;
|
public void | setTargets(java.lang.String targets)
this.targets = targets;
|
public void | setTheme(java.lang.String theme)
super.setTheme(theme);
|
protected boolean | supportsImageType()Indicate whether the concrete button supports the type "image".
return true;
|