Re: Use Uploaded Image as Panel Background
Hi Nicolas, Thanks ever so much for pointing me towards the gwt-upload project. It's a fantastic library for beginners like myself to get a handle on servlets and HTTP requests, as even though it made the work easy it still assisted in helping me understand the mechanics. However, I'm curious as to why you recommend it over the GWT default FileUpload widget? If it is because FileUpload requires RPC config to work, then I'm at liberty to tell you that the next stage in my project involves transmission of an object from client to server(a string representing an XML document, to be specific) that I believe will require RPC services to function. Unless you know of another way to do this? Also, when I tried to set the background image on my panel, it never worked. Strangely, creating an Image widget with the EXACT same URL functions perfectly. Perhaps I'm missing something, but right now I'll make do with an Image widget placed at the back of the Z-index on the panel. Thanks again, Gary -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Use Uploaded Image as Panel Background
Thanks for your help Nicolas. I will look into using the gwt-upload project to assist me, and report back with my progress. Cheers. On Aug 22, 1:55 pm, Nicolas Antoniazzi wrote: > As soon as your image is uploaded, you can have a link to it. something > likehttp://my.site.com/images/uploaded_img.png > Then, you only have to dynamically change the background of your element : > myWidget.getElement().getStyle().setBackgroundImage(http://my.site.com/images/uploaded_img.png); > > The only trick is to upload the image, move it to a folder visible for your > website users, and get the valid url associated. > To help uploads, you can use gwt-upload project > (http://code.google.com/p/gwtupload/). Really easy to use. > > 2011/8/22 DarthG > > > > > > > > > Hello, > > > I have an AbsolutePanel that acts as a graphical workspace. The user > > should be able to specify a local image to upload and this image will > > appear as the background on the panel, for them to work on top of. > > > I understand the background can be set using CSS, but how would one do > > this dynamically after the image is uploaded? Is there a simpler way > > to do this using an Image widget the same size as the panel and having > > the panel sit on top of this widget and set as transparent? > > > Thanks. > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google Web Toolkit" group. > > To post to this group, send email to google-web-toolkit@googlegroups.com. > > To unsubscribe from this group, send email to > > google-web-toolkit+unsubscr...@googlegroups.com. > > For more options, visit this group at > >http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Use Uploaded Image as Panel Background
Hello, I have an AbsolutePanel that acts as a graphical workspace. The user should be able to specify a local image to upload and this image will appear as the background on the panel, for them to work on top of. I understand the background can be set using CSS, but how would one do this dynamically after the image is uploaded? Is there a simpler way to do this using an Image widget the same size as the panel and having the panel sit on top of this widget and set as transparent? Thanks. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Generating XML
Thank you both for your assistance. I will attempt to use the XStream library first, but the XML is not intended to to be parsed and objects re-built from it; rather the information will be used by another system. Thus, it depends how much I can customise the XStream output to suit the desired XML format. Karim, upon investigating the JAXB framework I discovered that this is the standard practise in the company I work for(student internship, hence why I was unaware) but as I have stated the simplicity of the objects and resulting XML may suit a simpler method. I had never considered manipulating the toString methods to my advantage, so if XStream does not suit then this is the path I will take. Thanks again, Gary -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Generating XML
Part of my application requires an XML file to be generated from an object. The XML produced will be small in size and simple in structure. I could achieve this using elaborate string manipulation but I suspect there is a better way. I tried to use the xmlenc (http://xmlenc.sourceforge.net/) library, but it requires Writer objects to function, which GWT does not support. Is there an accepted way of XML generation for GWT? Or perhaps a way to synthesise Writer objects? Initially, I want the XML output on the console for testing, but eventually it will be stored on a server/database. Thanks, Gary -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Adding Mutual Exclusivity to Toggle Button
I am trying to create a set of toggle buttons with radio button functionality. I have searched the forums and seen a few threads mentioning this, but no detailed explanations or example code. I have tried to extend the RadioButton class and change the style to emulate a ToggleButton, but it is unsatisfactory and I am frustrated that I can't work out how to properly implement this. Thanks, Gary -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.