Package org.apache.myfaces.trinidad.component

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


      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);
     
      UIComponent cmp =
          ComponentUtils.findRelativeComponent(button2, "commandButton1");
      // old and new are the same
      assertEquals(cmp, button1);
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);
      UIXPanel tableChild = new UIXPanel();
      tableChild.setId("tableChildId");
      table1.getChildren().add(tableChild);
     
     
      UIComponent cmp =
        ComponentUtils.findRelativeComponent(table1,"::commandButton1");
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 input1 = new UIXInput(); input1.setId("input1")
    ncRoot.getChildren().add(nc);
    nc.getChildren().add(inputA);
    nc.getChildren().add(panel);
    panel.getChildren().add(input1);
     
    // input1's parent is panel. panel's parent is nc1 (::) goes there. ::: goes to ncRoot
    // in old way. New way pops OUT of nc1 with '::'.
    UIComponent cmp =
      ComponentUtils.findRelativeComponent(input1,":::commandButton1");
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

    {
      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

  public void testNested()
  {
    TestNamingContainer a = new TestNamingContainer(); a.setId("a");
    TestNamingContainer b = new TestNamingContainer(); b.setId("b");
    TestNamingContainer d = new TestNamingContainer(); d.setId("d");
    UIXPanel e = new UIXPanel(); e.setId("e");
    UIXPanel g = new UIXPanel(); g.setId("g");
    a.getChildren().add(b);
    b.getChildren().add(d);
    b.getChildren().add(g);
    d.getChildren().add(e);
   
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.