how to retrive images from client side to server side
dear sir, i want to know that how server can get images that are exists at client side.Because when i send the image path through file upload then server cant get images from client. please help me. with regards avdhesh --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Hosted Browser Issue
Hi Guys, When i was Working With The Hosted Browser to View My Application.it is not going to display it . until click refresh for many times. iam using IE 6. is there any issue with it. Please Sort Me Out. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Hide Popup panel
You should rather encapsulate your context menu logic in a PopupMenu or ContextMenu class. Something like this may help: public class ContextMenu extends PopupPanel { private final ClickListener closeListener = new ClickListener() { public void onClick(final Widget sender) { hide(); } }; private final MouseListener rolloverListener = new MouseListenerAdapter() { public void onMouseEnter(final Widget sender) { for(final Widget widget : items) { if(widget == sender) { widget.addStyleDependantName("Hover"); } else { widget.removeStyleDependantName("Hover"); } } } }; private final VerticalPanel items = new VerticalPanel(); public ContextMenu() { super(true, false); setWidget(items); addStyleName("ContextMenu"); } public SourcesClickEvents addItem(final String displayText) { final Label label = new Label(displayText); label.setStylePrimaryName("ContextMenu-Item"); label.addClickListener(closeListener); label.addMouseListener(rolloverListener); items.add(label); return label; } public void show(final Widget parent, final int x, final int y) { setPopupPositionAndShow(new PositionCallback() { public void setPosition( final int width, final int height) { int px = parent.getAbsoluteLeft() + x; int py = parent.getAbsoluteTop() + y; if(px + width > Window.getClientWidth()) { px = Window.getClientWidth() - width; } if(py + height > Window.getClientHeight()) { py = Window.getClientHeight() - height; } ContextMenu.this.setPosition(px, py); } }); } } The above class adds Labels with a ClickListener to close the PopupPanel and a MouseListener to handle rollover (Hover) styles. You can use addItem("Delete This").addClickListener(new ClickListener() { public void onClick(Widget sender) { currentItem.delete(); } }); to add your actual handling ClickListener to the Labels. Hope that helps a bit. ArunDhaJ wrote: > I've tried... > RootPanel.get().remove(sender.getParent().getParent().getParent()); > and removed it. But once I remove this way, it gets permanantly > removed and menu doesnt appear once again. > > I've even tried > sender.getParent().getParent().getParent().setVisible(false); > the same problem as above persists.. once hidden its not coming up > again... > > Regards > ArunDhaJ > > > > --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Scrolling an HTML Table
Judging from your other message this is for an IM-like application? Why not use a ScrollPanel, and every time you add text call its ScrollToBottom() method. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
auto expand till selected TreeItem in Tree
Hi All, I've a tree with some set of TreeItems within it. When I programmatically set a TreeItem as selected, the Tree is not expanding its view till the selected TreeItem. How can I achieve this behavior ? I'm using GWT1.4.62. Thanks in Advance !! Regards, ArunDhaJ --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Observer pattern on this design, yes or no/how and why?
oops CnP mistake. on this line: buttons.addChangeListener(this); //where "this" pertains to Page1Compo1 i meant xx.addChangeListener(this);//where "this" pertains to Page1Compo1 On Nov 17, 1:22 pm, mives29 <[EMAIL PROTECTED]> wrote: > Hi. I tried your recommendations but there are some errors that I > encounter that I think is related to my project's structure > compatibility with your code. As I said above, my project has two > entrypoints. First entrypoint(com.try.client.Page1.java) contains a > vertical panel that contains three composites. Second entrypoint > (com.try.popup.client.PopUp.java) contains a vertical panel than > contains two composites. (Note: they(entrypoints) are from different > modules, same app.) > > Now I need Page1.java's panel's contained composites to become > listeners of PopUp.java's horizontal panel's contained composites. For > example, I click something on PopUp.java, Page1.java would show a > reaction thru its composites that are listeners of PopUp.java's > composite # 2. However, as I followed your instruction, I got this > errror: > > First, my CODE: > //On Page1.java's first composite: Page1Compo1.java, I included the > following > //declaration of composite # 2 > xx; > > //somewhere on the code > buttons.addChangeListener(this); //where "this" pertains to > Page1Compo1 > > THE ERROR: > No source code is available for type com.xxxzzz.client..java; did > you forget to inherit a required module? > > note: .java above is composite # 2 of PopUp.java vertical panel. > > It seems I cannot use .java on Page1Compo1.java.. What am I > missing? > > On Nov 14, 8:50 pm, gregor <[EMAIL PROTECTED]> wrote: > > > Oh, as to why, well as you see ConfigPanel has no real knowledge of > > the other panels that are listening to it and does need to call any > > methods on them. As a result any number of panels can be registered as > > a listener with it, and subsequently swapped out for new ones if > > required, without affecting ConfigPanel's code at all. It is up to the > > listeners to decide for themselves, individually, what they need to do > > when they receive a change event. So there is a very weak association > > between ConfigPanel and it's listeners and none at all between the > > listeners == low coupling == application components easy to change and > > maintain. > > > On Nov 14, 12:40 pm, gregor <[EMAIL PROTECTED]> wrote: > > > > GWT has a range of Observer/Observable gadgets off the shelf: > > > SourcesEvents & Listener and xxxListenerCollection utility > > > classes. If they don't work quite right for you, it's easy to copy the > > > principle and design your own event handling interfaces. > > > > You could have your config Composite implement SourcesChangeEvents, > > > for example. Then Comps 1 & 2 can implement ChangeListener and are > > > registered with the config Comp. It might work like so: > > > > public class ConfigPanel extends Composite implements > > > SourcesChangeEvents { > > > > private ChangeListenerCollection listeners = new > > > ChangeListenerCollection(); > > > private Button saveBtn = new Button("Save",new ClickListener() { > > > public void onClick(Widget widget) { > > > // you want to send the ConfigPanel itself, not the > > > Button! > > > // if you just used this it would send the button > > > listeners.fireChange(ConfigPanel.this).; > > > } > > > }); > > > > } > > > > public class Comp1 extends Composite implements changeListener { > > > > public void onChange(Widget sender) { > > > is (sender instanceof ConfigPanel) { > > > ConfigPanel configPanel = (ConfigPanel) sender; > > > // call whatever methods you need > > > } > > > > } > > > > Don't forget you have to register Comp1 as a lister with ConfigPanel > > > somewhere or it won't work, e.g.: > > > > confPanel.addChangeListener(comp1); > > > > And that's about it - goodbye to your static method calls. > > > > regards > > > gregor > > > > On Nov 14, 8:45 am, mives29 <[EMAIL PROTECTED]> wrote: > > > > > i meant static methods, not static classes (2nd paragraph 2nd line) > > > > > On Nov 14, 4:43 pm, mives29 <[EMAIL PROTECTED]> wrote: > > > > > > I'd go straight to what I want to do. > > > > > > I have 3 composites in 1 panel, in 1 entrypoint. I have another > > > > > entrypoint that pops up when you click a link on the 2nd composite on > > > > > the 1st entrypoint. on that second entrypoint you can configure stuff, > > > > > that will affect the displayed data on the first entrypoint's > > > > > composites. now, im thinking (actually, a friend thought of it, not > > > > > me) that the observer pattern is great to use in here, as the 3 > > > > > composites of the 1st entrypoint will listen to whatever the second > > > > > entrypoint configures, then change themselves according to the > > > > > specified configurations on t
Re: Observer pattern on this design, yes or no/how and why?
Hi. I tried your recommendations but there are some errors that I encounter that I think is related to my project's structure compatibility with your code. As I said above, my project has two entrypoints. First entrypoint(com.try.client.Page1.java) contains a vertical panel that contains three composites. Second entrypoint (com.try.popup.client.PopUp.java) contains a vertical panel than contains two composites. (Note: they(entrypoints) are from different modules, same app.) Now I need Page1.java's panel's contained composites to become listeners of PopUp.java's horizontal panel's contained composites. For example, I click something on PopUp.java, Page1.java would show a reaction thru its composites that are listeners of PopUp.java's composite # 2. However, as I followed your instruction, I got this errror: First, my CODE: //On Page1.java's first composite: Page1Compo1.java, I included the following //declaration of composite # 2 xx; //somewhere on the code buttons.addChangeListener(this);//where "this" pertains to Page1Compo1 THE ERROR: No source code is available for type com.xxxzzz.client..java; did you forget to inherit a required module? note: .java above is composite # 2 of PopUp.java vertical panel. It seems I cannot use .java on Page1Compo1.java.. What am I missing? On Nov 14, 8:50 pm, gregor <[EMAIL PROTECTED]> wrote: > Oh, as to why, well as you see ConfigPanel has no real knowledge of > the other panels that are listening to it and does need to call any > methods on them. As a result any number of panels can be registered as > a listener with it, and subsequently swapped out for new ones if > required, without affecting ConfigPanel's code at all. It is up to the > listeners to decide for themselves, individually, what they need to do > when they receive a change event. So there is a very weak association > between ConfigPanel and it's listeners and none at all between the > listeners == low coupling == application components easy to change and > maintain. > > On Nov 14, 12:40 pm, gregor <[EMAIL PROTECTED]> wrote: > > > GWT has a range of Observer/Observable gadgets off the shelf: > > SourcesEvents & Listener and xxxListenerCollection utility > > classes. If they don't work quite right for you, it's easy to copy the > > principle and design your own event handling interfaces. > > > You could have your config Composite implement SourcesChangeEvents, > > for example. Then Comps 1 & 2 can implement ChangeListener and are > > registered with the config Comp. It might work like so: > > > public class ConfigPanel extends Composite implements > > SourcesChangeEvents { > > > private ChangeListenerCollection listeners = new > > ChangeListenerCollection(); > > private Button saveBtn = new Button("Save",new ClickListener() { > > public void onClick(Widget widget) { > > // you want to send the ConfigPanel itself, not the > > Button! > > // if you just used this it would send the button > > listeners.fireChange(ConfigPanel.this).; > > } > > }); > > > } > > > public class Comp1 extends Composite implements changeListener { > > > public void onChange(Widget sender) { > > is (sender instanceof ConfigPanel) { > > ConfigPanel configPanel = (ConfigPanel) sender; > > // call whatever methods you need > > } > > > } > > > Don't forget you have to register Comp1 as a lister with ConfigPanel > > somewhere or it won't work, e.g.: > > > confPanel.addChangeListener(comp1); > > > And that's about it - goodbye to your static method calls. > > > regards > > gregor > > > On Nov 14, 8:45 am, mives29 <[EMAIL PROTECTED]> wrote: > > > > i meant static methods, not static classes (2nd paragraph 2nd line) > > > > On Nov 14, 4:43 pm, mives29 <[EMAIL PROTECTED]> wrote: > > > > > I'd go straight to what I want to do. > > > > > I have 3 composites in 1 panel, in 1 entrypoint. I have another > > > > entrypoint that pops up when you click a link on the 2nd composite on > > > > the 1st entrypoint. on that second entrypoint you can configure stuff, > > > > that will affect the displayed data on the first entrypoint's > > > > composites. now, im thinking (actually, a friend thought of it, not > > > > me) that the observer pattern is great to use in here, as the 3 > > > > composites of the 1st entrypoint will listen to whatever the second > > > > entrypoint configures, then change themselves according to the > > > > specified configurations on the second entrypoint. > > > > > Currently, I do the changes on the first entrypoint's composites by > > > > calling their static classes (from the second entrypoint's > > > > clicklisteners and stuff) that configures them, which I think is not a > > > > very good practice to implement because it's not easily extensible and > > > > not that good of a design. > > > > > Now, is it wise to use the observer pattern(perso
Re: Currency Code
try looking at com.google.gwt.i18n.client.constants.CurrencyCodeMapConstants.properties //A On 16 Nov, 19:04, jsantaelena <[EMAIL PROTECTED]> wrote: > Hi all. > > What are the availables currency codes? I didn't find it in java docs. > > Tks. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Limits to byte[] size in RPC?
On Sun, Nov 16, 2008 at 12:01 PM, Shawn Pearce <[EMAIL PROTECTED]> wrote: > My initial guess is that the array serialization during RPC is packing each > byte into its own element in a JSON array. So your 400kB byte array turns > into a 409,600 element integer array, which is probably using at least 16 > bytes per entry, resulting in a fairly large (several megabyte) footprint in > Firefox. Doesn't explain why FF grabs several GB for this, but I think you > are using a lot more memory than you expect. That's a good guess, but you have to remember one thing: Javascript's only number type is equivalent to Java's double. It's been a while since I've looked at the RPC internals, so things may have changed, but it has been true that a byte[] would be converted into the equivalent of a double[], and then serialized. I'm curious about what you're doing with a byte[] on the client, Axel. Besides filing an issue to see if the GWT developers want to support your use case, I'd suggest the following: try sending a double[] instead of a byte[] by packing 6 bytes into each double. Code like the following might work. public static double[] bytesToDoubles(byte[] bytes) { double[] ret = new double[(bytes.length + 5) / 6]; for (int i = 0, n = r.length; i < n; ++i) { ret[i] = bytesToDouble(bytes, i * 6); } return ret; } private static double bytesToDouble(byte[] bytes, int offset) { if (offset + 5 < bytes.length) { double highTwo = 4294967296.0 * (bytes[0] << 8 + bytes[1]); int lowFour = bytes[2] << 24 + bytes[3] << 16 + bytes[4] << 8 + bytes[5]; return highTwo + lowFour; } double highTwo = 4294967296.0 * (safeGet(bytes, 0) << 8 + safeGet(bytes, 1)); int lowFour = safeGet(bytes, 2) << 24 + safeGet(bytes, 3) << 16 + safeGet(bytes, 4) << 8 + safeGet(bytes, 5); return highTwo + lowFour; } private static byte safeGet(byte[] bytes, int index) { return (index >= bytes.length ? 0 : bytes[index]); } I'm in a rush, so I'll leave the unpacking code as an "exercise for the reader". Note also that, since Java's String is a counted data type, it might be safe to pack bytes into a String without base64 encoding them first, which would save on bytes, too. Ian --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Limits to byte[] size in RPC?
My initial guess is that the array serialization during RPC is packing each byte into its own element in a JSON array. So your 400kB byte array turns into a 409,600 element integer array, which is probably using at least 16 bytes per entry, resulting in a fairly large (several megabyte) footprint in Firefox. Doesn't explain why FF grabs several GB for this, but I think you are using a lot more memory than you expect. On Sun, Nov 16, 2008 at 04:21, Axel <[EMAIL PROTECTED]> wrote: > > Hi, > > I've been trying to handle binary data with one or more MB in size, > passing it through RPC. In Firefox (tested with 3.0.4) I can reproduce > what to me seems like a memory leak. No matter how I assemble the byte > [] contents: as soon as the size approaches or exceeds ~500kB, Firefox > allocates >1GB of memory, bringing my 2GB client machine to swap so > heavily I have to kill FF. > > I tested with different byte[] sizes. 400kB seems to be ok, regardless > the contents. 500kB rarely works and 600kB I never managed to get > through. Assembling the byte[] before actually calling the RPC works > fine. It is the RPC call itself where memory consumption in FF goes up > so drastically. > > My workaround for now is to Base64-encode the byte[] into a String and > send that along, decoding it on the server again. This lets me suspect > that something may be wrong with the byte[] serialization code. > > In the hosted Java environment this problem does not occur at all, and > I can flawlessly send byte[]s with several MB in size no problem. > > Best, > -- Axel > > > --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Currency Code
Hi all. What are the availables currency codes? I didn't find it in java docs. Tks. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Images from DB
You might also be able to use the data:// URI to embed the image data, as a string, in to a DOM element via CSS. On Nov 15, 1:52 am, CodeABunch <[EMAIL PROTECTED]> wrote: > Greetings. > > I'm dynamically reading images stored in the DB and I need to render > them in the screen > > The Image Widget reads only static URLs so I need to have the images > saved in a temp directory (but still accessible from regular URL). > > I'm wondering if there is any other "smart" way of doing this. Any > light out there? > > 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Scrolling an HTML Table
To whom that it may concern, I have a problem. I have an HTML panel that I need to always be automatically scrolling to its bottom. I have it on autoscroll of course but, I need it to scroll down every opportunity that it can - if you know what I mean. I just want to know if I can do this without using a scroll panel. Thanks, Sandile --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Hide Popup panel
I've tried... RootPanel.get().remove(sender.getParent().getParent().getParent()); and removed it. But once I remove this way, it gets permanantly removed and menu doesnt appear once again. I've even tried sender.getParent().getParent().getParent().setVisible(false); the same problem as above persists.. once hidden its not coming up again... Regards ArunDhaJ --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: PermGen space running out.
Thanks, Isaac. I can't find a way to run -noserver and have another web server pointing at my public directory (so it will pick up the PHP I have to use on this project) without things going very strange. I don't really want to have to copy stuff about all the time. I've lived with it for 2 years, and now I know what the cause is, I can stop cursing every time and just live with it until Jetty comes along. Cheers, Ian http://examples.roughian.com 2008/11/16 Isaac Truett <[EMAIL PROTECTED]> > > This is a fairly common complaint for Tomcat instances, especially > older versions, where lots of new classes are being introduced at run > time. Basically, something in Tomcat doesn't let go of old class > definitions. These old class definitions clog up the PermGen space > after multiple webapp deployments (or hosted mode refreshes). > > I don't know of anything that GWT can or could have done about this, > other then perhaps creating fewer classes. Switching to -noserver and > using another app server could help. Or if -noserver gives you > heartburn, you might be able to hack in a newer version of Tomcat into > regular hosted mode. Lastly, I've heard that Jetty is being introduced > as a hosted mode option in trunk. I am not aware of any Jetty PermGen > complaints. > > > - Isaac > > > On Sat, Nov 15, 2008 at 7:11 PM, Ian Bambury <[EMAIL PROTECTED]> wrote: > > This is something I first asked about in version 1.1 in 2006. > > If you use RequestBuilder (HTTPRequest back in 1,1) then after a while > and a > > number of F5s to refresh the hosted mode, Java bombs out with a PermGen > > space error. > > It doesn't do any good to to increase the Xmx - all that happens is that > it > > takes longer to fail and longer to recover when you kill it. > > I'f fairly sure its a GWT problem because I'm on a different computer, a > > different OS, a different version of Eclipse and a different version of > > Java, and it still happens. > > Has anything happened in the past 2 years? > > Ian > > > > http://examples.roughian.com > > > > > > > > > > > --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Hide Popup panel
Hi, I've used a pop-up panel to display context menu for tree. I've created a custom menu-item by extending Label and added clicklistener for it. I want to hide the pop-up panel once the item being selected. since the click listener is a separate class I'm not able to get the pop-up panel's reference and hide it. I've the class name. is it possible to get the element by specifying the Id and hide it? I'm not sure how to hide. Please help me in solving it. I'm using GWT 1.4.62 Thanks in Advance !! Regards, ArunDhaJ --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: PermGen space running out.
This is a fairly common complaint for Tomcat instances, especially older versions, where lots of new classes are being introduced at run time. Basically, something in Tomcat doesn't let go of old class definitions. These old class definitions clog up the PermGen space after multiple webapp deployments (or hosted mode refreshes). I don't know of anything that GWT can or could have done about this, other then perhaps creating fewer classes. Switching to -noserver and using another app server could help. Or if -noserver gives you heartburn, you might be able to hack in a newer version of Tomcat into regular hosted mode. Lastly, I've heard that Jetty is being introduced as a hosted mode option in trunk. I am not aware of any Jetty PermGen complaints. - Isaac On Sat, Nov 15, 2008 at 7:11 PM, Ian Bambury <[EMAIL PROTECTED]> wrote: > This is something I first asked about in version 1.1 in 2006. > If you use RequestBuilder (HTTPRequest back in 1,1) then after a while and a > number of F5s to refresh the hosted mode, Java bombs out with a PermGen > space error. > It doesn't do any good to to increase the Xmx - all that happens is that it > takes longer to fail and longer to recover when you kill it. > I'f fairly sure its a GWT problem because I'm on a different computer, a > different OS, a different version of Eclipse and a different version of > Java, and it still happens. > Has anything happened in the past 2 years? > Ian > > http://examples.roughian.com > > > > --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Separate client & server help
You will have at leasr to provide your own serialization policies provider, the default one has some check to the same webapp origin. On Sat, Nov 15, 2008 at 4:26 PM, kibibyte <[EMAIL PROTECTED]> wrote: > > hi > > is it possible to separate client & server ie. 2 web applications : > one with client code, one with server code. > I tried to do it but ex occurs: > > PWC1412: WebModule[/LazyGWTServer] ServletContext.log():ERROR: The > module path requested, /LazyGWTClient/, is not in the same web > application as this servlet, /LazyGWTServer. Your module may not be > properly configured or your client and server code maybe out of date. > PWC1412: WebModule[/LazyGWTServer] ServletContext.log():WARNING: > Failed to get the SerializationPolicy > '29F4EA1240F157649C12466F01F46F60' for module 'http://localhost:8080/ > LazyGWTClient/'; a legacy, 1.3.3 compatible, serialization policy will > be used. You may experience SerializationExceptions as a result. > WebModule[/LazyGWTServer]An IncompatibleRemoteServiceException was > thrown while processing this call. > com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: > Blocked attempt to access interface 'org.lazygwt.client.GWTService', > which is not implemented by 'org.lazygwt.server.GWTServiceImpl'; this > is either misconfiguration or a hack attempt > > > > > > -- Si l'ignorance peut servir de consolation, elle n'en est pas moins illusoire. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Limits to byte[] size in RPC?
Hi, I've been trying to handle binary data with one or more MB in size, passing it through RPC. In Firefox (tested with 3.0.4) I can reproduce what to me seems like a memory leak. No matter how I assemble the byte [] contents: as soon as the size approaches or exceeds ~500kB, Firefox allocates >1GB of memory, bringing my 2GB client machine to swap so heavily I have to kill FF. I tested with different byte[] sizes. 400kB seems to be ok, regardless the contents. 500kB rarely works and 600kB I never managed to get through. Assembling the byte[] before actually calling the RPC works fine. It is the RPC call itself where memory consumption in FF goes up so drastically. My workaround for now is to Base64-encode the byte[] into a String and send that along, decoding it on the server again. This lets me suspect that something may be wrong with the byte[] serialization code. In the hosted Java environment this problem does not occur at all, and I can flawlessly send byte[]s with several MB in size no problem. Best, -- Axel --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Employee Management Sample
Hi, Guys I open-sourced Employee Management Sample at: http://code.google.com/p/employee-management-sample/ Documentation lack exist... but you can checkout sources. Best regards, Iskandar Zaynutdinov --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Body Background disappear
Hi! I've a strange bug when using the GWT: my seems not to work anymore! I see the background image for a second and when the GWT Script is loaded it just disappear! o_O? Whats wrong with my code? Or is it a GWT Bug? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Border between VerticalPanel-Panels
hi! what i am searchin for is to add a border between two panels. Just like the upper part is the headliner and beneeth the main part. like: HELLO WORLD - widget widget widget widget widget widget widget widget . .. . So i put into the vertical panel a content panel. The content panel holds all the widgets. His CSS Style is this one: border-top-width: 2px; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; And yeah, i get what i want in GWT hosted mode. But when compiled and seen in firefox/ie it looks ugly. It has a border all around. Only the top border is thicker, the others are all 1px. Why? And do any of you have a better solution on this topic? :) Thanks for readin! Tell me your ideas! --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---