2 Replies Latest reply on Jun 6, 2008 9:23 AM by booroo

    rich:comboBox no value after the 1.submit

    booroo

      Hi there,

      I'm a richfaces beginner, so my question might be silly, sorry.
      After submitting my form I have no value in my comboBox. After the second submit everything is ok?

      What's am I doing wrong? Does anybody have some example code?
      Many thanks for helping!




      test.jsp:

      <a4j:commandButton action="#{reportsFilterController.search}"
      value="search" />
      .......

      <rich:comboBox
      value="#{reportsFilterController.applicationFilter}"
      directInputSuggestions="true">
      <f:selectItems value="#{applicationBean.options}" />
      </rich:comboBox>

      ....

      ***************
      ReportsFilterController.java:

      ......
      public String search() {
      System.out.println(applicationFilter);

      return "success";
      }
      ......

        • 1. Re: rich:comboBox no value after the 1.submit
          ilya_shaikovsky

          Not clear for me why you return outcome in your action.. Maybe you should reRender just some result table?

          And if you have problems with submitting values ni general - do not forget to insert rich:messages to your pages in order to check some validation/conversion errors.

          • 2. Re: rich:comboBox no value after the 1.submit
            booroo

            thank you for your help!

            I've a filtermask with some search criteria. the input values of each combobox will be stored in a bean. Depending on the input there are different datatables shown with different attributes.

            the outcome in the action was just for a test and is useless.