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 45 public class MenuRenderer 46 extends com.icesoft.faces.renderkit.dom_html_basic.MenuRenderer { 47 48 public void encodeEnd(FacesContext facesContext, UIComponent uiComponent) 49 throws IOException { 50 51 super.encodeEnd(facesContext, uiComponent); 52 } 53 54 protected void addJavaScript(FacesContext facesContext, 55 UIComponent uiComponent, Element root, 56 String currentValue, Set excludes) { 57 if (((IceExtended) uiComponent).getPartialSubmit()) { 58 root.setAttribute(getEventType(uiComponent),"setFocus('');" + 59 this.ICESUBMITPARTIAL); 60 excludes.add(getEventType(uiComponent)); 61 } 62 } 63 } | Popular Tags |