myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Kienenberger (JIRA)" <myfaces-...@incubator.apache.org>
Subject [jira] Updated: (MYFACES-330) dataScroller reports wrong error when for attrib unresolvable
Date Wed, 13 Jul 2005 16:17:29 GMT
     [ 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


Mime
View raw message