Package org.apache.myfaces.trinidad.context

Examples of org.apache.myfaces.trinidad.context.RequestContext$StubWindowManager


    // the RequestContext to remember this command instance
    // so that the NavigationHandler can locate us to queue
    // a LaunchEvent.
    if (event instanceof ActionEvent)
    {
      RequestContext afContext = RequestContext.getCurrentInstance();
      afContext.getDialogService().setCurrentLaunchSource(this);

      try
      {
        // Perform standard superclass processing
        super.broadcast(event);

        // Notify the specified action listener method (if any),
        // and the default action listener
        broadcastToMethodBinding(event, getActionListener());

        FacesContext context = getFacesContext();
        ActionListener defaultActionListener =
          context.getApplication().getActionListener();
        if (defaultActionListener != null)
        {
          defaultActionListener.processAction((ActionEvent) event);
        }
      }
      finally
      {
        afContext.getDialogService().setCurrentLaunchSource(null);
      }
    }
    else
    {
      // Perform standard superclass processing
View Full Code Here


{
  public ShowMessageBackingBean()
  {
    // Code necessary because of:
    //   https://javaserverfaces.dev.java.net/issues/show_bug.cgi?id=22
    RequestContext afContext = RequestContext.getCurrentInstance();
    setMessage((MessageData) afContext.getPageFlowScope().get("message"));
  }
View Full Code Here

    if (!(value instanceof Date))
      return value.toString();

    Date date = (Date) value;

    RequestContext afContext = RequestContext.getCurrentInstance();
    TimeZone tz = afContext.getTimeZone();
    if (tz == null)
      tz = TimeZone.getDefault();

    Locale locale = context.getViewRoot().getLocale();
    if (_isToday(date, tz, locale))
View Full Code Here

  {
    // if the user pressed the Reply button, then the pageFlowScope's
    // replyToAll value will be false. If the user pressed the
    // Reply to All button, then the pageFlowScope's replyToAll value
    // will be true. We set this in the showMessage.jspx page.
    RequestContext afContext = RequestContext.getCurrentInstance();

    Object replyToAll = afContext.getPageFlowScope().get("replyToAll");

    _setUpReplyToMessage("true".equals(replyToAll));
  }
View Full Code Here

    _setUpReplyToMessage("true".equals(replyToAll));
  }

  private void _setUpReplyToMessage(boolean replyToAll)
  {
    RequestContext afContext = RequestContext.getCurrentInstance();

    MessageData message =
      (MessageData) afContext.getPageFlowScope().get("message");

    if (message == null) return;
    Message msg = message.getMessage();

    try
View Full Code Here

  /**
   * Returns the currently selected folder.
   */
  public FolderData getCurrentFolder()
  {
    RequestContext afContext = RequestContext.getCurrentInstance();
    return (FolderData) afContext.getPageFlowScope().get("currentFolder");
  }
View Full Code Here

  /**
   * Sets the current folder.
   */
  public void setCurrentFolder(FolderData folderData)
  {
    RequestContext afContext = RequestContext.getCurrentInstance();
    afContext.getPageFlowScope().put("currentFolder", folderData);
  }
View Full Code Here

      {
        prop.flushToComponent();
      }
    }

    RequestContext rc = RequestContext.getCurrentInstance();
   
    // If we toggled rendered, we'd better toggle the parent
    if (rendered != _editedComponent.isRendered())
      rc.addPartialTarget(_editedComponent.getParent());
    else
      rc.addPartialTarget(_editedComponent);

    return null;
  }
View Full Code Here

    }
  }

  public String doLaunch()
  {
    RequestContext afContext = RequestContext.getCurrentInstance();
    Map<String, Object> process = afContext.getPageFlowScope();
    process.put("lastLaunch", new Date());

    return "dialog:chooseInteger";
  }
View Full Code Here

    if (event.getReturnValue() != null)
    {
      getInput().setSubmittedValue(null);
      getInput().setValue(event.getReturnValue());

      RequestContext afContext = RequestContext.getCurrentInstance();
      afContext.addPartialTarget(getInput());
      dialogViewId =  "/demos/successDialog.jspx";
    }
    else
    {
      dialogViewId =  "/demos/cancelledDialog.jspx";
View Full Code Here

TOP

Related Classes of org.apache.myfaces.trinidad.context.RequestContext$StubWindowManager

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.