private String getType(UIComponent uiComponent) { if (uiComponent instanceof HtmlCommandButton) { return ((HtmlCommandButton)uiComponent).getType(); } return (String)uiComponent.getAttributes().get(org.apache.myfaces.shared_impl.renderkit.JSFAttr.TYPE_ATTR); }
private String getType(UIComponent uiComponent) { if (uiComponent instanceof HtmlCommandButton) { return ((HtmlCommandButton) uiComponent).getType(); } return (String) uiComponent.getAttributes().get(org.apache.myfaces.shared_tomahawk.renderkit.JSFAttr.TYPE_ATTR); }
private String getType(UIComponent uiComponent) { if (uiComponent instanceof HtmlCommandButton) { return ((HtmlCommandButton)uiComponent).getType(); } return (String)uiComponent.getAttributes().get(org.apache.myfaces.shared.renderkit.JSFAttr.TYPE_ATTR); }
private String getType(UIComponent uiComponent) { if (uiComponent instanceof HtmlCommandButton) { return ((HtmlCommandButton) uiComponent).getType(); } return (String) uiComponent.getAttributes().get(org.apache.myfaces.shared_orchestra.renderkit.JSFAttr.TYPE_ATTR); }
private String getType(UIComponent uiComponent) { if (uiComponent instanceof HtmlCommandButton) { return ((HtmlCommandButton)uiComponent).getType(); } return (String)uiComponent.getAttributes().get(org.apache.myfaces.shared_impl.renderkit.JSFAttr.TYPE_ATTR); }
private String getType(UIComponent uiComponent) { if (uiComponent instanceof HtmlCommandButton) { return ((HtmlCommandButton)uiComponent).getType(); } return (String)uiComponent.getAttributes().get(org.apache.myfaces.shared.renderkit.JSFAttr.TYPE_ATTR); }
private String getType(UIComponent uiComponent) { if (uiComponent instanceof HtmlCommandButton) { return ((HtmlCommandButton)uiComponent).getType(); } return (String)uiComponent.getAttributes().get(org.apache.myfaces.shared_impl.renderkit.JSFAttr.TYPE_ATTR); }
protected void decodeHtmlCommandButton(FacesContext context, HtmlCommandButton htmlCommandButton) { Map paramMap = context.getExternalContext().getRequestParameterMap(); String clientId = htmlCommandButton.getClientId(context); if (paramMap.containsKey(clientId) || paramMap.containsKey(clientId + ".x") || paramMap.containsKey(clientId + ".y")) { if (JsfConstants.RESET_VALUE.equalsIgnoreCase(htmlCommandButton .getType())) { } else { enqueueEvent(htmlCommandButton); } } }
protected void encodeHtmlCommandButtonEnd(FacesContext context, HtmlCommandButton htmlCommandButton) throws IOException { ResponseWriter writer = context.getResponseWriter(); writer.startElement(JsfConstants.INPUT_ELEM, htmlCommandButton); final String image = getImage(context, htmlCommandButton); final boolean isImageType = StringUtil.isNotBlank(image); String type; if (isImageType) { type = JsfConstants.IMAGE_VALUE; } else { type = htmlCommandButton.getType(); } RendererUtil.renderAttribute(writer, JsfConstants.TYPE_ATTR, type); final String id = getIdForRender(context, htmlCommandButton); RendererUtil .renderIdAttributeIfNecessary(writer, htmlCommandButton, id); RendererUtil.renderAttribute(writer, JsfConstants.NAME_ATTR, htmlCommandButton.getClientId(context)); if (isImageType) { RendererUtil.renderAttribute(writer, JsfConstants.SRC_ATTR, image, JsfConstants.IMAGE_ATTR); } else { renderValueAttribute(context, htmlCommandButton, writer); } renderRemainAttributes(htmlCommandButton, writer, ignoreComponent); writer.endElement(JsfConstants.INPUT_ELEM); }