Re: Trinidad file upload

2009-11-03 Thread veena pandit
A new development. Now I am getting this error in the log: All I was getting before this is a popup error message. Now here is the stacktrace: SEVERE: Servlet.service() for servlet Faces Servlet threw exception java.lang.NoClassDefFoundError:

Re: Trinidad file upload

2009-11-03 Thread Matthias Wessendorf
are you sure that you have everything configured correct ? Trinidad and tomahawk ? I think i remember some issues on the upload case, when mixing them (trinidad and tomahawk). Perhaps searching the archives gives any hint ? I really don't remember it -Matthias On Tue, Nov 3, 2009 at 7:48 PM,

Re: Trinidad file upload

2009-11-03 Thread Matthias Wessendorf
do you have a little bit more information ? cfg, size of the file. error message, stack trace... -Matthias On Tue, Nov 3, 2009 at 7:26 PM, veena pandit v.kri...@gmail.com wrote: Hi, I am having trouble making this work.  I have configured the web.xml, faces-config.xml and followed the

Trinidad file upload

2009-11-03 Thread veena pandit
Hi, I am having trouble making this work. I have configured the web.xml, faces-config.xml and followed the instructions on the following page: http://myfaces.apache.org/trinidad/devguide/fileUpload.html. I get a following popup error: Message from webpage: A file upload error has occured,

Re: Trinidad file upload

2009-11-03 Thread veena pandit
Well, I have both Tomahawk and trinidad in the same application for file uploads. I added commons.io to the web-inf/lib directory and now I dont get any error messages in the log. I just get the popup error message once again. I am using trinidad for another control in the same page. But I was

Re: Trinidad file upload

2009-11-03 Thread veena pandit
When I run it outside of eclipse and in my Firefox I get the following message(this is intermittant): java.lang.NoClassDefFoundError: org/apache/commons/fileupload/servlet/ServletFileUpload org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:321) **

Re: Trinidad file upload

2009-11-03 Thread Matthias Wessendorf
Do you have the Resource servlet? Are you having tr:document ? Sent from my iPod. On 03.11.2009, at 21:51, veena pandit v.kri...@gmail.com wrote: Martin, Hi, I tried a small demo app and I followed your instructions; I get the following errors: _submitFormCheck is not defined

Re: Trinidad file upload

2009-11-03 Thread veena pandit
Martin, Hi, I tried a small demo app and I followed your instructions; I get the following errors: _submitFormCheck is not defined http://localhost:8080/TrUpload/mypage.jsp line 34 _checkLoad is not defined http://localhost:8080/TrUpload/mypage.jsp line 1 _submitForm is not defined

Re: Trinidad file upload

2009-11-03 Thread Matthias Wessendorf
Again, add the required jar... Sent from my iPod. On 03.11.2009, at 21:39, veena pandit v.kri...@gmail.com wrote: When I run it outside of eclipse and in my Firefox I get the following message(this is intermittant): java.lang.NoClassDefFoundError:

Re: Trinidad file upload

2009-11-03 Thread veena pandit
I redeployed it and the errors in the Firefox console are gone. But I still get the popup dialog error. And I checked my jsp(jsf) page against the code that Martin sent and it looks correct. Thanks, Veena On Tue, Nov 3, 2009 at 6:57 PM, Richard Yee richard.k@gmail.com wrote: I suggest

Re: Trinidad file upload

2009-11-03 Thread Richard Yee
Did you add the Commons FileUpload.jar to your WEB-INF/lib directory? -Richard On Tue, Nov 3, 2009 at 3:28 PM, veena pandit v.kri...@gmail.com wrote: I do not have a resource servlet.  But the tomahawk demo works without a resource servlet.  I did have tr:document.  I removed it to see if it

Re: Trinidad file upload

2009-11-03 Thread Richard Yee
I suggest that you get a simple page with only the file upload tag in it working first before attempting a page that mixes different JSF library tags. -Richard On Tue, Nov 3, 2009 at 3:28 PM, veena pandit v.kri...@gmail.com wrote: I do not have a resource servlet.  But the tomahawk demo works

Html Tags Vs Tomahawk Tags

2009-11-03 Thread Vinaya Tirikkovalluru
Hi, Would there be any difference/advantage in using Html tags Vs Tomahawk Tags where ever possible? For Example: I can use Table instead of t:panelGrid in many cases. Vinaya This electronic message is intended only for the use of the individual(s) or entity(ies) named above and

