Examples of PageContext


Examples of org.exoplatform.portal.mop.page.PageContext

        setBindingField(bfield);
    }

    public UIFormInput<?> setValue(String value) throws Exception {
        UserPortalConfigService service = getApplicationComponent(UserPortalConfigService.class);
        PageContext page = value != null ? service.getPage(PageKey.parse(value)) : null;
        page_ = page;
        super.setValue(value);
        return this;
    }
View Full Code Here

Examples of org.jfree.layouting.layouter.context.PageContext

  }

  protected void firePagebreak() throws NormalizationException
  {
    // todo: Compute the current page and the pseudo-pages for this one.
    final PageContext pageContext = getRenderPageContext().getPageContext();
    final LayoutStyle style = pageContext.getStyle();

    // todo: Update the pseudo-pages (left | right, first)
    getLayoutProcess().pageBreakEncountered(null, new PseudoPage[0]);
  }
View Full Code Here

Examples of org.rendersnake.PageContext

    }

    private void copyParametersIntoPageContext(HttpServletRequest req, HtmlServletCanvas canvas) {
        // copy query parameters into pageContext
        Enumeration<String> names = req.getParameterNames();
        PageContext ctx = canvas.getPageContext();
        while (names.hasMoreElements()) {
            String key = names.nextElement();
            Object value = req.getParameter(key);
            ctx.set(key,value);
        }
    }
View Full Code Here

Examples of org.rendersnake.PageContext

public class PageContextTest extends TestCase {

    private PageContext ctx;
   
    public void setUp() {
        ctx = new PageContext();
    }
View Full Code Here

Examples of org.rendersnake.PageContext

      return UNRESOLVED;
   
    HttpServletRequest request = (HttpServletRequest)(webRequest.getNativeRequest());
    HttpServletResponse response = (HttpServletResponse)(webRequest.getNativeResponse());
        HtmlCanvas canvas = HtmlCanvasFactory.createCanvas(request,response,response.getWriter());
        PageContext context = canvas.getPageContext();
       
        boolean empty = true;
    if (this.shareSessionAttributes) {
        HttpSession session = request.getSession(false);
        if (session != null) {           
            Enumeration<?> enumerator = session.getAttributeNames();
            while(enumerator.hasMoreElements()) {
                String name = (String)enumerator.nextElement();
                context.set(name,session.getAttribute(name));
                empty = false;
            }
            if (!empty) context.attributes.push();
        }
    }
    empty = true;
        if (this.shareRequestParameters) {
            Enumeration<?> enumerator = request.getParameterNames();
            while(enumerator.hasMoreElements()) {
                String name = (String)enumerator.nextElement();
                context.set(name,request.getParameter(name));
                empty = false;
            }
            if (!empty) context.attributes.push();         
        }   
        empty = true;
    if (this.shareRequestAttributes) {
        Enumeration<?> enumerator = request.getAttributeNames();
            while(enumerator.hasMoreElements()) {
                String name = (String)enumerator.nextElement();
                if (!name.startsWith("org.springframework")) { // no need for spring internals
                    context.set(name,request.getAttribute(name));
                    empty = false;
                }
            }
            if (!empty) context.attributes.push();       
    }
View Full Code Here

Examples of org.sonatype.nexus.httpclient.Page.PageContext

          // NEXUS-5944: Give it a chance: it might be remote Nexus with browsing disabled?
          // to check that, we will check is remote is Nexus by pinging "well know" location
          // if we got it, we will know it's only browsing forbidden on remote
          final RemoteStorageContext ctx = getRemoteStorageContext(repository);
          final HttpClient httpClient = (HttpClient) ctx.getContextObject(CTX_KEY_CLIENT);
          final PageContext pageContext = new RepositoryPageContext(httpClient, repository);
          final ResourceStoreRequest rmRequest = new ResourceStoreRequest("/.meta/repository-metadata.xml");
          final URL nxRepoMetadataUrl = appendQueryString(
              repository, rmRequest,
              getAbsoluteUrlFromBase(repository, rmRequest));
          try {
View Full Code Here

Examples of org.zkoss.cdi.weld.context.PageContext

   * @param manager
   */
  public void afterBeanDiscovery(@Observes AfterBeanDiscovery event, BeanManager manager) {
    //register ZK contexts
    event.addContext(new DesktopContext());
    event.addContext(new PageContext());
    event.addContext(new IdSpaceContext());
    event.addContext(new ComponentContext());
    event.addContext(new ExecutionContext());
    log.info("ZK Weld Extension "+Version.UID);
  }
View Full Code Here

Examples of railo.runtime.PageContext

    ContentType ct = getContentType();
    String charset=null;
    if(ct!=null)charset=ct.getCharset();
    if(!StringUtil.isEmpty(charset)) return charset;
   
    PageContext pc = ThreadLocalPageContext.get();
    if(pc!=null) return pc.getConfig().getWebCharset();
    return "ISO-8859-1";
  }
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.