It would be great if you could add it to the WIKI section!

thanks a lot,

regards,

Martin

On 7/13/05, Don Walters <[EMAIL PROTECTED]> wrote:
> I guess I spoke too soon about it just working.  It worked in my simple
> MyEclipse project (which uses the MyFaces JSF).  But then I went back to
> my real project that uses the Sun RI 1.1.01 and followed steps 1-4, i.e.
> 
> 1. Add myfaces-extensions.jar to my libs
> 2. Add the extensions-filter definitions to my web.xml
> 3. Add the tag definition to my .jsp
> 4. instance a component
> 
> When I ran I got the following error:
> 
> 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(Extensi
> onsFilter.java:105)
> 
> The missing class is defined in commons-fileupload-1.0.jar, so I also
> added that to the libs.  Now it works.
> 
> Should these steps be added to the FAQ?
> 
> Thanks,
> Don
> 
> -----Original Message-----
> From: Broekelmann, Mathias [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 13, 2005 7:42 AM
> To: MyFaces Discussion
> Subject: RE: Problem with MyFaces in MyEclipse
> 
> You have to add the myfaces extensionFilter to your web.xml:
> 
>     <!-- Extensions Filter -->
>     <filter>
>         <filter-name>extensionsFilter</filter-name>
> 
> <filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter</f
> ilter-class>
>         <init-param>
>             <param-name>uploadMaxFileSize</param-name>
>             <param-value>100m</param-value>
>             <description>Set the size limit for uploaded files.
>                 Format: 10 - 10 bytes
>                         10k - 10 KB
>                         10m - 10 MB
>                         1g - 1 GB
>             </description>
>         </init-param>
>         <init-param>
>             <param-name>uploadThresholdSize</param-name>
>             <param-value>100k</param-value>
>             <description>Set the threshold size - files
>                     below this limit are stored in memory, files above
>                     this limit are stored on disk.
> 
>                 Format: 10 - 10 bytes
>                         10k - 10 KB
>                         10m - 10 MB
>                         1g - 1 GB
>             </description>
>         </init-param>
> <!--        <init-param>
>             <param-name>uploadRepositoryPath</param-name>
>             <param-value>/temp</param-value>
>             <description>Set the path where the intermediary files will
> be stored.
>             </description>
>         </init-param>-->
>     </filter>
> 
>     <filter-mapping>
>         <filter-name>extensionsFilter</filter-name>
>         <url-pattern>*.jsf</url-pattern>
>     </filter-mapping>
>     <filter-mapping>
>         <filter-name>extensionsFilter</filter-name>
>         <url-pattern>/faces/*</url-pattern>
>     </filter-mapping>
> 
> > -----Original Message-----
> > From: Don Walters [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, July 13, 2005 4:40 PM
> > To: [email protected]
> > Cc: Don Walters
> > Subject: Problem with MyFaces in MyEclipse
> >
> >
> > Hi All,
> >
> > I'm fairly new to web development, and even newer to JSF.  So
> > apologies if this is a dumb question.
> >
> > I have a working JSF app we are developing using the Sun RI 1.1.01 and
> 
> > WebGalileo components, and we decided to add the MyFaces components.
> > Looking at the MyFaces FAQ, it seemed as easy as 123: 1. Add
> > myfaces-extensions.jar to my lib, 2. Add the tag definition to my
> > .jsp, 3. instance a component.  I added the following to my page:
> >
> > <%@ taglib uri="http://myfaces.apache.org/extensions"; prefix="x"%> ..
> > other stuff ..
> > <h:form id="myform">
> > <x:inputCalendar id="rt_date_from" value="#{bean.fromDate}"
> >     renderAsPopup="true"/>
> > </h:form>
> >
> > When I deployed and opened the page, I got a JavaScript error but the
> > control rendered fine. When I click on the "..." button, I got another
> 
> > JavaScript error. Looking at the HTML source, it seems that the
> > JavaScript function jscalendarPopUpCalendar is called, but nothing on
> > the page appears to load or define that function.
> >
> > Looking in the myfaces-extensions.jar, I found the script.
> > But why isn't
> > it being loaded in the page? What step am I missing to get things to
> > work?
> >
> > Maybe it is a problem with using the latest versions of things?  We
> > are
> > using:
> >
> > Tomcat 5.5
> > JDK 1.5
> > Eclipse 3.1
> > MyEclipse 4.0M2
> >
> > Note that in hopes of spotting something, I created a new project
> > using MyEclipse, then added JSF/MyFaces capability, then created a
> > simple .jsp page with the x:inputCalendar component...  and got the
> > same result.
> >
> > Thanks very much for any advice and help.
> > Don
> >
> >
> >
>

Reply via email to