1 33 34 package com.icesoft.faces.component.ext.renderkit; 35 36 import com.icesoft.faces.component.IceExtended; 37 import org.w3c.dom.Element ; 38 39 import javax.faces.component.UIComponent; 40 import javax.faces.context.FacesContext; 41 import java.io.IOException ; 42 import java.util.Set ; 43 44 public class CheckboxRenderer 45 extends com.icesoft.faces.renderkit.dom_html_basic.CheckboxRenderer { 46 47 public void encodeBegin(FacesContext facesContext, UIComponent uiComponent) 48 throws IOException { 49 50 super.encodeBegin(facesContext, uiComponent); 51 } 52 53 protected void addJavaScript(FacesContext facesContext, 54 UIComponent uiComponent, Element root, 55 Set excludes) { 56 if (((IceExtended) uiComponent).getPartialSubmit()) { 57 root.setAttribute("onclick", this.ICESUBMITPARTIAL); 58 } 59 } 60 } 61 | Popular Tags |