String onclickBehaviors = getEventBehaviors(context, link, "click", null); if (onclickBehaviors != null) { onclick.append(onclickBehaviors); request = buildAjaxRequest(context, link); request = buildNonAjaxRequest(context, link, form, clientId, true); String dialogReturnBehavior = getEventBehaviors(context, link, "dialogReturn", behaviorParams); if (dialogReturnBehavior != null) { writer.writeAttribute("data-dialogreturn", dialogReturnBehavior, null); renderPassThruAttributes(context, link, HTML.LINK_ATTRS, HTML.CLICK_EVENT); renderChildren(context, link); renderChildren(context, link);
@Override public void decode(FacesContext context, UIComponent component) { CommandLink link = (CommandLink) component; if (link.isDisabled()) { return; } String param = component.getClientId(context); if (context.getExternalContext().getRequestParameterMap().containsKey(param)) { component.queueEvent(new ActionEvent(component)); } decodeBehaviors(context, component); }
String onclickBehaviors = getEventBehaviors(context, link, "click", null); if (onclickBehaviors != null) { onclick.append(onclickBehaviors); request = buildAjaxRequest(context, link, null); request = buildNonAjaxRequest(context, link, form, clientId, true); String dialogReturnBehavior = getEventBehaviors(context, link, "dialogReturn", behaviorParams); if (dialogReturnBehavior != null) { writer.writeAttribute("data-dialogreturn", dialogReturnBehavior, null); renderPassThruAttributes(context, link, HTML.LINK_ATTRS, HTML.CLICK_EVENT); renderChildren(context, link); renderChildren(context, link);
@Override public void decode(FacesContext context, UIComponent component) { CommandLink link = (CommandLink) component; if (link.isDisabled()) { return; } String param = component.getClientId(context); if (context.getExternalContext().getRequestParameterMap().containsKey(param)) { component.queueEvent(new ActionEvent(component)); } decodeBehaviors(context, component); }