Package org.opencms.flex

Examples of org.opencms.flex.CmsFlexController


    this.var = var;
  }

  @Override
  public int doStartTag() throws JspException {
    CmsFlexController m_controller = CmsFlexController.getController(pageContext.getRequest());
    CmsObject cms = m_controller.getCmsObject();

        if (recursive == null || "tree".equalsIgnoreCase(recursive)) {
        navigationIterator = new TreeNavigationIterator(cms);
        } else if ("flat".equalsIgnoreCase(recursive)) {
          navigationIterator = new FlatRecursiveNavigationIterator(cms);
View Full Code Here


 
  @Override
  public int doEndTag() throws JspException {
    try {
      CmsJspActionElement cms = getCmsActionElement();
      CmsFlexController controller = CmsFlexController.getController(cms.getRequest());
      CmsObject cmso = cms.getCmsObject();
     
      uri = CmsLinkManager.getAbsoluteUri(uri, controller.getCurrentRequest().getElementUri());
      CmsFile file = cmso.readFile(uri);
      String contents = new String(file.getContents(), encoding);
      if (var != null) {
        pageContext.setAttribute(var, contents, scope);
      } else {
View Full Code Here

TOP

Related Classes of org.opencms.flex.CmsFlexController

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.