Hi all!
 
I have tried to implement the InputSuggestComponent but I'm confused with the following errors.
I would be terribly grateful, if somebody could help me:
 
 
1.)When I choose an entry from the suggested entries in the list of the SuggestBox, I get the following ID: e_choiceEntry. How can I get rid of the String e_choice and only get the String, which the user choosed? Is this String added on purpose?
 
2.)When I enter a new entry in the suggest box (so I don't choose an existing entry) I get the ID -1 as result after I submit the form. Is it possible, to get the value the user entered into the suggestbox?
 
3.) I have tried to implement a ValueChangeListener to the suggestBox, but I get the following 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)


I have tried to add  a setter method to the class  org.apache.myfaces.taglib.html.HtmlComponentTagBase, but I got the some error stack afterwards?

 

My Code for the inputsuggestbox is the following:


          <x:inputSuggest binding="#{newPartnerDto.ITfname}" value="#{newPartnerDto.fname}" required="true" id="fname">
               <f:selectItems value="#{queryHelper.tm}" />
          </x:inputSuggest>

 

I would be terribly grateful, if anybody could help me!!!

 

THX,

Regards, Andy

 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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