Package javax.portlet

Examples of javax.portlet.StateAwareResponse


       *    i.e. request scope isn't preserved in case of redirect.
       */
      extCtx.getRequestMap().put("myRedirectRequestObject", Boolean.TRUE);

      // Create and raise the event
      StateAwareResponse response = (StateAwareResponse) extCtx.getResponse();
      response.setEvent(new QName(EVENT_QNAME, EVENT_NAME), testRunner.getTestName());
     
      return Constants.TEST_SUCCESS; // action Navigation result
    }
    else
    {
View Full Code Here


    // are explicitly excluded -- test for presence/absence in render
    if (BridgeUtil.getPortletRequestPhase() ==
        Bridge.PortletPhase.ACTION_PHASE)
    {
      // Create and raise the event
      StateAwareResponse response = (StateAwareResponse) extCtx.getResponse();
      response.setEvent(new QName(TestEventHandler.EVENT_QNAME, TestEventHandler.EVENT_NAME), testRunner.getTestName());
      return "facesContextReleasedEventTest"; // action Navigation result
    }
    else
    {
      testRunner.setTestComplete(true);
View Full Code Here

    // In the action portion create/attach things to request scope that should either be preserved or
    // are explicitly excluded -- test for presence/absence in render
    if (BridgeUtil.getPortletRequestPhase() ==
        Bridge.PortletPhase.ACTION_PHASE)
    {
      StateAwareResponse response = (StateAwareResponse) extCtx.getResponse();
      response.setEvent(new QName(TestEventHandler.EVENT_QNAME, TestEventHandler.EVENT_NAME), testRunner.getTestName());
      return "portletPhaseRemovedEventTest"; // action Navigation result
    }
    else
    {
      testRunner.setTestComplete(true);
View Full Code Here

    Map<String, Object> m = extCtx.getRequestMap();
   
    if (BridgeUtil.getPortletRequestPhase() ==
        Bridge.PortletPhase.ACTION_PHASE)
    {
      StateAwareResponse response = (StateAwareResponse) extCtx.getResponse();
      response.setEvent(new QName(TestEventHandler.EVENT_QNAME, TestEventHandler.EVENT_NAME), testRunner.getTestName());
      return "eventPhaseListenerTest"; // action Navigation result
    }
    else
   
     
View Full Code Here

      extCtx.getSessionMap().put(TestEventHandler.EVENT_TEST_FAILED, null);
     
      // Place a request attr in scope so we can make sure its still there later
      extCtx.getRequestMap().put(TestEventHandler.EVENTATTR, testRunner.getTestName());
      // Create and raise the event
      StateAwareResponse response = (StateAwareResponse) extCtx.getResponse();
      response.setEvent(new QName(TestEventHandler.EVENT_QNAME, TestEventHandler.EVENT_NAME), testRunner.getTestName());
      return "eventScopeRestoredTest"; // action Navigation result
    }
    else
    {
      testRunner.setTestComplete(true);
View Full Code Here

      extCtx.getSessionMap().put(TestEventHandler.EVENT_TEST_FAILED, null);
     
      // Place a request attr in scope so we can make sure its not there later
      extCtx.getRequestMap().put(TestEventHandler.EVENTATTR, testRunner.getTestName());
      // Create and raise the event
      StateAwareResponse response = (StateAwareResponse) extCtx.getResponse();
      response.setEvent(new QName(TestEventHandler.EVENT_QNAME, TestEventHandler.EVENT_NAME), testRunner.getTestName());
      return "eventScopeNotRestoredRedirectTest"; // action Navigation result
    }
    else
    {
      testRunner.setTestComplete(true);
View Full Code Here

      extCtx.getSessionMap().put(TestEventHandler.EVENT_TEST_FAILED, null);

      // Place a request attr in scope so we can make sure its not there later
      extCtx.getRequestMap().put(TestEventHandler.EVENTATTR, testRunner.getTestName());
      // Create and raise the event
      StateAwareResponse response = (StateAwareResponse) extCtx.getResponse();
      response.setEvent(new QName(TestEventHandler.EVENT_QNAME, TestEventHandler.EVENT_NAME), testRunner.getTestName());
      return "eventScopeNotRestoredModeChangedTest"; // action Navigation result
    }
    else
    {
      testRunner.setTestComplete(true);
View Full Code Here

      // doesn't keep the test result -- rather rerenders
      extCtx.getSessionMap().put(TestEventHandler.EVENT_RECEIVED, null);
      extCtx.getSessionMap().put(TestEventHandler.EVENT_TEST_FAILED, null);
     
      // Set a render parameter so we can verify its there after the event
      StateAwareResponse response = (StateAwareResponse) extCtx.getResponse();
      response.setRenderParameter("tck.renderParam", "value");
      // Create and raise the event
      response.setEvent(new QName(TestEventHandler.EVENT_QNAME, TestEventHandler.EVENT_NAME), testRunner.getTestName());
      return "eventControllerTest"; // action Navigation result
    }
    else
    {
      testRunner.setTestComplete(true);
View Full Code Here

        Bridge.PortletPhase.ACTION_PHASE)
    {
      // Set the value into the model underneath the public render parameter
      extCtx.getRequestMap().put("modelPRP", testRunner.getTestName());
      // Create and raise the event
      StateAwareResponse response = (StateAwareResponse) extCtx.getResponse();
      response.setEvent(new QName(TestEventHandler.EVENT_QNAME, TestEventHandler.EVENT_NAME), testRunner.getTestName());
      return "eventNoHandlerPRPPreservedTest"; // action Navigation result
    }
    else
    {
      testRunner.setTestComplete(true);
View Full Code Here

    // done by navigation rule.
    if (BridgeUtil.getPortletRequestPhase() ==
        Bridge.PortletPhase.ACTION_PHASE)
    {
      // Create and raise the event
      StateAwareResponse response = (StateAwareResponse) extCtx.getResponse();
      response.setEvent(new QName(EVENT_QNAME, EVENT_NAME), testRunner.getTestName());
     
      return Constants.TEST_SUCCESS; // action Navigation result
    }
    else
    {
View Full Code Here

TOP

Related Classes of javax.portlet.StateAwareResponse

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.