Re: Trinidad file upload

2009-11-03 Thread Martin Kočí
Hi, it is a known limitation, it depends on filters ordering in web.xml. . Look in your web.xml and put something like: filter-mapping filter-nametrinidad/filter-name servlet-namefaces/servlet-name /filter-mapping before filter-mapping

Re: Trinidad file upload

2009-11-03 Thread veena pandit
I just checked. It was in my eclipse build path, but was missing from the web-inf/lib. But I added it there,redeployed it and tested it I am still getting the errors in the Firefox console. It must be something with the configuration. Thanks, Veena On Tue, Nov 3, 2009 at 6:56 PM, Richard Yee

Re: Trinidad file upload

2009-11-03 Thread veena pandit
I configured it according to the trinidad web page. http://myfaces.apache.org/trinidad/devguide/fileUpload.html Trinidad and Tomahawk are working well together. I am using Trinidad for a drop down and Tomahawk for file upload from BalusC's blog. But I just added the Trinidad File upload

Re: Trinidad file upload

2009-11-03 Thread veena pandit
Hi Martin, I checked my web.xml and the ordering is already the way you state it should be. Anything else I can check for? Thanks, Veena On Tue, Nov 3, 2009 at 3:24 PM, Martin Kočí martin.k...@aura.cz wrote: Hi, it is a known limitation, it depends on filters ordering in web.xml. . Look

Re: Trinidad file upload

2009-11-03 Thread Matthias Wessendorf
This is not Trinidad, this is Tomahawk. The NoClassDefFoundError says that you don't have the ServletFileUpload from the given package in your classpath. This class is part of the Apache Commons Upload project, which is required by Tomahawk. -Matthias On Tue, Nov 3, 2009 at 7:38 PM, veena

Dois portlets com JSF na mesma página

2009-11-03 Thread fernando
Oi, Estou tentando rodar dois portlets usando o MyFaces portlet bridge na mesma página de um portal JSR-286, a saber, o eXo PC 2.0.5 sob JBoss AS 4.2.3 Os portlets funcionam ok isoladamente, entretanto quando eles são colocados juntos na mesma página do portal o resultado é: 19:31:39,704

Re: Two JSF portlets on the same portal page

2009-11-03 Thread fernando
Hi, It's definetly a MyFaces bug. The same portlets, using the same MyFaces portlet bridge, but using Mojarra (included in JBoss AS) works fine. []s, Fernando Lozano Hi Ooops, I'm sorry, I sent the message in portuguese. Here's again in english I'm trying to run two portlets using JSF

Re: Trinidad file upload

2009-11-03 Thread Martin Kočí
It seems that message A file upload error has occurred, please verify your upload data and file name occures on client and has nothing to do with server configuration. Can you please try a simple example: tr:form usesUpload=true tr:inputFile value=#{yourBean.uploadFile} / /tr:form if it works -

Re: Trinidad file upload

2009-11-03 Thread veena pandit
I do not have a resource servlet. But the tomahawk demo works without a resource servlet. I did have tr:document. I removed it to see if it would fix the error but it did not. Thanks, Veena On Tue, Nov 3, 2009 at 4:07 PM, Matthias Wessendorf mwessend...@gmail.comwrote: Do you have the

Two JSF portlets on the same portal page

2009-11-03 Thread fernando
Hi Ooops, I'm sorry, I sent the message in portuguese. Here's again in english I'm trying to run two portlets using JSF and the MyFaces Portlet Bridge (which is the RI for JSR-301, the JSF Portlet Bridge) using eXo PC 2.0.5 under JBoss AS 4.2.3 Both portlets works fine under eXo PC and WCM,

Re: Trinidad file upload

2009-11-03 Thread Martin Kočí
That example was only a fragment, minimal working view with trinidad and JSPs can look like: uploadFile.jspx: ?xml version=1.0 encoding=iso-8859-1 standalone=yes ? jsp:root xmlns:jsp=http://java.sun.com/JSP/Page; version=2.0 xmlns:f=http://java.sun.com/jsf/core;

Re: Trinidad file upload

2009-11-03 Thread Matthias Wessendorf
On Wed, Nov 4, 2009 at 12:28 AM, veena pandit v.kri...@gmail.com wrote: I do not have a resource servlet.  But the tomahawk demo works without a resource servlet.  I did have tr:document.  I removed it to see if it would fix the error but it did not. if you would read the Trinidad doc, it says