4 Replies Latest reply on Oct 6, 2007 6:05 PM by fcheng

    When first time reRender, rich:inputNumberSlider disappeared

    fcheng

      Hi,

      When the first time reRender the page, the inputnumberslider disappeared and the toolBarGroup size shrunk. If reRender again, the page is back to normal. It happens only at the first time.

      Browser: IE 6
      lib: richfaces-3.0.1.jar
      jsf-facelets-1.1.13.jar
      ajax4jsf-1.1.1.jar
      a4j-portlet.jar

      I tried richfaces 3.1.0, still have the same problem. Please help!

      Here is my code:
      <html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"
      xmlns:rich="http://richfaces.ajax4jsf.org/rich">
      <f:view>
      <h:form id="myform">
      <h:panelGrid columns="1" border="0" columnClasses="top">
      <h:selectOneMenu id="mylist" value="#{bean.item}">
      <a4j:support event="onchange" action="#{bean.loadme}" reRender="grid1" ajaxSingle="true"/>
      <f:selectItems value="#{bean.list}"/>
      </h:selectOneMenu>
      <h:panelGrid id="grid1" columns="1" border="0">
      <rich:toolBar id="quality" height="30" itemSeparator="line" width="100">
      <rich:toolBarGroup style="#{bean.quality1}" itemSeparator="line" width="30">
      <h:outputText value="A"/>
      </rich:toolBarGroup>
      <rich:toolBarGroup style="#{bean.quality2}" itemSeparator="line" width="30">
      <h:outputText value="B"/>
      </rich:toolBarGroup>
      <rich:toolBarGroup style="#{bean.quality3}" itemSeparator="line" width="30">
      <h:outputText value="C"/>
      </rich:toolBarGroup>
      </rich:toolBar>
      <rich:inputNumberSlider id="qualityslider" minValue="0" width="90" maxValue="4" step="1" enableManualInput="false"
      showInput="false" showToolTip="false" showBoundaryValues="false" value="#{bean.qualitySliderIndex}">
      <a4j:support event="onchange" action="#{bean.updateQuality}" reRender="quality" ajaxSingle="true"/>
      </rich:inputNumberSlider>
      </h:panelGrid>
      </h:panelGrid>
      </h:form>
      </f:view>