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

Darren Jensen commented on MYFACES-703:
---------------------------------------

I have the same issue.  I am creating the working the extended HtmlDataTable.  
I am working directly with java class, avoiding the tag files.

In order for the org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer to be 
called, I have to set the rendererType manually like this:

dt.setRendererType("org.apache.myfaces.Table");

If I don't set the rendererType, the sun RI renderer is used.

I believe this is a faces-config.xml issue.  Here is the sun RI config entry:

  <component>

    <description>
      <p>Represents an HTML <code>form</code> element.  Child input components
      will be submitted unless they have been disabled.</p>
    </description>
    <display-name>Form</display-name>
    <component-type>javax.faces.HtmlForm</component-type>
    <component-class>javax.faces.component.html.HtmlForm</component-class>

    &uiform-props;
    &core-props;
    &events-props;
    &i18n-props;
    &form-form-props;

    <component-extension>
      <base-component-type>javax.faces.Form</base-component-type>
      <renderer-type>javax.faces.Form</renderer-type>
    </component-extension>

  </component>

Here is the myfaces config entry:

  <component>
    <component-type>org.apache.myfaces.HtmlDataTable</component-type>
    
<component-class>org.apache.myfaces.component.html.ext.HtmlDataTable</component-class>
  </component>

It appears that the myfaces needs the <component-extension> as well.

> Invalid rederer under RI
> ------------------------
>
>          Key: MYFACES-703
>          URL: http://issues.apache.org/jira/browse/MYFACES-703
>      Project: MyFaces
>         Type: Bug
>   Components: Tomahawk (RI Compatability)
>     Versions: 1.1.0
>  Environment: Tomcat 5.0.28, JDK 1.4.2_03, Oracle ADF present, RI 1.1.01
>     Reporter: David Markley

>
> I've put the latest tomahawk.jar file in my web applications WEB-INF/lib 
> directory and added the reference to the head of my JSP:
> <%@ taglib uri="http://myfaces.apache.org/tomahawk"; prefix="t"%>
> No matter what Tomahawk input tag I try, I always get an exception of the 
> form:
> Exception: Renderer of type "org.apache.myfaces.Date" is not supported for 
> family javax.faces.Input
> I've tried invalid tags like <t:flub/> to verify that it is parsing the 
> taglib properly. I get the expected "tag not defined" type of error for this.

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