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)" <my...@incubator.apache.org> on 2005/07/13 18:17:29 UTC

[jira] Updated: (MYFACES-330) dataScroller reports wrong error when for attrib unresolvable

     [ http://issues.apache.org/jira/browse/MYFACES-330?page=all ]

Mike Kienenberger updated MYFACES-330:
--------------------------------------

    Attachment: HtmlDataScroller.patch.txt

Fix for "for" resolution failures.

> dataScroller reports wrong error when for attrib unresolvable
> -------------------------------------------------------------
>
>          Key: MYFACES-330
>          URL: http://issues.apache.org/jira/browse/MYFACES-330
>      Project: MyFaces
>         Type: Bug
>     Versions: Nightly Build
>     Reporter: Mike Kienenberger
>     Priority: Minor
>  Attachments: HtmlDataScroller.patch.txt
>
> If the "for" attribute for dataScroller is unresolvable, the following error is thrown.
> uiComponent referenced by attribute dataScroller@for must be of type javax.faces.component.UIData
> java.lang.IllegalArgumentException: uiComponent referenced by attribute dataScroller@for must be of type javax.faces.component.UIData
> Here's a patch that improves the output of the above message: 
> Ie:
> java.lang.IllegalArgumentException: uiComponent referenced by attribute dataScroller@for = 'form' must be of type javax.faces.component.UIData, not type javax.faces.component.html.HtmlForm
> and also throws an exception (rather than just logging a warning) if the for attribute is unresolved (otherwise, myfaces will crash later with an exception that is more difficult to track down.
> java.lang.IllegalArgumentException: could not find UIData referenced by attribute dataScroller@for = 'form'

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