You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Mike Kienenberger (JIRA)" <de...@myfaces.apache.org> on 2005/12/12 17:17:46 UTC
[jira] Commented: (MYFACES-921) NullPointerException using inputSuggestAjax with Facelets
[ http://issues.apache.org/jira/browse/MYFACES-921?page=comments#action_12360216 ]
Mike Kienenberger commented on MYFACES-921:
-------------------------------------------
I haven't looked at InputSuggestAjax, but my guess is that suggestedItemsMethod takes a method binding. You'll need to create a Facelets tag handler to assign a method binding to the component since it's not possible for facelets to determine that information automatically (the method signature can vary even if the attribute name is known). It's pretty simple to do this.
You can find an example of creating such a tag handler for the GraphicImageDynamic component at this url:
http://wiki.java.net/bin/view/Projects/FaceletsTaglibsMyfacesSandbox
Please update that wiki with an example for InputSuggestAjax after you get it working.
> NullPointerException using inputSuggestAjax with Facelets
> ---------------------------------------------------------
>
> Key: MYFACES-921
> URL: http://issues.apache.org/jira/browse/MYFACES-921
> 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(InputSuggestAjaxRenderer.java:209)
> 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:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira