Package org.apache.myfaces.trinidad.context

Examples of org.apache.myfaces.trinidad.context.RenderingContext


    // Also, cache the new entry in the entry cache
    DerivationKey derivationKey = _getDerivationKey(context, document);
    entryCache.put(derivationKey, entry);
   
    // just in case, clear the dirty flag.
    RenderingContext arc = RenderingContext.getCurrentInstance();
    Skin skin = arc.getSkin();
    skin.setDirty(false);

    return entry;
  }
View Full Code Here


    // Write out the style sheet
    // First figure out whether or not we need to compress the style classes.
    // We don't compress the style classes if the content compression flag is disabled or
    // if the skin is a portlet skin.
    RenderingContext arc = RenderingContext.getCurrentInstance();
    Skin skin = arc.getSkin();
    boolean compressStyles = _isCompressStyles(context);

    StyleWriterFactoryImpl writerFactory = new StyleWriterFactoryImpl(_targetPath,
      getTargetStyleSheetName(context, document));
    CSSGenerationUtils.writeCSS(context,
View Full Code Here

  @Override
  protected String getOnclick(
    UIComponent component,
    FacesBean   bean)
  {
    RenderingContext rc = RenderingContext.getCurrentInstance();
    String onclick = super.getOnclick(component, bean);

    //PH: onclick should be included only for desktop IE since PIE and
    //IE mobile do not support onclick on a select component
    if (isIE(rc) && isDesktop(rc) && isAutoSubmit(component, bean))
View Full Code Here

  @Override
  protected String getOnblur(
    UIComponent component,
    FacesBean   bean)
  {
    RenderingContext rc = RenderingContext.getCurrentInstance();
    String onblur = super.getOnblur(component, bean);

    //PH: onblur should be included only for desktop IE since PIE and
    //IE mobile do not support onblur on a select component
    if (isIE(rc) &&  isDesktop(rc) && isAutoSubmit(component, bean))
View Full Code Here

  @Override
  protected String getOnchange(
    UIComponent component,
    FacesBean   bean)
  {
    RenderingContext rc = RenderingContext.getCurrentInstance();

    String onchange = super.getOnchange(component, bean);
    String auto = null;
    // Prepend the autosubmit script
    if (isAutoSubmit(component, bean))
View Full Code Here

    @Override
    protected String getDisclosedText(
      UIComponent component,
      FacesBean   bean)
    {
      RenderingContext arc = RenderingContext.getCurrentInstance();
      return arc.getTranslatedString(_HIDE_ALL_DETAILS_TEXT_KEY);
    }
View Full Code Here

    @Override
    protected String getUndisclosedText(
      UIComponent component,
      FacesBean   bean)
    {
      RenderingContext arc = RenderingContext.getCurrentInstance();
      return arc.getTranslatedString(_SHOW_ALL_DETAILS_TEXT_KEY);
    }
View Full Code Here

    List<String> scriptList = _getScriptList(context, false);
    boolean hasScript = ((scriptList != null) && !scriptList.isEmpty());

    if (hasDialog || hasScript)
    {
      RenderingContext arc = RenderingContext.getCurrentInstance();
      if (hasDialog)
        DialogRequest.addDependencies(context, arc);

      // =-=AEW How to pick a proper ID?

      // Write out a script;  let PPR know to use it
      String scriptId = "::launchScript";
      PartialPageContext ppContext = arc.getPartialPageContext();
      // TODO: Create the span with a bogus component where
      // getClientId() returns the scriptId;  this avoids
      // the need to downcast - you just need to
      // call addPartialTarget().  Or, come up with a better
      // PPR api to make it simpler
View Full Code Here

      return;
    }

    ResponseWriter origResponseWriter = _context.getResponseWriter();

    RenderingContext rc = RenderingContext.getCurrentInstance();
    assert (rc != null);

    boolean bufferScripts = _requestType == ReqType.LEGACY;
    PPRResponseWriter pprWriter =
      new PPRResponseWriter(origResponseWriter, rc, bufferScripts);
View Full Code Here

    // Get the state token from the StateManager (if one is available)
    String stateToken = StateManagerImpl.getStateToken(context);
    // And push it onto the DialogService (in case we launched anything)
    DialogServiceImpl.writeCurrentStateToken(context, stateToken);
   
    RenderingContext arc = RenderingContext.getCurrentInstance();
    if (arc != null)
    {
      arc.release();
    }
    else
    {
      _LOG.warning("RENDERINGCONTEXT_NOT_AVAILABLE");
    }
View Full Code Here

TOP

Related Classes of org.apache.myfaces.trinidad.context.RenderingContext

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.