Package javax.faces.component

Examples of javax.faces.component.UICommand.addActionListener()


    param.setAssignToBinding(expression);
    Bean bean = new Bean();
    request.setAttribute("bean", bean);
    request.addParameter("param", "123");
    externalContext.getRequestParameterMap().put("param", "123");
    command.addActionListener(param);
    command.broadcast(new ActionEvent(command));
    assertEquals(123, bean.getFirst());
  }

}
View Full Code Here


          facesContext, UICommand.COMPONENT_TYPE,
          TobagoConstants.RENDERER_TYPE_LINK, commands[i].getCommand());
      toolbar.getChildren().add(command);

      for (ActionListener listener : getActionListeners()) {
        command.addActionListener(listener);
      }
      command.setActionListener(getActionListener());
      command.getAttributes().put(
          TobagoConstants.ATTR_IMAGE, "image/tobago.tree." + commands[i].getCommand() + ".gif");
      String title = ResourceManagerUtil.getPropertyNotNull(facesContext, "tobago",
View Full Code Here

          facesContext, UICommand.COMPONENT_TYPE,
          TobagoConstants.RENDERER_TYPE_LINK, commands[i].getCommand());
      toolbar.getChildren().add(command);

      for (ActionListener listener : getActionListeners()) {
        command.addActionListener(listener);
      }
      command.setActionListener(getActionListener());
      command.getAttributes().put(
          TobagoConstants.ATTR_IMAGE, "image/tobago.tree." + commands[i].getCommand() + ".gif");
      String title = ResourceManagerUtil.getPropertyNotNull(facesContext, "tobago",
View Full Code Here

          facesContext, UICommand.COMPONENT_TYPE, RENDERER_TYPE_LINK);
      toolbar.getChildren().add(command);
      command.setId(commands[i].getCommand());

      for (ActionListener listener : getActionListeners()) {
        command.addActionListener(listener);
      }
      command.setActionListener(getActionListener());
      command.getAttributes().put(
          ATTR_IMAGE, "image/tobago.tree." + commands[i].getCommand() + ".gif");
      String title = ResourceManagerUtil.getPropertyNotNull(facesContext, "tobago",
View Full Code Here

        Bean bean = new Bean();

        facesContext.getExternalContext().getRequestMap().put("bean", bean);
        this.connection.addRequestParameter("param", "123");
        command.addActionListener(param);
        command.broadcast(new ActionEvent(command));
        assertEquals(123, bean.getFirst());
    }

    public static class Bean implements Serializable {
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.