Package org.apache.myfaces.trinidad.component

Examples of org.apache.myfaces.trinidad.component.UIXPanel


    // "d" has children "e" and "f"
    // "c" has children "h" and "i"
    // Components "b" and "d" implement NamingContainer
    UIViewRoot a = new UIViewRoot(); a.setId("a");
    UIForm b = new UIForm(); b.setId("b");
    UIXPanel c = new UIXPanel(); c.setId("c");
    TestNamingContainer d = new TestNamingContainer(); d.setId("d");
    UIXPanel e = new UIXPanel(); e.setId("e");
    UIXPanel f = new UIXPanel(); f.setId("f");
    UIXPanel g = new UIXPanel(); g.setId("g");
    UIXPanel h = new UIXPanel(); h.setId("h");
    UIXPanel i = new UIXPanel(); i.setId("i");
    a.getChildren().add(b);
    a.getChildren().add(c);
    b.getChildren().add(d);
    b.getChildren().add(g);
    c.getChildren().add(h);
View Full Code Here


      TestNamingContainer nc1 = new TestNamingContainer();
      nc1.setId("nc1");

         
      UIXInput inputA = new UIXInput(); inputA.setId("inputA");
      UIXPanel panel1 = new UIXPanel(); panel1.setId("panel1");
      UIXInput input1 = new UIXInput(); input1.setId("input1");
      ncRoot.getChildren().add(nc1);
      nc1.getChildren().add(inputA);
      nc1.getChildren().add(panel1);
      panel1.getChildren().add(input1);
     
    /*<f:subview id="ncRoot">
     *  <commandButton1>
     *  <commandButton2>
     *   <f:subview id="nc1">
View Full Code Here

    {
      UIXCommand button1 = new UIXCommand();
      button1.setId("commandButton1");
      UIXCommand button2 = new UIXCommand();
      button2.setId("commandButton2");
      UIXPanel rootPanel = new UIXPanel();
      rootPanel.getChildren().add(button1);
      rootPanel.getChildren().add(button2);
     
      String[] triggers = {"commandButton1"};
      // add partialTriggers on button2
      context.addPartialTriggerListeners(button2, triggers);
      // now make sure the partialTargets is what we expect
View Full Code Here

      UIXCommand button1 = new UIXCommand();
      button1.setId("commandButton1");
 
      UIXTable table1 = new UIXTable();
      table1.setId("table1");
      UIXPanel rootPanel = new UIXPanel();
      rootPanel.getChildren().add(button1);
      rootPanel.getChildren().add(table1);
     
      String[] triggers = {"::commandButton1"};
      // add partialTriggers on button2
      context.addPartialTriggerListeners(table1, triggers);
      // now make sure the partialTargets is what we expect
View Full Code Here

      ncRoot.getChildren().add(button1);
      ncRoot.getChildren().add(button2);
     
      TestNamingContainer nc = new TestNamingContainer(); nc.setId("nc1");
      UIXInput inputA = new UIXInput(); inputA.setId("inputA");
      UIXPanel panel = new UIXPanel(); panel.setId("panel1");
      UIXInput input = new UIXInput(); input.setId("input1");
      ncRoot.getChildren().add(nc);
      nc.getChildren().add(inputA);
      nc.getChildren().add(panel);
      panel.getChildren().add(input);
     
      // test input partialTriggers="::commandButton1"
      String[] triggers = {"::commandButton1"};
      context.addPartialTriggerListeners(input, triggers);
      Set<UIComponent> set = context.getPartialTargets(button1);
View Full Code Here

  /**
   * Tests the apply-request-values lifecycle phase.
   */
  public void testApplyRequestValues()
  {
    UIXPanel component = createTestComponent();
    doTestApplyRequestValues(component);

    component = createTestComponent();
    component.setRendered(false);
    doTestApplyRequestValues(component);
  }
View Full Code Here

  /**
   * Tests the process-validations lifecycle phase.
   */
  public void testProcessValidations()
  {
    UIXPanel component = createTestComponent();
    doTestProcessValidations(component);
  }
View Full Code Here

  /**
   * Tests the update-model-values lifecycle phase.
   */
  public void testUpdateModelValues()
  {
    UIXPanel component = createTestComponent();
    doTestUpdateModelValues(component);
  }
View Full Code Here

  /**
   * Tests the invoke-application lifecycle phase.
   */
  public void testInvokeApplication()
  {
    UIXPanel component = createTestComponent();
    doTestInvokeApplication(component, null);
  }
View Full Code Here

   *
   * @throws IOException  when test fails
   */
  public void testRenderResponse() throws IOException
  {
    UIXPanel component = createTestComponent();
    doTestRenderResponse(component);
  }
View Full Code Here

TOP

Related Classes of org.apache.myfaces.trinidad.component.UIXPanel

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.