Package org.apache.myfaces.trinidad.context

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


                "position: {1} ", new Object[]{alignment, position} );

    ResponseWriter out = context.getResponseWriter();

    String disclosedItemId = _getDisclosedItemId(context, component);
    RenderingContext arc = RenderingContext.getCurrentInstance();
    boolean isDesktop = (arc.getAgent().getType().equals(Agent.TYPE_DESKTOP));

    // Wrap the table element with a div tag for mobile browsers since some of it
    // doesn't support PPR for table element.
    if(!isDesktop )
    {
View Full Code Here


  public void beforePhase(PhaseEvent phaseEvent)
  {
    // Add event code here...
    System.out.println("***PhaseTracker: After Phase: " + phaseEvent.getPhaseId());
    RenderingContext rContext = RenderingContext.getCurrentInstance();

    if (rContext != null)
    {
      System.out.println("Set Skin to dirty if button was pressed, and it is set to :" + _pressedButton);
      if (_pressedButton)
      {
        System.out.println("Setting the skin to be dirty will allow you to refresh your browser and see any changes to the skin's css file immediately.");
        rContext.getSkin().setDirty(true);
        _pressedButton = false;
      }
      else
      {
        System.out.println("Set Skin to not be dirty");
        rContext.getSkin().setDirty(false);
      }
    }
    else
      System.out.println("rContext in _afterPhase is null!");

View Full Code Here

      boolean doneVisiting = false;
      RuntimeException re = null;

      try
      {
        RenderingContext rc = (_isEncodingVisit(visitContext))
                                ? RenderingContext.getCurrentInstance()
                                : null;

        // UIXComponents are allowed to set up their context differently for encoding
        // than normal processing, so behave differently if this is the RenderResponse
View Full Code Here

      return false;
    }

    UIXComponent uixParentComponent = (UIXComponent)parentComponent;
    FacesContext context = visitContext.getFacesContext();
    RenderingContext rc = (_isEncodingVisit(visitContext))
                            ? RenderingContext.getCurrentInstance()
                            : null;
    boolean doneVisiting = false;
    RuntimeException re = null;
View Full Code Here

    UIComponent  component
    ) throws IOException
  {
    if (!getRendersChildren())
    {
      RenderingContext rc = RenderingContext.getCurrentInstance();
      if (rc == null)
        throw new IllegalStateException(_LOG.getMessage(
          "NO_RENDERINGCONTEXT"));

      FacesBean bean = getFacesBean(component);
View Full Code Here

  public final void encodeEnd(
    FacesContext context,
    UIComponent  component
    ) throws IOException
  {
    RenderingContext rc = RenderingContext.getCurrentInstance();
    if (rc == null)
      throw new IllegalStateException(_LOG.getMessage(
        "NO_RENDERINGCONTEXT"));

    FacesBean bean = getFacesBean(component);
View Full Code Here

      // RenderingContext provided by Trinidad is
      // CoreRenderingContext, and given the complexity of
      // the CoreRenderingContext implementation, it seems
      // unlikely that anyone would attempt to replace the
     // implementation.
      RenderingContext rc = RenderingContext.getCurrentInstance();
      assert(rc instanceof CoreRenderingContext);

      CoreRenderingContext crc = (CoreRenderingContext)rc;
      StyleContext styleContext = crc.getStyleContext();
      StyleProvider styleProvider = styleContext.getStyleProvider();
View Full Code Here

      // RenderingContext provided by Trinidad is
      // CoreRenderingContext, and given the complexity of
      // the CoreRenderingContext implementation, it seems
      // unlikely that anyone would attempt to replace the
     // implementation.
      RenderingContext rc = RenderingContext.getCurrentInstance();
      assert(rc instanceof CoreRenderingContext);

      CoreRenderingContext crc = (CoreRenderingContext)rc;
      StyleContext styleContext = crc.getStyleContext();
      StyleProvider styleProvider = styleContext.getStyleProvider();
View Full Code Here

  @Override
  public void addPartialTarget(UIComponent target)
  {
    FacesContext fContext = __getFacesContext();

    RenderingContext afContext = RenderingContext.getCurrentInstance();

    PartialPageContext pContext = null;

    if (afContext != null)
    {
      pContext = afContext.getPartialPageContext();
    }

    if (pContext == null)
    {
      pContext = new MockPartialPageContext(fContext);
View Full Code Here

  {
    if (shouldRenderId(context, component))
    {
      String clientId = getClientId(context, component);
      context.getResponseWriter().writeURIAttribute("id", clientId, "id");
      RenderingContext arc = RenderingContext.getCurrentInstance();
      // For Non-JavaScript browsers, name attribute is handled separately
      // so skip it here
      if (supportsScripting(arc))
      {
        context.getResponseWriter().writeURIAttribute("name", clientId, "id");
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.