protected void findChildParameters() { if (allParameters == null || assignableParameters == null || methodParameters == null) { allParameters = new ArrayList<AbstractParameter>(); assignableParameters = new ArrayList<AssignableParameter>(); methodParameters = new ArrayList<MethodParameter>(); for (final UIComponent child : super.getChildren()) { if (child instanceof AbstractParameter) { allParameters.add((AbstractParameter) child); if (child instanceof AssignableParameter) { assignableParameters.add((AssignableParameter) child); } else { if (child instanceof MethodParameter) { methodParameters.add((MethodParameter) child); } } } } } }
protected void validateUICommand(final ValidationContext validationContext, final UICommand command, final Clicked clicked) { validationContext.acceptParameter(command.getClientId(validationContext.getFacesContext()), command.getValue()); if (clicked.getParamName() != null) { validationContext.acceptParameter(clicked.getParamName(), validationContext.getFacesContext().getExternalContext().getRequestParameterMap().get(clicked.getParamName())); } // Check CommandLink's parameters for (UIComponent childComp : command.getChildren()) { if (childComp instanceof UIParameter) { UIParameter param = (UIParameter) childComp; processParam(validationContext, param, clicked); } } }
expandControl.getChildren().clear(); expandControl.setId(TOGGLE_ID); param.setName(tree.getId() + NamingContainer.SEPARATOR_CHAR + NAV_COMMAND); param.setValue(tree.getNodeId()); expandControl.getChildren().add(param); expandControl.getChildren().add(image);