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/05/25 14:54:57 UTC

[jira] Closed: (MYFACES-231) java.lang.InstantiationException with inputHidden Tag

     [ http://issues.apache.org/jira/browse/MYFACES-231?page=all ]
     
sean schofield closed MYFACES-231:
----------------------------------

     Resolution: Fixed
    Fix Version: Nightly Build

Thanks for the fix Bruno.  Looking at the SVN comments it turns out I introduced this bug while addressing a separate problem.  I forgot that the base class was abstract (my bad.)

> java.lang.InstantiationException with inputHidden Tag
> -----------------------------------------------------
>
>          Key: MYFACES-231
>          URL: http://issues.apache.org/jira/browse/MYFACES-231
>      Project: MyFaces
>         Type: Bug
>     Versions: Nightly Build
>  Environment: Tomcat 5.0, win2k, jdk 1.4.2_06
>     Reporter: Brandon Goodin
>     Assignee: sean schofield
>      Fix For: Nightly Build
>  Attachments: HtmlInputHiddenTag_PATCH.txt, myfaces_html_tld_PATCH.txt
>
> An abstract class is specified for the inputHidden tag in the myfaces_html.tld and an InstantiationException is being thrown on the JSP because it cannot instantiate an abstract class.
> java.lang.InstantiationException
> 	at sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(InstantiationExceptionConstructorAccessorImpl.java:30)
> 	at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
> --- myfaces_html.tld fragment ---
> <!-- input_hidden -->
>     <tag>
>         <name>inputHidden</name>
>         <tag-class>org.apache.myfaces.taglib.html.HtmlInputHiddenTagBase</tag-class>
>         <body-content>JSP</body-content>
>         &ui_input_attributes;
>         <!-- HiddenRenderer attributes -->
>     </tag>
> The only implementation of the abstract HtmlInputHiddenTagBase that i could find is org.apache.myfaces.taglib.html.ext.HtmlInputHiddenTag. I am assuming this is suppossed to be specified as the tag-class rather than the HtmlInputHiddenTagBase.
> Thanks

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