0 Replies Latest reply on Dec 29, 2010 12:35 PM by Karl Krasnowsky

    Default state of input text in rich:combobox

    Karl Krasnowsky Newbie

      A UI nit here.

      Using a rich:combobox on a form, I've defined it thustly in the jsp:


      <rich:comboBox value="#{myBean.clientCompanyName}"
                                             defaultLabel="-- Select One --"  disabled="#{myBean.comboDisabled}">
          <a4j:support ajaxSingle="true" event="onselect" reRender="enterbutton"/>
          <f:selectItems value="#{
      myBean.comboItems}" />


      On initialization I set isComboDisabled to false, so the control is initially functioning, e.g., the input field as well as the arrow to select an item from the list is available.

      However, the defaultLabel that is shown in the input is shown in a disabled text format. Through Firebug I can clearly see this as the input field has rich-combobox-font-disabled and rich-combobox-input-disabled styles applied.


      I have an event that will trigger it from enabled to disabled through an a4j event process and once I use this it will render itself as not disabled (as I would have expected it to initially).


      Is this by design? I would have expect that if the combobox control was enabled, as well should be the associated view of the input text.


      Is there some method available for me to force this to perform as I would expect?