Examples of RenderingContext


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

    // support read-only text areas, then render an "onfocus" that
    // redirects the user away from the field.
    if (isTextArea(bean) &&
        getReadOnly(FacesContext.getCurrentInstance(), bean))
    {
      RenderingContext arc = RenderingContext.getCurrentInstance();
      if (!supportsReadonlyFormElements(arc))
      {
        onfocus = XhtmlUtils.getChainedJS("this.blur()",
                                          onfocus,
                                          true);
View Full Code Here

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

    )
  {
    String onchange = super.getOnchange(bean);
    if (isAutoSubmit(bean))
    {
      RenderingContext arc = RenderingContext.getCurrentInstance();
      String source = LabelAndMessageRenderer.__getCachedClientId(arc);
      boolean immediate = isImmediate(bean);
      String auto = AutoSubmitUtils.getSubmitScript(arc, source, immediate);
      if (onchange == null)
        onchange = auto;
View Full Code Here

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

 
  protected String getAutoSubmitScript(
    FacesBean bean
  )
  {
    RenderingContext arc = RenderingContext.getCurrentInstance();
    String source = LabelAndMessageRenderer.__getCachedClientId(arc);
    boolean immediate = isImmediate(bean);
    boolean isRadio = isRadio();
    return AutoSubmitUtils.getSubmitScript(arc, source,
                                                  immediate, isRadio);
View Full Code Here

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

  @Override
  protected String getOnclick(FacesBean bean)
  {
    String onclick = getComponentOnclick(bean);
    RenderingContext arc = RenderingContext.getCurrentInstance();
    String id = arc.getCurrentClientId();
    boolean immediate = getImmediate(bean);
   
    String extraParams = (String)
      arc.getProperties().get(_EXTRA_SUBMIT_PARAMS_KEY);

    String script;
    if (getPartialSubmit(bean))
    {
      script = AutoSubmitUtils.getSubmitScript(
View Full Code Here

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

  protected void renderEventHandlers(
    FacesContext context,
    FacesBean    bean) throws IOException
  {
    super.renderEventHandlers(context, bean);
    RenderingContext arc = RenderingContext.getCurrentInstance();
    ResponseWriter rw = context.getResponseWriter();

    if (PartialPageUtils.isPartialRenderingPass(arc))
    {
      rw.writeAttribute("onunload", _PARTIAL_ONUNLOAD_HANDLER, null);
View Full Code Here

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

                                               int depth)
    throws IOException
  {
    if (isScreenReaderMode(rc))
    {
      RenderingContext arc = RenderingContext.getCurrentInstance();
      FacesContext fc = FacesContext.getCurrentInstance();
      if (rc.isRightToLeft())
      {
        //TODO: do we need default stamp support???
        encodeChild(context, stamp);
View Full Code Here

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

    // Make sure we have a name
    if (name != null)
    {
      // Get the Icon from the Skin
      UIXRenderingContext context = uix.getRenderingContext();
      RenderingContext arc = RenderingContext.getCurrentInstance();
      FacesContext fContext = context.getFacesContext();
      Skin skin = context.getSkin();
      Icon icon = skin.getIcon(name);

      Object uri = icon.getImageURI(fContext, arc);
View Full Code Here

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

    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

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

   * Called when the encoding of a page completes, whether or not there
   * were exceptions.
   */
  public void encodeFinally(FacesContext context)
  {
    RenderingContext arc = RenderingContext.getCurrentInstance();
    if (arc != null)
    {
      arc.release();
    }
    else
    {
      _LOG.warning("No AdfRenderingContext available");
    }
View Full Code Here

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

    Icon icon)
    throws IOException
  {
    if (icon != null)
    {
      RenderingContext arc = RenderingContext.getCurrentInstance();
      FacesContext fContext = context.getFacesContext();
      __renderBackgroundIcon(fContext, arc, icon);
    }
  }
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.