4 Replies Latest reply on May 8, 2009 7:16 AM by Nick Belaevski

    usingSuggestObjects=

    dragos cernahoschi Newbie

      Caused by: javax.faces.FacesException: Error in conversion Java Object to JavaScript
      at org.ajax4jsf.javascript.ScriptUtils.toScript(ScriptUtils.java:146)
      at org.ajax4jsf.javascript.ScriptUtils.toScript(ScriptUtils.java:86)
      at org.ajax4jsf.javascript.ScriptUtils.toScript(ScriptUtils.java:141)
      ... 52 more
      Caused by: javax.faces.FacesException: Error in conversion Java Object to JavaScript
      at org.ajax4jsf.javascript.ScriptUtils.toScript(ScriptUtils.java:146)
      at org.ajax4jsf.javascript.ScriptUtils.toScript(ScriptUtils.java:141)
      ... 54 more
      Caused by: java.lang.NoSuchMethodException: Property 'handler' has no getter method
      at org.apache.commons.beanutils.PropertyUtilsBean.getSimpleProperty(PropertyUtilsBean.java:1127)
      at org.apache.commons.beanutils.PropertyUtilsBean.getNestedProperty(PropertyUtilsBean.java:686)
      at org.apache.commons.beanutils.PropertyUtilsBean.getProperty(PropertyUtilsBean.java:715)
      at org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java:290)
      at org.ajax4jsf.javascript.ScriptUtils.toScript(ScriptUtils.java:141)
      ... 55 more

      The code is the following:

      
      <rich:suggestionbox for="clientName" suggestionAction="#{invoicing.filterClientsByName}" usingSuggestObjects="true"
       onobjectchange="test(suggestion)" var="client" minChars="3" width="227">
       <a:support event="onselect" ajaxSingle="true" immediate="true" process="clientName"
       action="#{invoicing.processClient}" reRender="clientForm" focus="next">
       <f:setPropertyActionListener value="#{client}" target="#{invoicing.client}" />
       </a:support>
       <h:column><h:outputText value="#{client.clientName}"/> </h:column>
      </rich:suggestionbox>