myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Mahoney (JIRA)" <>
Subject [jira] Commented: (MYFACES-921) NullPointerException using inputSuggestAjax with Facelets
Date Fri, 16 Dec 2005 16:46:46 GMT
    [ ] 

Peter Mahoney commented on MYFACES-921:

I am having problems implementing the component handler. I have started by assuming the two
argument method  version, but I do not get the MethodBinding property set. Here is the code
so far:

public class InputSuggestAjaxHandler extends HtmlComponentHandler {

	public InputSuggestAjaxHandler(ComponentConfig tagConfig) {

	protected MetaRuleset createMetaRuleset(Class type)
        MetaRuleset m = super.createMetaRuleset(type);

        return m;

	private MetaRule getSuggestedItemsMethodRule() {
		MethodRule rule = new MethodRule("getSuggestedItemsMethod", List.class, new Class[]{String.class,

		return rule;

I don't think I understand quite what should be happening. When should the MethodBinding property
actually set?


> NullPointerException using inputSuggestAjax with Facelets
> ---------------------------------------------------------
>          Key: MYFACES-921
>          URL:
>      Project: MyFaces
>         Type: Bug
>   Components: Sandbox
>     Versions: Nightly
>     Reporter: Peter Mahoney

> The following exception is generated using inputSuggestAjax with Facelets:
> 005-12-09 11:08:58,776 ERROR [localhost].[/webmail].[FacesServlet]:253 http-8080-Processor25
 -> Servlet.service() for servlet FacesServlet threw exception
> java.lang.NullPointerException
> 	at org.apache.myfaces.custom.inputsuggestajax.InputSuggestAjaxRenderer.encodeAjax(
> It appears that InputSuggestAjaxTag uses its setSuggestedItemsMethodProperty method to
set the suggestedItemsMethod property in the component, rather than this being carried out
by the component itself.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message