Title: Nachricht
Like you I just switched form 1.0.9 to 1.1.0.
 
I deleted all myfaces-jars and replaced them with "myfaces-all.jar" of 1.1.0, updated the tld-references and cleaned my build-directory.
 
Then I had the same error but for other tags, not the stylesheet one but with t:column. I now solved it, I am writing so much because I am interested where the reference comes from.
 
Works fine with 1.1.0
<t:dataTable  var="list"
             styleClass="standardTable"
             headerClass="standardTable_SortHeader"
             footerClass="standardTable_Footer"
             rowClasses="standardTable_Row1,standardTable_Row2"
             value="#{xxx.yyy}">

    <h:column >
        <f:facet name="header">
            <h:outputText value="#{bundle.currentLoansColumTitle_ItemName}"/>
        </f:facet>
        <h:outputText value="#{list.title}"/>
    </h:column >
</t:dataTable>
 
Does not work with 1.1.0
<t:dataTable  var="list"
             styleClass="standardTable"
             headerClass="standardTable_SortHeader"
             footerClass="standardTable_Footer"
             rowClasses="standardTable_Row1,standardTable_Row2"
             value="#{xxx.yyy}">

    <t:column >
        <f:facet name="header">
            <h:outputText value="#{bundle.currentLoansColumTitle_ItemName}"/>
        </f:facet>
        <h:outputText value="#{list.title}"/>
    </t:column >
</t:dataTable>
 
 
This following entry in web.xml did not solve the problem (I extracted the tld's to a directory and pointed to them.)
 
     <taglib>
        <taglib-uri>http://java.sun.com/jsf/html</taglib-uri>
        <taglib-location>/WEB-INF/tlds/myfaces_html.tld</taglib-location>
    </taglib>
     <taglib>
        <taglib-uri>http://java.sun.com/jsf/core</taglib-uri>
        <taglib-location>/WEB-INF/tlds/myfaces_core.tld</taglib-location>
    </taglib>
    <taglib>
        <taglib-uri>http://myfaces.apache.org/tomahawk</taglib-uri>
        <taglib-location>/WEB-INF/tlds/tomahawk.tld</taglib-location>
    </taglib>
 
 
I got this error
Undefined component type org.apache.myfaces.HtmlColumn
It might be because the tld point to
<tag-class>org.apache.myfaces.custom.column.HtmlColumnTag</tag-class>
It is a different class.
 
Then I put tomahawk.jar in my lib directory. Although this action seems to be redundant, as myfaces-all.jar seems to contain all required classes and the problem is solved. In fact, i cannot see where the org.apache.myfaces.HTMLColum comes from.
 
This might help you. 
Regards
 
 
 
-----Ursprüngliche Nachricht-----
Von: Burke, Rodney [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 21. September 2005 21:57
An: MyFaces Discussion
Betreff: RE: stylesheet> error when uUpgrading from 1.0.9 to 1.1.0

All,

 

I was able to resolve this problem by downloading the night build 20050920.

But still have no idea what the root cause is.

 

Thanks

Rodney


From: Burke, Rodney [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 21, 2005 3:04 PM
To: [email protected]
Subject: <x:stylesheet> error when uUpgrading from 1.0.9 to 1.1.0

 

 

Does any one know why I would get the following exception when upgrading to the myfaces-1.1.0 release?

Note, <x:stylesheet path="/css/basic.css"/> tag worked just fine in 1.0.9.

 

javax.servlet.ServletException: Undefined component type org.apache.myfaces.Stylesheet
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:109)
         org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:693)
         org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:660)
         org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:43)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)

 

Btw, when I upgraded I simple replace the myfaces-1.0.9.jar with myfaces-1.1.0 and did a complete rebuild.

 

Thank You,

Rodney

Reply via email to