Title: ValueChangeListener on InputSuggest -->Unable to find setter method for onchange
The next problem I have with the InputSuggest Component is the following.
 
I have a form where the user can set several data,
 
If the user enters a String (into the inputSuggest Box), which isn't already in the List of the InputSuggestButton, I get -1 as result...
Is it possible to get the String the user entered?
 
 
 
I have also tried to solve the problem at the bottom and I added a setter Method to the class org.apache.myfaces.taglib.html.HtmlComponentTagBase
but that didn't solve my problem. I still get the same message? Where else do I have to add a setter Method for onchange?
 
 
Thx for your help!
-----Ursprüngliche Nachricht-----
Von: Mitter Andreas, IDE
Gesendet: Donnerstag, 6. Oktober 2005 10:12
An: users@myfaces.apache.org
Betreff: ValueChangeListener on InputSuggest -->Unable to find setter method for onchange

Hi all.

I'm using a InputSuggest Box from the Sandbox Component.
Within the InputSuggest I want to use a ValueChangeListener... When the page is loaded I get the following error Stack:

exception

javax.servlet.ServletException: /newpartner.jsp(132,10) Unable to find setter method for attribute: onchange
        javax.faces.webapp.FacesServlet.service(FacesServlet.java:109)
        org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)

root cause

javax.faces.FacesException: /newpartner.jsp(132,10) Unable to find setter method for attribute: onchange
        org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:421)
        org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
        org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:330)
        javax.faces.webapp.FacesServlet.service(FacesServlet.java:95)
        org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)

This is my code:

<x:inputSuggest value="#{newPartnerDto.gwname}"  required="true" id="gateway" immediate="true" onchange="submit()"
 valueChangeListener="#{newPartnerDto.selectgateway}">
        <f:selectItems value="#{queryHelper.tmgateway}" />
</x:inputSuggest>


What is the problem? Without the ValueChangeListener it works fine...Was the setter method for onchange forgotten?

Thx! Regards


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify your system manager. This footnote also confirms that this email message has been swept for the presence of computer viruses. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify your system manager. This footnote also confirms that this email message has been swept for the presence of computer viruses. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Reply via email to