4 Replies Latest reply on Nov 3, 2015 4:34 AM by Michal Petrov

    RF-13854 still present in 4.5.10.Final

    Arnie Morein Novice

      I have two rich:select's with the second dependent on the first, which is shown below. Notice the presence of the listWidth parameter as discussed here: RichFaces 4.5.10.Final VDL Documentation.

       

      <ui:decorate id="decorTrainingType" template="/layout/edit.xhtml">
          <ui:define name="label"><h:outputLabel value="#{messages.getString('infoPersonTrainingList.search.label.trainingType')}" for="searchTrainingType"/></ui:define>
                      <ui:define name="field">
              <rich:select id="searchTrainingType" value="#{infoPersonTrainingList.searchTrainingType}" 
                  listWidth="250px" valueChangeListener="#{infoPersonTrainingList.refreshClassList}"
              >
                  <f:converter converterId="codeTrainingTypeConverter" 
                      binding="#{infoPersonTrainingList.codeTrainingTypeConverter}" />
                  <f:selectItems value="#{infoPersonTrainingList.codeTrainingTypeList}"
                      var="entity" itemValue="#{entity}" 
                      itemDisabled="#{entity.inactive}" 
                      itemLabel="#{entity.descriptionForList}" />
                  <a4j:ajax event="change" execute="@this" render="decorTrainingClass,searchTrainingClass"
                  />
              </rich:select>
                      </ui:define>
          <ui:param name="required" value="false" />
          <ui:param name="fieldName" value="searchTrainingType" />
          <ui:param name="msgFieldName" value="msgSearchTrainingType" />
      </ui:decorate>                
      
      
      

       

      and yet, when the page renders, the width of the control is not effected. I replaced the listWidth with style="width:250px;" - and it worked.

       

      But I shouldn't have had to do that.