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

Bruno Aranda updated MYFACES-231:
---------------------------------

    Attachment: HtmlInputHiddenTag_PATCH.txt
                myfaces_html_tld_PATCH.txt

What Brandon says is true. When the myfaces extended component for inputHidden 
was created, the standard component was eliminated and in the tld appears the 
reference to the HtmlInputHidenTagBase superclass, that is abstract and cannot 
be instantiated. These two patches revert the problem: one is the 
org.apache.myfaces.taglib.html.HtmlInputHiddenTag   class (copied and adapted 
from org.apache.myfaces.taglib.html.ext.HtmlInputHiddenTag), and the other 
patch is the update of the myfaces_html.tld :)

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

Reply via email to