use of com.agiletec.apsadmin.portal.helper.IPageActionHelper in project entando-core by entando.
the class PageTreeTag method doStartTag.
@Override
public int doStartTag() throws JspException {
try {
IPageActionHelper helper = this.getHelper(this.isOnline());
ITreeNode root = this.getAllowedTreeRootNode(helper);
ValueStack stack = this.getStack();
stack.getContext().put(this.getVar(), root);
stack.setValue("#attr['" + this.getVar() + "']", root, false);
} catch (Throwable t) {
_logger.error("error in doStartTag", t);
throw new JspException("Error during tag initialization", t);
}
return super.doStartTag();
}
use of com.agiletec.apsadmin.portal.helper.IPageActionHelper in project entando-core by entando.
the class PageTreeTag method getHelper.
protected IPageActionHelper getHelper(boolean online) {
String beanName = online ? "pageActionHelperOnline" : "pageActionHelperDraft";
IPageActionHelper helper = (IPageActionHelper) ApsWebApplicationUtils.getBean(beanName, this.pageContext);
return helper;
}
Aggregations