It seems that the commons-fileupload is missing in your classpath. It
is one of the (optional) dependencies of myfaces. [1]
Styles and other resources are handled "automagically" by the myfaces
extensionsFilter [2]. This filter include the necesary css/js in the
response page.
You can ask development questions in the myfaces developer list [3]

Regards,

Bruno

[1] http://myfaces.apache.org/gettingstarted.html
[2] http://myfaces.apache.org/tomahawk/extensionsFilter.html
[3] [email protected]

2005/12/1, Butler, Thomas <[EMAIL PROTECTED]>:
>
>
>
> I've just started to attempt to use myfaces, specifically, the <t:dataTable>
> tag along with other tags needed to sort/page result sets from a database
> (i.e., similar to the pagedSortTable.jsp example – this is the functionality
> I need.)  I'm using Jbuilder 2006 with TomCat 5.59.
>
>
>
> My first test was to replace an existing JSF <h:dataTable> with the
> <t:dataTable> - everything compiled and ran fine, except for the fact that
> the data rows did not appear using <t:dataTable>;  with <h:dataTable>
> everything works fine – column headers and data rows appear (only displaying
> 2 rows); the only change I make is to use <t:dataTable> instead of
> <h:dataTable> - then, only the column headers appear, but not the actual
> rows.  I don't receive any error messages – the rows just don't appear.
> Below is my code snippet – you can see how I simply uncomment the lines to
> switch from JSF <h:dataTable> to myFaces <t:dataTable>.
>
>
>
>     <f:view>
>
>       <link href="styles.css" rel="stylesheet" type="text/css"/>
>
>       <p>        s_categorykeywords:
>
>         <h:outputText
> value="#{bn_searchproviders.s_categorykeywords}"/>
>
>         <h:form>
>
>          <t:dataTable
> value="#{bn_searchproviders.c_rowset}" var="c_rowset">
>
>               <%--  <h:dataTable
> value="#{bn_searchproviders.c_rowset}" var="c_rowset"
> rowClasses="evenRow,oddRow"> --%>
>
>             <h:column>
>
>               <f:facet name="header">
>
>                 <h:outputText id="headerText1" value="id"/>
>
>               </f:facet>
>
>               <h:outputText value="#{c_rowset.id}"/>
>
>             </h:column>
>
>             <h:column>
>
>               <f:facet name="header">
>
>                 <h:outputText id="headerText2" value="category"/>
>
>               </f:facet>
>
>               <h:outputText value="#{c_rowset.category}"/>
>
>             </h:column>
>
>           </t:dataTable>
>
>           <%--  </h:dataTable> --%>
>
>         </h:form>
>
>     </f:view>
>
>
>
>
>
> Note I was not using the listener when I tried this approach (wasn't sure if
> <t:datatable> needed the listener?) – when I tried to set up the listener
> configuration, I received the following error:
>
>
>
> HTTP Status 500: Exception reportmessage description The server encountered
> an internal error () that prevented it from fulfilling this
> request.exception javax.servlet.ServletException: Filter execution threw an
> exception
>
> root cause java.lang.NoClassDefFoundError:
> org/apache/commons/fileupload/FileUpload
>
> org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:115)
>
> note The full stack trace of the root cause is available in the Apache
> Tomcat/5.5.9 logs.
>
>
>
>
>
> Any help you can provide is appreciated… also, do I need to include the
> styles from the myFaces style sheet?
>
>
>
> Finally, are there any newsgroups where I can ask myFaces developer
> questions?
>
>
>
> Thanks
>  Tom
>
> Cleveland, OH
>
>
>
>
>
> -------------------------------------------------------------------------------------------
>  ***National City made the following annotations
> -------------------------------------------------------------------------------------------
>  This communication is a confidential and proprietary business
> communication. It is intended solely for the use of the designated
> recipient(s). If this communication is received in error, please contact the
> sender and delete this communication.
> ===========================================================================================

Reply via email to