Hi,
try to implement you own version of
org.apache.commons.fileupload.FileItemFactory which will store files in a
memory.
Denis
On 20.8.2011, at 0:51, bhorvat wrote:
Hi all,
I am sure that some of you are aware that there is a problem with the
tapestry-upload component and GAE. I am
I know what the problem is the problem, I have read in couple of places a
general idea what one should do about all of this but sadly I do not possess
the necessary knowledge to implement that.
If I use the HttpServletRequest with the @Inject annotation and use
getInputStream() method what else
Try overriding the img.t-error-icon rule in your css.
Sample:
img.t-error-icon{
margin-left: 0;
width: 0;
height: 0;
background: none;
}
The background: none; line would get rid of the image, but you would still
have some white space, so i added the other rules
On Sat, Aug 20, 2011 at 4:20
The easyest way is, what Thiago already suggested. Make it invisible with
css. Tapestry adds the css class t-error-icon to the img-Tag so you could
add the following:
.t-error-icon {
display: none;
}
But this way you would still have the img-Tag in your markup. If you want to
get rid of that,
Override FileItemFactory using IOC:
http://tapestry.apache.org/ioc-cookbook-overriding-ioc-services.html
your FileItemFactory implementation will need to return simple implemention of
FileItem, request is writing a file using outputstream, so you need a
ByteArrayOutputStream to write to.
Someone already have implemented it using some kind of GAE api:
http://groups.google.com/group/gwtupload/browse_thread/thread/49857a006a7baa46
Denis
On 20.8.2011, at 12:15, Denis Stepanov wrote:
Override FileItemFactory using IOC:
From what I can see I will need to include this gwtupload library using mave
and then use that to handle the file uploading and saving into Blob, right?
But how do you use this into tapestry? You cant use their normal upload
component. So do I have to create a normal form (not t:form).
Did
From what I can see I will need to include this gwtupload library using mave
and then use that to handle the file uploading and saving into Blob, right?
You only need to replace the FileItemFactory with an implementation which will
store files in memory or specific GAE place, try to use
I have added the maven dependencies for the GWTUpload and I have added your
code as you suggested, however once I include the tapestry-upload it breaks
the application and the GAE wont run the website. Did I do something wrong?
I was under the impression that adding that code and the GWTUpload
What kind of error breaks application?
Denis
-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org
Hi,
This one is T5.2, but still does the trick:
http://lombok.demon.co.uk/tapestry5Demo/test/components/checkboxgroupdemo
Regards,
Vladimir Bauer
-Original Message-
From: Igor Drobiazko [mailto:igor.drobia...@gmail.com]
Sent: Friday, August 19, 2011 5:58 PM
To: Tapestry users
Subject:
I have just tried to upload the application to the google server, and when I
tried to access it from the URL it showed me an error.
Error: Server Error
The server encountered an error and could not complete your request.
If the problem persists, please report your problem and mention this error
Try to set a system property java.io.tmpdir to some value, it could be a null
in the GAE.
http://code.google.com/intl/cs/appengine/docs/java/runtime.html
Denis
Perfect this worked. I have set it like this property name=java.io.tmpdir
value=images/ / inside appengine-web.xml file and after I uploaded the
application it didn't crash.
Now if I understand you correctly I can use tapestry-upload component like I
would normally do, right?
One thing that I
Now if I understand you correctly I can use tapestry-upload component like I
would normally do, right?
Yes
One thing that I don't understand is how to I save the file into Blob? In
normal application I would create a t:form with t:upload inside it. Then in
the java file I would create a
Ok great, I will try it out tonight and post here tomorrow problems or
solutions :D
tnx again for your help hope to find you tomorrow :D
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Tapestry-upload-and-Google-App-Engine-tp4717221p4718501.html
Sent from the Tapestry -
Anyone? Sorting of grid column programmatically should not be that difficult
correct?
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Grid-display-after-a-new-row-insertion-tp4715298p4718683.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
thanks!
@Environmental
private JavaScriptSupport javaScriptSupport;
@Inject @Path(context:layout/mycss.css)
private Asset mycss;
void afterRender() {
javaScriptSupport.importStylesheet(new StylesheetLink(mycss, new
StylesheetOptions(screen, null)) );
}
On Sun, Aug 21, 2011
thanks for reply.
I know how to add my own stylesheet like this.
Now I want to know how to add this with tapestry build in
default.css, core/tapestry-console.css
On Sun, Aug 21, 2011 at 9:00 AM, Taha Hafeez tawus.tapes...@gmail.comwrote:
@Environmental
private JavaScriptSupport
http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/services/ClientInfrastructure.html
On Sun, Aug 21, 2011 at 6:35 AM, jqzone jqz...@gmail.com wrote:
thanks for reply.
I know how to add my own stylesheet like this.
Now I want to know how to add this with tapestry build in
21 matches
Mail list logo