Examples of PageSource


Examples of org.apache.tapestry.pageload.PageSource

     *
     **/

    protected IPageSource createPageSource(RequestContext context)
    {
        return new PageSource(this);
    }
View Full Code Here

Examples of org.apache.tapestry.pageload.PageSource

     *
     **/

    protected IPageSource createPageSource(RequestContext context)
    {
        return new PageSource(this);
    }
View Full Code Here

Examples of org.apache.tapestry.pageload.PageSource

     *
     **/

    protected IPageSource createPageSource(RequestContext context)
    {
        return new PageSource(this);
    }
View Full Code Here

Examples of org.apache.tapestry.pageload.PageSource

     *
     **/

    protected IPageSource createPageSource(RequestContext context)
    {
        return new PageSource(this);
    }
View Full Code Here

Examples of org.apache.tapestry.pageload.PageSource

    }

    public void testGetters()
    {
        Infrastructure infrastructure = newMock(Infrastructure.class);
        PageSource pageSource = new PageSource();
       
        expect(infrastructure.getPageSource()).andReturn(pageSource);
       
        IEngineService service = newService();
        ServiceMap map = newServiceMap("fred", service);
View Full Code Here

Examples of org.apache.tapestry.pageload.PageSource

    }

    public void testForgetPage()
    {
        Infrastructure infrastructure = newMock(Infrastructure.class);
        PageSource pageSource = new PageSource();
       
        expect(infrastructure.getPageSource()).andReturn(pageSource);
       
        PropertyPersistenceStrategySource source = newStrategySource();
        RequestCycleEnvironment env = new RequestCycleEnvironment(newErrorHandler(),
View Full Code Here

Examples of railo.runtime.PageSource

    String requestURI=realPath,queryString=null;
    if((index=realPath.indexOf('?'))!=-1){
      requestURI=realPath.substring(0,index);
      queryString=realPath.substring(index+1);
    }
    PageSource ps = PageSourceImpl.best(((PageContextImpl)pc).getRelativePageSources(requestURI));
    requestURI=ps.getFullRealpath();
    if(queryString!=null) return requestURI+"?"+queryString;
    return requestURI;
  }
View Full Code Here

Examples of railo.runtime.PageSource

   
       
    // Second Change     
    if(textTagLib.startsWith("/")){
            //config.getPhysical(textTagLib);
        PageSource ps = ((ConfigImpl)config).getPageSourceExisting(null,null,textTagLib,false,false,true,false);
       
        //config.getConfigDir()
        if(ps!=null) {
            if(ps.physcalExists()) {
              Resource file = ps.getPhyscalFile();
          // TLD
              if(file.isFile()) return _executeTLD(config,file,nameSpace,nameSpaceSeparator,cfml);
            }
        // CTD
        if(!hasTldExtension)return _executeCTD(textTagLib,nameSpace,nameSpaceSeparator);
View Full Code Here

Examples of railo.runtime.PageSource

    else if(res.isFile()){
      if(!res.getName().equalsIgnoreCase(Constants.APP_CFC))  {
        try {
         
          // MUST still a bad solution
          PageSource ps = pc.toPageSource(res,null);
          if(ps==null || ps.getComponentName().indexOf("..")!=-1) {
            PageSource ps2=null;
            Resource root = cfclocation.getPhysical();
                    String path = ResourceUtil.getPathToChild(res, root);
                    if(!Util.isEmpty(path,true)) {
                      ps2=cfclocation.getPageSource(path);
                    }
View Full Code Here

Examples of railo.runtime.PageSource

  private String toPath(Resource res) {
      if(!(res instanceof FileResource)) return res.getAbsolutePath();
     
      //Config config=pageContext.getConfig();
      PageSource ps = pageContext.toPageSource(res,null);
      if(ps==null) return res.getAbsolutePath();
     
      String realPath = ps.getRealpath();
      realPath=realPath.replace('\\', '/');
      if(realPath.endsWith("/"))realPath=realPath.substring(0,realPath.length()-1);
     
      //print.out("real:"+realPath);
      String mapping=ps.getMapping().getVirtual();
      mapping=mapping.replace('\\', '/');
      if(mapping.endsWith("/"))mapping=mapping.substring(0,mapping.length()-1);
     
      return mapping+realPath;
   
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.