Examples of URLAction


Examples of com.ocpsoft.pretty.faces.annotation.URLAction

    */
   private void processMethodAnnotations(Method method, String[] classMappingIds)
   {

      // is there a @URLAction annotation on the class?
      URLAction actionAnnotation = method.getAnnotation(URLAction.class);
      if (actionAnnotation != null)
      {
         processPrettyActionAnnotation(actionAnnotation, method, classMappingIds);
      }

View Full Code Here

Examples of com.ocpsoft.pretty.faces.annotation.URLAction

    */
   private void processMethodAnnotations(Method method, String[] classMappingIds)
   {

      // is there a @URLAction annotation on the class?
      URLAction actionAnnotation = method.getAnnotation(URLAction.class);
      if (actionAnnotation != null)
      {
         processPrettyActionAnnotation(actionAnnotation, method, classMappingIds);
      }

View Full Code Here

Examples of com.ocpsoft.pretty.faces.config.mapping.UrlAction

   ActionExecutor executor = new ActionExecutor();

   @Test
   public void testShouldExecuteOnPostback()
   {
      UrlAction action = new UrlAction("action", PhaseId.ANY_PHASE);
      action.setOnPostback(true);
      assertTrue(executor.shouldExecute(action, javax.faces.event.PhaseId.RESTORE_VIEW, true));
   }
View Full Code Here

Examples of com.ocpsoft.pretty.faces.config.mapping.UrlAction

   }

   @Test
   public void testShouldExecuteOnNonPostback()
   {
      UrlAction action = new UrlAction("action", PhaseId.ANY_PHASE);
      action.setOnPostback(true);
      assertTrue(executor.shouldExecute(action, javax.faces.event.PhaseId.RESTORE_VIEW, false));
   }
View Full Code Here

Examples of com.ocpsoft.pretty.faces.config.mapping.UrlAction

   }

   @Test
   public void testShouldExecuteOnPhaseNonPostback()
   {
      UrlAction action = new UrlAction("action", PhaseId.RESTORE_VIEW);
      action.setOnPostback(true);
      assertTrue(executor.shouldExecute(action, javax.faces.event.PhaseId.RESTORE_VIEW, false));
   }
View Full Code Here

Examples of com.ocpsoft.pretty.faces.config.mapping.UrlAction

   }

   @Test
   public void testShouldNotExecuteOnWrongPhaseNonPostback()
   {
      UrlAction action = new UrlAction("action", PhaseId.RESTORE_VIEW);
      action.setOnPostback(true);
      assertFalse(executor.shouldExecute(action, javax.faces.event.PhaseId.APPLY_REQUEST_VALUES, false));
   }
View Full Code Here

Examples of com.ocpsoft.pretty.faces.config.mapping.UrlAction

   }

   @Test
   public void testShouldExecuteOnPhasePostback()
   {
      UrlAction action = new UrlAction("action", PhaseId.RESTORE_VIEW);
      action.setOnPostback(true);
      assertTrue(executor.shouldExecute(action, javax.faces.event.PhaseId.RESTORE_VIEW, true));
   }
View Full Code Here

Examples of com.ocpsoft.pretty.faces.config.mapping.UrlAction

   }

   @Test
   public void testShouldNotExecuteOnWrongPhasePostback()
   {
      UrlAction action = new UrlAction("action", PhaseId.RESTORE_VIEW);
      action.setOnPostback(true);
      assertFalse(executor.shouldExecute(action, javax.faces.event.PhaseId.APPLY_REQUEST_VALUES, true));
   }
View Full Code Here

Examples of com.ocpsoft.pretty.faces.config.mapping.UrlAction

   }

   @Test
   public void testShouldNotExecuteOnPostbackFalse()
   {
      UrlAction action = new UrlAction("action", PhaseId.ANY_PHASE);
      action.setOnPostback(false);
      assertFalse(executor.shouldExecute(action, javax.faces.event.PhaseId.RESTORE_VIEW, true));
   }
View Full Code Here

Examples of com.ocpsoft.pretty.faces.config.mapping.UrlAction

   }

   @Test
   public void testShouldExecuteOnPostbackFalseWhenNotPostback()
   {
      UrlAction action = new UrlAction("action", PhaseId.ANY_PHASE);
      action.setOnPostback(false);
      assertTrue(executor.shouldExecute(action, javax.faces.event.PhaseId.RESTORE_VIEW, false));
   }
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.