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 [EMAIL PROTECTED] must be of type 
javax.faces.component.UIData
java.lang.IllegalArgumentException: uiComponent referenced by attribute [EMAIL 
PROTECTED] 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 [EMAIL 
PROTECTED] = '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 [EMAIL PROTECTED] = '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

Reply via email to