You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "sean schofield (JIRA)" <my...@incubator.apache.org> on 2005/08/01 20:55:35 UTC

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

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

sean schofield commented on MYFACES-330:
----------------------------------------

Patch has been applied.  FYI - in the future please omit your local path info from the patch (ex. E:/workspace/myfaces.current/)

> 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
>     Assignee: sean schofield
>     Priority: Minor
>      Fix For: Nightly Build
>  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