0 Replies Latest reply on Oct 18, 2007 11:20 AM by kannattaa

    binding rich's components problem

    kannattaa

      hello
      i have the following problem:

      this code works fine:

      faces-config.xml:

      <managed-bean>
       <managed-bean-name>bean</managed-bean-name>
       <managed-bean-class>package.Bean</managed-bean-class>
       <managed-bean-scope>session</managed-bean-scope>
      </managed-bean>


      Bean.java:
      import javax.faces.component.UIInput;
      public class Bean {
       private UIInput input;
      
       public UIInput getInput() {
       return input;
       }
      
       public void setInput(UIInput input) {
       this.input = input;
       }
      }


      test.xhtml:
      <h:form>
       <h:inputText binding="#{bean.input}"/>
      </h:form>


      but if i change h:inputText to any rich component, for instance, inputNumberSpinner, the "deployment failed" error occurs while deploying :

      Bean.java:
      import org.richfaces.component.UIInputNumberSpinner;
      public class Bean {
       private UIInputNumberSpinner inputNumberSpinner;
      
       public UIInputNumberSpinner getInputNumberSpinner() {
       return inputNumberSpinner;
       }
      
       public void setInputNumberSpinner(UIInputNumberSpinner inputNumberSpinner) {
       this.inputNumberSpinner = inputNumberSpinner;
       }
      }


      test.xhtml:
      <a4j:form>
       <rich:inputNumberSpinner binding="#{data.inputNumberSpinner}"/>
      </a4j:form>


      The problem occurs only with binding of rich components, without it everything is ok.
      I have richfaces 3.1.2.GA. Other libraries in dependencies are the latest releases too.

      what is the problem in? did anybody have it?