Package org.olat.core.gui.components.velocity

Examples of org.olat.core.gui.components.velocity.VelocityContainer.contextPut()


      // we use reverse string tokens to reduce subtring correlated matches - a proper fix requires refactoring
      this.lock = CoordinatorManager.getCoordinator().getLocker().acquireLock(lockResourceable, ureq.getIdentity(), lockToken);
      VelocityContainer vc = (VelocityContainer) flc.getComponent();
      if (!lock.isSuccess()) {
        vc.contextPut("locked", Boolean.TRUE);
        vc.contextPut("lockOwner", lock.getOwner().getName());
        return;
      } else {
        vc.contextPut("locked", Boolean.FALSE);       
      }
    }
View Full Code Here


      new URL(url);
    } catch (MalformedURLException e) {
      throw new AssertException("invalid URL "+url);
    }
    VelocityContainer vc = createVelocityContainer("redirect");
    vc.contextPut("url", url);
    putInitialPanel(vc);
   
  }

 
View Full Code Here

      if (!lock.isSuccess()) {
        vc.contextPut("locked", Boolean.TRUE);
        vc.contextPut("lockOwner", lock.getOwner().getName());
        return;
      } else {
        vc.contextPut("locked", Boolean.FALSE);       
      }
    }
    // Parse the content of the page
    this.body = parsePage(fileLeaf);
    // load form now
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.