Package javax.faces.component

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


                    UICommand childCommand = (UICommand) child;
                    ActionEvent actionEvent = new ActionEvent(childCommand);
                    // if the immediate attribute is set than event should be broadcasted on the second phase APPLY_REQUEST_VALUES
                    // in other case it should be queued to be executed on
                    if(isImmediate()){
                        childCommand.broadcast(actionEvent);
                    } else {
                        actionEvent.queue();
                    }
                    break;
                }
View Full Code Here


    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

                    UICommand childCommand = (UICommand) child;
                    ActionEvent actionEvent = new ActionEvent(childCommand);
                    // if the immediate attribute is set than event should be broadcasted on the second phase APPLY_REQUEST_VALUES
                    // in other case it should be queued to be executed on
                    if(isImmediate()){
                        childCommand.broadcast(actionEvent);
                    } else {
                        actionEvent.queue();
                    }
                    break;
                }
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 {
        int _first;
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.