You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by an...@magnasteyr.com on 2005/10/06 10:11:35 UTC

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. 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Re: ValueChangeListener on InputSuggest -->Unable to find setter method for onchange

Posted by Sean Schofield <se...@gmail.com>.
Not a lot is going on with this component at the moment.  If you don't
get an answer you will probably have to provide your own patch.  There
is also an Ajax version that more people seem to be using at the
moment.

sean

On 10/6/05, andreas.mitter@magnasteyr.com <an...@magnasteyr.com> wrote:
>
>
> 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.
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>