sventon subversion web client - http://www.sventon.org
[show recent changes]
 
  Help
HEAD
Rev: 24379 - http://anonsvn.icesoft.org/repo / icefaces / trunk / icefaces / component / src / com / icesoft / faces / component / ext / renderkit / ListboxRenderer.java
Unified Diff View - ListboxRenderer.java
/icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/ext/renderkit/ListboxRenderer.java @ revision 24378
/icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/ext/renderkit/ListboxRenderer.java @ revision 24379
@@ -37,8 +37,8 @@ import org.w3c.dom.Element; import javax.faces.component.UIComponent; -import javax.faces.component.html.HtmlSelectOneListbox; import javax.faces.component.html.HtmlSelectManyListbox; +import javax.faces.component.html.HtmlSelectOneListbox; import javax.faces.context.FacesContext; import java.util.Set; @@ -51,16 +51,15 @@         if (((IceExtended) uiComponent).getPartialSubmit()) {             boolean isSelectListbox =                     (uiComponent instanceof HtmlSelectOneListbox) || -                    (uiComponent instanceof HtmlSelectManyListbox); +                            (uiComponent instanceof HtmlSelectManyListbox);             if (isSelectListbox) {                 Number partialSubmitDelay = (Number)                         uiComponent.getAttributes().get("partialSubmitDelay");                 root.setAttribute(getEventType(uiComponent), -                        "Ice.selectChange(form,this,event,"+ -                        partialSubmitDelay+");"); -            } -            else { -                root.setAttribute(getEventType(uiComponent), ICESUBMITPARTIAL); +                        "setFocus('');Ice.selectChange(form,this,event," + +                                partialSubmitDelay + ");"); +            } else { +                root.setAttribute(getEventType(uiComponent), "setFocus('');" + ICESUBMITPARTIAL);             }             excludes.add(getEventType(uiComponent));             //bug 419


feed icon

sventon 2.5.1