Re: how to refresh panel
I dont see any issues here... I have never used GWT-EXT so if there is any problems in usage of BorderLayoutPanel thn i wont be able to say I suppose that u are seeing the alerts in the onSUccess and all May be u can try first removing the old panel from the center and then adding the new panel. On Fri, Dec 5, 2008 at 10:43 PM, rajasekhar <[EMAIL PROTECTED]> wrote: > > Hi Preeth, > > Here is my WestPart click implementation,I am able to add > the new CenterPart class to the BorderLayout Panel,but it is not > refreshing the centerWindow.No error is coming. Please let me know is > there any changes I need to do. > > public WestPart(Panel borderPanel) > { >this.parent = borderPanel; >west.addClickListener(new ClickListener() { >public void onClick(Widget sender) { >callPanelRefresh(" "); >} > }); > } > > public void refreshCenter(String s) { >CenterPart centerPart=new CenterPart(); >parent.add(centerPart.displayCenter(s),new BorderLayoutData > (RegionPosition.CENTER)); > } > > @SuppressWarnings("unchecked") >public void callPanelRefresh(final String userName) { >getServiceInstance().getLabel(userName, new AsyncCallback > () { >public void onFailure(Throwable caught) { >Window.alert("Failed to get response from server"); > } > public void onFailure(){ > Window.alert("The user name or password you entered > is not > valid. Please try again."); > } > public void onSuccess(Object result) { > String var= result.toString(); > Window.alert("After return ..."+var); > refreshCenter(var); > } >}); > } > > > > > > > --~--~-~--~~~---~--~~ 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: Style issues with VerticalPanel vs FlowPanel
After more doc reading, it now seems that the right approach is to use a VerticalPanel (i.e. so that ONE item per line is achieved), but then to alter the panel's border-width and cell-height. But, NOW what I can't quite understand, is how to code the 'setCellHeight' method. (What widget do they want for first arg?) If they just had a code-sample in their foolish doc for this method, I'd be home free. Anyone got a code snippet for this? TIA... Dave On Dec 6, 1:01 am, "David H. Cook" <[EMAIL PROTECTED]> wrote: > Been playing with both a VerticalPanel and a FLowPanel, but > I can't find a way to constrain a FlowPanel to just one entry per > line. > > I've got a bunch (about 25) of anchor-elements ( tags). > When I add then to a VerticalPanel, I achieve the one item > per line, but there is way TOO MUCH wasted white-space, > with the default cell-size and borders, etc. > > When I add each anchor to a FlowPanel, it solves the > white-space issue, but then I get multiple anchors per line, > all flowed together (which is no doubt why they call it that.) > > So, has anyone come upon a UI-object/technique to > get achieve what I want? > > (Conceptually, a table of one column, with all the cellpadding > and bordersizing set to minimal values sounds right, but without > a code sample, that seems time-consuming to achieve.) > > Ideas? > > TIA... > Dave --~--~-~--~~~---~--~~ 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: viewport resize listener
Okkk gregor... thn i suppose tht is also no good idea so only feasible solution i now see is the polling one... I will try it and see if it will take tooo much of my resourses or not... Anyways thanxx so much for ur help... :-) On Fri, Dec 5, 2008 at 10:07 PM, gregor <[EMAIL PROTECTED]>wrote: > > yeah, but it is defined as: > > Definition and Usage > The onresize event occurs when a window or frame is resized. > > which I took to mean what we already get with WindowResizeListener, > and not that it fires when an individual element grows or shrinks. > > On Dec 5, 4:00 pm, "Litty Preeth" <[EMAIL PROTECTED]> wrote: > > There is an onresize event in javascript. As per the doc the following > tags > > support this event: > > > > , , , , , , , , > , > > , , , , , , , , , > to > > , , , , , , , , , > , > > , , , , , , , , , > , > > , , , , > > > > Do you hav any idea if I can use this one? > > > > - Litty Preeth > > > > On Fri, Dec 5, 2008 at 6:29 PM, gregor <[EMAIL PROTECTED]> > wrote: > > > > > Hi Litty, > > > > > > But it will require code change to all > > > > the popups that use a glass panel. And also in future some developer > may > > > > forget to fire a Deffered command when the size changes So i dont > > > think > > > > its such a good method > > > > > I'm not sure how you can avoid that, Litty. I mean either the viewport > > > widget has to tell the glass panel its size has changed or the glass > > > panel has got to repeatedly poll the viewport to see if it has changed > > > - I can't think of any other alternatives. > > > > > AFAIK there is no HTML event specified to be fired if an Element' size > > > is changed. There is a DOMAttrModified event but a) I believe IE does > > > not implement it, and b) in any case it is only fired if a property > > > itself is actually changed. E.g. if the height attribute of an Element > > > is set to 100%, then if the browser increases the height of the > > > element to accommodate new content, the property remains 100% > > > therefore no event fired. I think the offsetHeight is calculated on > > > the fly from whatever the pixel height happens to be at the time. > > > > > If I understand you correctly, you have a number of viewports each of > > > which has a glass panel that need to cover its exact area. If you had > > > a lot of these, then the Timer polling option doesn't seem such a good > > > idea (lots of timers polling away for little purpose most of the > > > time). I think I would design my own base class that included both a > > > viewport widget and its glass panel (possibly optionally instantiated) > > > and use a custom method to add additional content to the viewport that > > > fired a DeferredCommand to resize the glass panel (deferred so that it > > > does it after the resizing of the viewport's Element is complete and > > > offset height & offset width return true values). All the viewports > > > could be extended from that. > > > > > regards > > > gregor > > > > > > I am working with pure GWT. Basically I am using the glass panels for > > > modal > > > > popups. I set the size of the glass panel as the current view port > size > > > just > > > > before dispalying it. Then the popup is dispalyed. Now on the popup, > the > > > > user actions causes the size of the popup to change. If the size > becomes > > > > larger than the previous view port size then the view port size will > > > > automatically increase, but the glass panel size remains the same > which > > > > causes the bottom region of the viewport to be not covered by glass > > > panel. > > > > Please not that this change of size will not cause a window resize > event > > > as > > > > the window size is not changed, only the document size got changed. > (BTW > > > i > > > > have a windowresize listener on the glass panel so that part is take > care > > > > of.) > > > > > > Hope this explains my problem. > > > > > > Thanks, > > > > Litty Preeth > > > > > > On Thu, Dec 4, 2008 at 4:57 PM, gregor <[EMAIL PROTECTED] > > > > > wrote: > > > > > > > I'm not sure I understand your situation right, but: > > > > > > > if your panel "knows" at run time that it's size has changed (e.g. > > > > > from a method that adds the new widget to it) then it could fire a > > > > > change event via DeferrerdCommand. The glass panel could be > registered > > > > > as a listener with it and obtain new width/height offsets. > > > > > > > On Dec 4, 4:25 am, "Litty Preeth" <[EMAIL PROTECTED]> wrote: > > > > > > At run time I add widgets to the page which causes the size of > the > > > panel > > > > > > (scrollable size) to change. > > > > > > > > Regards, > > > > > > Litty Preeth > > > > > > > > On Wed, Dec 3, 2008 at 7:22 PM, gregor < > [EMAIL PROTECTED] > > > > > > > wrote: > > > > > > > > > Oh, I see. How is the size of your RootPanel changed then if > not by > > > > > > > changing the size of the browser window? > > > > > > > > > On Dec 3, 1:15 pm, "Litty Preeth" <[EMAIL PROTECTED]> > wrote: > > > >
Style issues with VerticalPanel vs FlowPanel
Been playing with both a VerticalPanel and a FLowPanel, but I can't find a way to constrain a FlowPanel to just one entry per line. I've got a bunch (about 25) of anchor-elements ( tags). When I add then to a VerticalPanel, I achieve the one item per line, but there is way TOO MUCH wasted white-space, with the default cell-size and borders, etc. When I add each anchor to a FlowPanel, it solves the white-space issue, but then I get multiple anchors per line, all flowed together (which is no doubt why they call it that.) So, has anyone come upon a UI-object/technique to get achieve what I want? (Conceptually, a table of one column, with all the cellpadding and bordersizing set to minimal values sounds right, but without a code sample, that seems time-consuming to achieve.) Ideas? TIA... Dave --~--~-~--~~~---~--~~ 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: How to share work between Java developers and HTML/CSS designers?
I think the underlying issue here is that the paradym of gwt programming is not the same as the traditional web-app development, where the coder hands to the designer a bunch of "variables" to which the designer inserts into a template (velocity, freemarker, jsp, you name it). GWT brings to the table the developer as a UI creator. The designer no longer makes the product, but actually designs the blue-print, and that blue print is followed by the developer. I.e., the developer now needs to know about DOM, CSS and HTML (though not to the extend that a designer might). GWT tries to abstract html from making a web UI. Thats my 2 cents anyway. On Dec 3, 4:36 pm, Nizam <[EMAIL PROTECTED]> wrote: > Are there any best practices in bringing together a multi-disciplinary > team of Java developers and HTML/CSS designers in developing a > commercial GWT application? Our Java guys cannot do CSS and our HTML/ > CSS guys prefer working in DreamWeaver. I haven't seen any material > that talks about the team collaboration aspect. Any thoughts? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
problem with CheckboxSelectionModel
Hi, I am using CheckboxSelectionModel to create a column with list of checkboxes. when I click on any column of the row the checkbox is getting selected. How can I remove this checkbox selection. I used the following steps to create the Checkbox cloumn final CheckboxSelectionModel cbsModel = new CheckboxSelectionModel(); CheckboxColumnConfig ckbCol = new CheckboxColumnConfig(cbsModel); Please help. Thanks and regards, Cris --~--~-~--~~~---~--~~ 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: anchors with javascript: (tutorial or sample code?)
Shawn - Thanks for the excellent explanation! After a few tries at coding it using some JSNI, I decided it felt too ugly. And, sure enough, after some more experimentation, I arrived at a working ClickListener for an anchor that did NOT need any JSNI at all. Happiness is a first-time deployment of the GWT flavor containing most of the functionality of the original maps/javascript based app. Cheers... Dave On Dec 4, 2:19 am, Shawn Pearce <[EMAIL PROTECTED]> wrote: > On Wed, Dec 3, 2008 at 18:08, David H. Cook <[EMAIL PROTECTED]>wrote: > > > > > I'm coding my first GWT app, and trying to get my head around > > creating an anchor that calls native javascript. It now occurs to me > > that even tho the goal is to write in java, there will still be some > > things that can only be done cleanly by utilizing some native > > javascript. (Agreed?) > > For native JavaScript invocations, try to use Java method declarations, but > mark the method as "native" and use GWT's JSNI feature to inline the > JavaScript code. It makes it far easier to pass values into JavaScript from > Java, and to return values from JavaScript back into Java. If you need to > hold onto a plain JavaScript object or function, use the JavaScriptObject > type in Java. There's plenty more details in the GWT docs under "JavaScript > Integration" or some such section. > > Given that, can someone point me to some sample GWT code > > > using such anchors? > > If you really really want to use a javascript: sort of URL, I think you can > use an Anchor widget: > > add(new Anchor("click here", false, "javascript:mycode();")); > > This generates the same as: > > click here > > Another option is to use an Anchor with a ClickListener and JSNI: > > Anchor a = new Anchor("click here", false); > a.addClickListener(new ClickListener() { > public void onClick(Widget w) { > callMyCode(); > } > }); > add(a); > > private static native void callMyCode()/*-{ mycode(); }-*/; > > And, can someone explain when to use > > > the anchor constructor with the 2nd boolean arg 'asHTML' set > > true and when to set it false? > > Marking it true (asHTML) means the text passed is set as the innerHTML, > rather than as the innerText of the anchor element. E.g.: > > add(new Anchor("click here", false, "javascript:mycode();")); > > yields: > >
Re: Compiling in 1.5.3
Yes; gwt.typeArgs is no longer needed in GWT 1.5. Just use generics. On Dec 5, 8:55 pm, Mark <[EMAIL PROTECTED]> wrote: > I still get warnings despite changing my code to generics. Is it > necessary to remove the gwt.typeArgs annotation to get rid of the > warnings? > > -Mark > > On Nov 24, 7:09 am, Jason Morris <[EMAIL PROTECTED]> wrote: > > > You need to switch to using the Java 5 way of declaring Collections (ie: > > using generics): > > > public List toolList = null; > > > slledru wrote: > > > I am trying to move my app from 1.4 to 1.5.3. > > > I am using ant to build and am getting following warnings and would > > > like to get rid of them. > > > What am I doing wrong? > > > I am using JDK1.6. > > > > [java] Scanning source for uses of the deprecated gwt.typeArgs > > > javadoc annotation; please use Java parameterized types instead > > > [java] Type com.sirsidynix.client.request.report.ReportRunInfo > > > [java] Field toolList > > > [java] [WARN] Unable to recognize > > > 'java.util.Listjava.util.List' as a type name (is it fully qualified?) > > > [java] com.google.gwt.core.ext.typeinfo.NotFoundException: Unable > > > to recognize 'java.util.Listjava.util.List' as a type name (is it > > > fully qualified?) > > > [java] at > > > com.google.gwt.core.ext.typeinfo.TypeOracle.parseImpl > > > (TypeOracle.java:892) > > > > And in ReportRunInfo, I have: > > > /** > > > * @gwt.typeArgs > > > java.util.List > > > */ > > > public List toolList = null; --~--~-~--~~~---~--~~ 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: Compiling in 1.5.3
I still get warnings despite changing my code to generics. Is it necessary to remove the gwt.typeArgs annotation to get rid of the warnings? -Mark On Nov 24, 7:09 am, Jason Morris <[EMAIL PROTECTED]> wrote: > You need to switch to using the Java 5 way of declaring Collections (ie: > using generics): > > public List toolList = null; > > slledru wrote: > > I am trying to move my app from 1.4 to 1.5.3. > > I am using ant to build and am getting following warnings and would > > like to get rid of them. > > What am I doing wrong? > > I am using JDK1.6. > > > [java] Scanning source for uses of the deprecated gwt.typeArgs > > javadoc annotation; please use Java parameterized types instead > > [java] Type com.sirsidynix.client.request.report.ReportRunInfo > > [java] Field toolList > > [java] [WARN] Unable to recognize > > 'java.util.Listjava.util.List' as a type name (is it fully qualified?) > > [java] com.google.gwt.core.ext.typeinfo.NotFoundException: Unable > > to recognize 'java.util.Listjava.util.List' as a type name (is it > > fully qualified?) > > [java] at com.google.gwt.core.ext.typeinfo.TypeOracle.parseImpl > > (TypeOracle.java:892) > > > And in ReportRunInfo, I have: > > /** > > * @gwt.typeArgs > > java.util.List > > */ > > public List toolList = null; --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
GWT 1.5.3 build problem with existing app ...
I have been successful with 1.5.2 and wanted to update but am getting: [java] [ERROR] Unable to find 'com/google/gwt/user/ Accessibility.gwt.xml' on your classpath; could be a ty o, or maybe you forgot to include a classpath entry for source? I'm not sure what to look at to fix this or what I am doing wrong. As I mentioned I have had no issues with earlier versions. Any help would be appreciated. --~--~-~--~~~---~--~~ 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: i have a gwt problem how to refer other project in one project
On the eclipse side you include the projects source path in the build list of the other project. In addition, for the command line compiler to work, you need to add an "inherits" line to your *.gwt.XML file to point to the other project just as you would for any of the external google projects: Utility refers to "Utility.gwt.xml" which for me is in com.dave.utility. This will give you access to all the classes in that package. This could be in a separate project, but in this example, they all share the same src top level directory. - Dave On Dec 5, 1:08 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > example : > i have two projects ,ProjectA and ProjectB ;the client code in > ProjectA , i wana this client code to refer one class which is of > the ProjectB ;please help me how to do it ? > Thanks very much! --~--~-~--~~~---~--~~ 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: Your opinion sought: Jetty or Tomcat?
Yay Jetty. On Dec 5, 2:50 pm, "Arthur Kalmenson" <[EMAIL PROTECTED]> wrote: > Well, I didn't say that it promises to increase unit test speeds :P, I > was asking if it would. It does make sense that it would since unit > tests require for hosted mode and tomcat to be launched. > > -- > Arthur Kalmenson > > On Tue, Dec 2, 2008 at 2:43 PM, Alex Epshteyn > > <[EMAIL PROTECTED]> wrote: > > > I've been mulling this over the past couple of weeks, and now I want > > to retract my initial objection about Jetty :) Mainly because, as > > Arthur and others pointed out, it's expected to speed up unit tests > > (which would be a huge win). And you don't need -noserver for most of > > the unit tests you might want to run - the default settings should be > > sufficient. Therefore this is one area where even the "-noserver" > > crowd can benefit from a faster embedded server. > > > On Tue, Nov 25, 2008 at 11:51 PM, AB <[EMAIL PROTECTED]> wrote: > > >> I am using -noserver so it doesnt matter and even if I wasnt, i could > >> live with either. > > --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Recover html elements from GWT?
Hi, I have an existing html file, with a definition like: In my GWT project, is there a way to recover that and use it as the "backing" for my javascript object? Say I define a class in my project: public class Test { int _tx; int _ty; } Is there a way to do something like this: public void onModuleLoad() { Test test = new Test(getElementById("test")); } so now anything I do to my "test" object is manipulating the , and it somehow also added a _tx and _ty member property to the div instance as well? 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 -~--~~~~--~~--~--~---
Re: i have a gwt problem how to refer other project in one project
You can use GWT modules.Project B creates a GWT module (a jar file) used/referenced in project A. 2008/12/5 [EMAIL PROTECTED] <[EMAIL PROTECTED]> > > example : >i have two projects ,ProjectA and ProjectB ;the client code in > ProjectA , i wana this client code to refer one class which is of > the ProjectB ;please help me how to do it ? >Thanks very much! > > > > --~--~-~--~~~---~--~~ 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: Your opinion sought: Jetty or Tomcat?
Well, I didn't say that it promises to increase unit test speeds :P, I was asking if it would. It does make sense that it would since unit tests require for hosted mode and tomcat to be launched. -- Arthur Kalmenson On Tue, Dec 2, 2008 at 2:43 PM, Alex Epshteyn <[EMAIL PROTECTED]> wrote: > > I've been mulling this over the past couple of weeks, and now I want > to retract my initial objection about Jetty :) Mainly because, as > Arthur and others pointed out, it's expected to speed up unit tests > (which would be a huge win). And you don't need -noserver for most of > the unit tests you might want to run - the default settings should be > sufficient. Therefore this is one area where even the "-noserver" > crowd can benefit from a faster embedded server. > > On Tue, Nov 25, 2008 at 11:51 PM, AB <[EMAIL PROTECTED]> wrote: >> >> I am using -noserver so it doesnt matter and even if I wasnt, i could >> live with either. >> > >> > > > > --~--~-~--~~~---~--~~ 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: Mysql usage using RPC in GWT
ok RequestBuilder sends data to the servlet which is running on Tomcat - servlet writes data to the database can you show some example - if you can... give an appropriate link to the info... --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
i have a gwt problem how to refer other project in one project
example : i have two projects ,ProjectA and ProjectB ;the client code in ProjectA , i wana this client code to refer one class which is of the ProjectB ;please help me how to do it ? Thanks very much! --~--~-~--~~~---~--~~ 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: Transfer Objects classes
Prabu, thanks for u’r reply. No way. I've tried that but no success. I add in Customer.gwt.xml to point to right subpackage following GWT documentation to avoid standard package structure. It’s because in my scenario, Java Project A is an existing project and I’m trying to reuse that (DTO’s) just adding gwt.xml files and implementing GWT IsSerializable mark interface. Please, someone have an idea? --~--~-~--~~~---~--~~ 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: Client did not send nnn bytes as expected
Hi Amit, You don't make this easy, do you... o Just to be clear: goodness happens when the client sends 2 TCP packets; which become three IP packets on the wire; which are reassembled by the server into 2 TCP packets. Badness happens when the client sends 2 TCP packets; which become three IP packets on the wire; which are reassembled into one complete TCP packet and 1 incomplete TCP packet. Can you reproduce this in your lab? I'm guessing "no", otherwise you would not have deployed the app... o Do you see a NAK at the client after the dropped fragment? o Pls. try traceroute from your lab and from the client box. What are the differences? o It's now appearing to be an IP issue. The fact that the fragmentation doesn't occur on the larger packet is interesting. o The two separate TCP packets leads to an assumption that you can identify requests from the same client box at the server. IOW, you have an application-level protocol that lets you reassemble the two packets into a single request. I'm sure this is the case, but such a design isn't explicitly stated in your message. Your server application never sees the 2 -> 3 split, since the normal case is that your server app only sees 2 packets from the client. I'm reluctant to say this, but part of this process may require proof that the protocol design is resilient to network transmission errors. o I'd start playing around w/ different packet sizes and transmission rates (via ping) to see if you can trip any triggers. It may be a combination of buffering/congestion between the client and the server. Did you try ping w/ different packet sizes? I realize that you have different servers. Does the connection between the client and server occur over the public switched network or does it use a private circuit? o There have been posts in this thread w/r/t/ SSL and IE. Are they relevant? Cheers, jec On Dec 5, 1:21 am, Amit Kasher <[EMAIL PROTECTED]> wrote: > Hi, > We have spent the past 2 days working on this, and have some new > findings. > > We have made contact to one of our customers who is encountering this > issue more frequently than others, and he granted us access to his > computer (using logmein). We installed WireShark on his computer, as > well as on the server. We managed to reproduced the problem with both > sniffers in action, and analyze the exact correlating TCP segments > according to their sequence and ack numbers. Here are the results. > > This is what happens in the valid state: > The client sends 2 TCP segments for a GWT service calls, which are > supposed to be reassembled to a single PDU which is the entire single > HTTP request. The first segment always contains the HTTP request > header, and the second TCP segment always contains the HTTP request > body. For instance, we see that the client sends a first segment of > size 969 bytes, and a second segment of size 454 bytes. In the server > we see that these 2 segments become 3 segments. The first is still 969 > bytes and contains the HTTP request header; the second is 363 bytes > (80% of the original second segment), and the third is the remaining > 91 bytes (20% of the original 454 bytes). > > In the invalid state, when the problem occurs, the third segment > simply does not arrive in the server. It seems that something in the > way has split the second 454 bytes segment to 2 segments, and only > sent the first one to the server. > > 1. If this is something in the client's machine, how come we don't see > it in the sniffer? (we even tried removing all firewall/antivirus > software, reinstalling the network card driver) > 2. If this is not something in the client's machine, how come some > clients encounter this much more than others, that never encounter > this? > > Can it be some kind of network equipment that some of our clients > (reminder - different ISPs) go through, and others don't? > > Unfortunately, this new info still leaves us clueless... > > On Dec 3, 5:16 pm, jchimene <[EMAIL PROTECTED]> wrote: > > > On Dec 2, 11:20 pm, Amit Kasher <[EMAIL PROTECTED]> wrote: > > > > Hi and thanks again for your responses. > > > No Prob. > > > If this "opportunity for excellence" is as pervasive as you suspect, > > installing software on a client's computer should be a non-starter > > from the perspective that installing it on *any* computer *anywhere on > > the planet* should reliably reproduce the issue. You say that tcpdump > > shows the packet truncation, so I'm not sure I understand the > > requirement to install something on a client machine. My goal in these > > past responses has been to absolutely prove that it's the > > serialization code (by factoring out the serialization code using > > ping), not something peculiar to the transport or session layers. > > > Are you using the public switched network to provide client/server > > connectivity? If not, nothing you've said so far would eliminate you
Re: how to refresh panel
Hi Preeth, Here is my WestPart click implementation,I am able to add the new CenterPart class to the BorderLayout Panel,but it is not refreshing the centerWindow.No error is coming. Please let me know is there any changes I need to do. public WestPart(Panel borderPanel) { this.parent = borderPanel; west.addClickListener(new ClickListener() { public void onClick(Widget sender) { callPanelRefresh(" "); } }); } public void refreshCenter(String s) { CenterPart centerPart=new CenterPart(); parent.add(centerPart.displayCenter(s),new BorderLayoutData (RegionPosition.CENTER)); } @SuppressWarnings("unchecked") public void callPanelRefresh(final String userName) { getServiceInstance().getLabel(userName, new AsyncCallback () { public void onFailure(Throwable caught) { Window.alert("Failed to get response from server"); } public void onFailure(){ Window.alert("The user name or password you entered is not valid. Please try again."); } public void onSuccess(Object result) { String var= result.toString(); Window.alert("After return ..."+var); refreshCenter(var); } }); } --~--~-~--~~~---~--~~ 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: how to refresh panel
Hi Preeth, public WestPart(Panel borderPanel) { this.parent = borderPanel; west.addClickListener(new ClickListener() { public void onClick(Widget sender) { callPanelRefresh(" "); } }); } public void refreshCenter(String s) { CenterPart centerPart=new CenterPart(); parent.add(centerPart.displayCenter(s),new BorderLayoutData (RegionPosition.CENTER)); } @SuppressWarnings("unchecked") public void callPanelRefresh(final String userName) { getServiceInstance().getLabel(userName, new AsyncCallback() { public void onFailure(Throwable caught) { Window.alert("Failed to get response from server"); } public void onFailure(){ Window.alert("The user name or password you entered is not valid. Please try again."); } public void onSuccess(Object result) { String var= result.toString(); Window.alert("After return ..."+var); refreshCenter(var); } }); } --~--~-~--~~~---~--~~ 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: viewport resize listener
yeah, but it is defined as: Definition and Usage The onresize event occurs when a window or frame is resized. which I took to mean what we already get with WindowResizeListener, and not that it fires when an individual element grows or shrinks. On Dec 5, 4:00 pm, "Litty Preeth" <[EMAIL PROTECTED]> wrote: > There is an onresize event in javascript. As per the doc the following tags > support this event: > > , , , , , , , , , > , , , , , , , , , to > , , , , , , , , , , > , , , , , , , , , , > , , , , > > Do you hav any idea if I can use this one? > > - Litty Preeth > > On Fri, Dec 5, 2008 at 6:29 PM, gregor <[EMAIL PROTECTED]> wrote: > > > Hi Litty, > > > > But it will require code change to all > > > the popups that use a glass panel. And also in future some developer may > > > forget to fire a Deffered command when the size changes So i dont > > think > > > its such a good method > > > I'm not sure how you can avoid that, Litty. I mean either the viewport > > widget has to tell the glass panel its size has changed or the glass > > panel has got to repeatedly poll the viewport to see if it has changed > > - I can't think of any other alternatives. > > > AFAIK there is no HTML event specified to be fired if an Element' size > > is changed. There is a DOMAttrModified event but a) I believe IE does > > not implement it, and b) in any case it is only fired if a property > > itself is actually changed. E.g. if the height attribute of an Element > > is set to 100%, then if the browser increases the height of the > > element to accommodate new content, the property remains 100% > > therefore no event fired. I think the offsetHeight is calculated on > > the fly from whatever the pixel height happens to be at the time. > > > If I understand you correctly, you have a number of viewports each of > > which has a glass panel that need to cover its exact area. If you had > > a lot of these, then the Timer polling option doesn't seem such a good > > idea (lots of timers polling away for little purpose most of the > > time). I think I would design my own base class that included both a > > viewport widget and its glass panel (possibly optionally instantiated) > > and use a custom method to add additional content to the viewport that > > fired a DeferredCommand to resize the glass panel (deferred so that it > > does it after the resizing of the viewport's Element is complete and > > offset height & offset width return true values). All the viewports > > could be extended from that. > > > regards > > gregor > > > > I am working with pure GWT. Basically I am using the glass panels for > > modal > > > popups. I set the size of the glass panel as the current view port size > > just > > > before dispalying it. Then the popup is dispalyed. Now on the popup, the > > > user actions causes the size of the popup to change. If the size becomes > > > larger than the previous view port size then the view port size will > > > automatically increase, but the glass panel size remains the same which > > > causes the bottom region of the viewport to be not covered by glass > > panel. > > > Please not that this change of size will not cause a window resize event > > as > > > the window size is not changed, only the document size got changed. (BTW > > i > > > have a windowresize listener on the glass panel so that part is take care > > > of.) > > > > Hope this explains my problem. > > > > Thanks, > > > Litty Preeth > > > > On Thu, Dec 4, 2008 at 4:57 PM, gregor <[EMAIL PROTECTED]> > > wrote: > > > > > I'm not sure I understand your situation right, but: > > > > > if your panel "knows" at run time that it's size has changed (e.g. > > > > from a method that adds the new widget to it) then it could fire a > > > > change event via DeferrerdCommand. The glass panel could be registered > > > > as a listener with it and obtain new width/height offsets. > > > > > On Dec 4, 4:25 am, "Litty Preeth" <[EMAIL PROTECTED]> wrote: > > > > > At run time I add widgets to the page which causes the size of the > > panel > > > > > (scrollable size) to change. > > > > > > Regards, > > > > > Litty Preeth > > > > > > On Wed, Dec 3, 2008 at 7:22 PM, gregor <[EMAIL PROTECTED] > > > > > wrote: > > > > > > > Oh, I see. How is the size of your RootPanel changed then if not by > > > > > > changing the size of the browser window? > > > > > > > On Dec 3, 1:15 pm, "Litty Preeth" <[EMAIL PROTECTED]> wrote: > > > > > > > WindowResizeListener will listen for window resize events only. > > It > > > > wont > > > > > > be > > > > > > > invoked if ur scrollable page size is changed. It ll be notified > > only > > > > if > > > > > > the > > > > > > > WINDOW itself is mazximized, resized etc. > > > > > > > > Regards, > > > > > > > Litty Preeth > > > > > > > > On Wed, Dec 3, 2008 at 4:31 PM, gregor < > > [EMAIL PROTECTED] > > > > > > > wrote: > > > > > > > > > Hi Litty, > > > > > > > > > I use something like this: > > > > > > > > > public class MdDem implements EntryPoi
Re: how to refresh panel
In the WestPart class have a constructor which takes the BorderLayoutPanel as argument and store that in a member variable. Now in the clicklistener in westpart class, create a new CenterPart class and add the centerpart panel to this borderlayout member variable. I dont understand whts the big deal in this?? Or may be I am not getting ur point :-( Regards, Litty Preeth On Fri, Dec 5, 2008 at 5:38 PM, rajasekhar <[EMAIL PROTECTED]> wrote: > > These methods are in LeftContainer and CenterContainer classes. > > CenterContainer class : > public class CenterPart { > Panel panel=new Panel(); > public Panel displayCenter(String s) > { >Window.alert(s); >Button button=new Button(s); > // Window.alert(s); >panel.add(button); > >return panel; > } > > > LeftContainer Class: > > public class WestPart { > > Button west; > > public Panel dispalyButton(String s) > { > Panel panel=new Panel(); > final CheckBox emailCheckBox=new CheckBox(); > emailCheckBox.setText(""); > emailCheckBox.setChecked(true); > panel.add(emailCheckBox); > west=new Button("West"); > west.addClickListener(this); > panel.add( west); > Hyperlink link = new Hyperlink("WEST","WEST"); > panel.add(link); > return panel; > } > > The Main class : > public class PanelRefresh extends Composite implements ClickListener { >Panel panel = new Panel(); >String var="CENTER"; >private Image loadingImg; >Button west1; >Panel centerPanel = new Panel(); >Panel borderPanel= new Panel(); >PanelRefreshServiceAsync panelRefreshService; >StackPanel stackPanel=new StackPanel(); >Viewport viewport; >Panel westPanel=new Panel(); >int count; >Panel southPanel = new Panel(); >PanelRefresh view; >DockPanel parent = null; >public void dispalyLayout(String s) >{ > > //displayWidget(); >stackPanel.clear(); >panel.setBorder(false); >panel.setPaddings(15); >panel.setLayout(new FitLayout()); >borderPanel.setLayout(new BorderLayout()); > >//add north panel >Panel northPanel = new Panel(); >northPanel.setHtml("north panel"); >northPanel.setHeight(32); >northPanel.setBodyStyle("background-color:#88"); >borderPanel.add(northPanel, new BorderLayoutData > (RegionPosition.NORTH)); >WestPart westPart=new WestPart(); > >//add south panel > final CheckBox emailCheckBox=new CheckBox(); >emailCheckBox.setText(""); >emailCheckBox.setChecked(true); > southPanel.setHtml("south panel"); >southPanel.setHeight(100); >southPanel.setBodyStyle("background-color:#CDEB8B"); >southPanel.setCollapsible(true); >southPanel.setTitle("South"); >southPanel.add(emailCheckBox); > >BorderLayoutData southData = new BorderLayoutData > (RegionPosition.SOUTH); >southData.setMinSize(100); >southData.setMaxSize(200); >southData.setMargins(new Margins(0, 0, 0, 0)); >southData.setSplit(true); >borderPanel.add(southPanel, southData); > >//add east panel >Panel eastPanel = new Panel(); >eastPanel.setHtml("east panel"); >eastPanel.setTitle("East Side"); >eastPanel.setCollapsible(true); >eastPanel.setWidth(225); > > >BorderLayoutData eastData = new BorderLayoutData > (RegionPosition.EAST); >eastData.setSplit(true); >eastData.setMinSize(175); >eastData.setMaxSize(400); >eastData.setMargins(new Margins(0, 0, 5, 0)); > >borderPanel.add(eastPanel, eastData); > > >westPanel.setHtml("west panel"); >westPanel.setTitle("West"); >westPanel.setBodyStyle("background-color:#EE"); >westPanel.setCollapsible(true); >westPanel.setWidth(200); > > westPanel.add(westPart.dispalyButton("WEST")); > > >west1=new Button("west1"); >west1.addClickListener(this); > // westPanel.add(west1); > >BorderLayoutData westData = new BorderLayoutData > (RegionPosition.WEST); >westData.setSplit(true); > >westData.setMinSize(175); >westData.setMaxSize(400); >westData.setMargins(new Margins(0, 5, 0, 0)); > >borderPanel.add(westPanel, westData); > >borderPanel.add(new CenterPart().displayCenter("CENTER"), > new > BorderLayoutData(Reg
Re: viewport resize listener
There is an onresize event in javascript. As per the doc the following tags support this event: , , , , , , , , , , , , , , , , , , to , , , , , , , , , , , , , , , , , , , , , , , , Do you hav any idea if I can use this one? - Litty Preeth On Fri, Dec 5, 2008 at 6:29 PM, gregor <[EMAIL PROTECTED]> wrote: > > Hi Litty, > > > But it will require code change to all > > the popups that use a glass panel. And also in future some developer may > > forget to fire a Deffered command when the size changes So i dont > think > > its such a good method > > > > I'm not sure how you can avoid that, Litty. I mean either the viewport > widget has to tell the glass panel its size has changed or the glass > panel has got to repeatedly poll the viewport to see if it has changed > - I can't think of any other alternatives. > > AFAIK there is no HTML event specified to be fired if an Element' size > is changed. There is a DOMAttrModified event but a) I believe IE does > not implement it, and b) in any case it is only fired if a property > itself is actually changed. E.g. if the height attribute of an Element > is set to 100%, then if the browser increases the height of the > element to accommodate new content, the property remains 100% > therefore no event fired. I think the offsetHeight is calculated on > the fly from whatever the pixel height happens to be at the time. > > If I understand you correctly, you have a number of viewports each of > which has a glass panel that need to cover its exact area. If you had > a lot of these, then the Timer polling option doesn't seem such a good > idea (lots of timers polling away for little purpose most of the > time). I think I would design my own base class that included both a > viewport widget and its glass panel (possibly optionally instantiated) > and use a custom method to add additional content to the viewport that > fired a DeferredCommand to resize the glass panel (deferred so that it > does it after the resizing of the viewport's Element is complete and > offset height & offset width return true values). All the viewports > could be extended from that. > > regards > gregor > > > > > > > > > > > > > > > > I am working with pure GWT. Basically I am using the glass panels for > modal > > popups. I set the size of the glass panel as the current view port size > just > > before dispalying it. Then the popup is dispalyed. Now on the popup, the > > user actions causes the size of the popup to change. If the size becomes > > larger than the previous view port size then the view port size will > > automatically increase, but the glass panel size remains the same which > > causes the bottom region of the viewport to be not covered by glass > panel. > > Please not that this change of size will not cause a window resize event > as > > the window size is not changed, only the document size got changed. (BTW > i > > have a windowresize listener on the glass panel so that part is take care > > of.) > > > > Hope this explains my problem. > > > > Thanks, > > Litty Preeth > > > > On Thu, Dec 4, 2008 at 4:57 PM, gregor <[EMAIL PROTECTED]> > wrote: > > > > > I'm not sure I understand your situation right, but: > > > > > if your panel "knows" at run time that it's size has changed (e.g. > > > from a method that adds the new widget to it) then it could fire a > > > change event via DeferrerdCommand. The glass panel could be registered > > > as a listener with it and obtain new width/height offsets. > > > > > On Dec 4, 4:25 am, "Litty Preeth" <[EMAIL PROTECTED]> wrote: > > > > At run time I add widgets to the page which causes the size of the > panel > > > > (scrollable size) to change. > > > > > > Regards, > > > > Litty Preeth > > > > > > On Wed, Dec 3, 2008 at 7:22 PM, gregor <[EMAIL PROTECTED] > > > > > wrote: > > > > > > > Oh, I see. How is the size of your RootPanel changed then if not by > > > > > changing the size of the browser window? > > > > > > > On Dec 3, 1:15 pm, "Litty Preeth" <[EMAIL PROTECTED]> wrote: > > > > > > WindowResizeListener will listen for window resize events only. > It > > > wont > > > > > be > > > > > > invoked if ur scrollable page size is changed. It ll be notified > only > > > if > > > > > the > > > > > > WINDOW itself is mazximized, resized etc. > > > > > > > > Regards, > > > > > > Litty Preeth > > > > > > > > On Wed, Dec 3, 2008 at 4:31 PM, gregor < > [EMAIL PROTECTED] > > > > > > > wrote: > > > > > > > > > Hi Litty, > > > > > > > > > I use something like this: > > > > > > > > > public class MdDem implements EntryPoint { > > > > > > > > >private MainPage main = new MainPage(); > > > > > > >private ResizeListener windowListener = new > ResizeListener(); > > > > > > > > >public void onModuleLoad() { > > > > > > >RootPanel.get().add(main); > > > > > > >Window.addWindowResizeListener(windowListener); > > > > > > >// initial sizing call if you need it > > > > > > >windowListener.onWindowResized(Window.getClie
Re: Gwt + Html Templates
Here is my solution, based on the fact that RootPanel.get() gives you an acces to any element of the page... : 1 : first do your template in HTML, with a CSS layout or whatever you like. There are tons of css based layout at a google click :-) 2 : in your HTML file, define the 3 areas with tags (with "id"s attributes) for example (with an ugly table !): 3 : Next, in your GWT module, create 3 panels, and add them in the div tags with RootPanel.get("id"); Something like : HorizontalPanel headerPanel; VerticalPanel columnPanel; CellPanel workPanel; // Init panels, add widgets, etc RootPanel.get("header").add(headerPanel); RootPanel.get("leftColumn").add(columnPanel); RootPanel.get("workingArea").add(workPanel); et voila :-) I've used this mechanism several time, it's very easy to do, and it's also a very simple way to reuse an existing HTML templates. Or if you work with a web designer. GWT is basicaly a DOM manipulator, in fact. Regards, O. 2008/12/5 jake H <[EMAIL PROTECTED]> > > Hello i have made a simple template with the use of dockpanel etc > like the mail application. > Sth like this > > > 1 | > -- > | | > 2 |3 | >| | > -- > > Even though it is what i was thinking of , its insufficient of lack of > design. > So i m asking if it is possible to find a html template for example, > that are plenty in the market, with this format > and incorporate it into my GWT application. And if this is possible, > how can i do that > Ty. > > > --~--~-~--~~~---~--~~ 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: Popup Panel
It might be easier just to pass 2 Command objects. 1 for when the yes button is clicked and 1 for when the no button is clicked. Then in your click handler just execute the command via DeferredCommand. On Dec 4, 3:29 pm, "Pavel Byles" <[EMAIL PROTECTED]> wrote: > You can pass a reference to the calling class to Alert class and call a > method in the calling class.. here's an example: > > public class CallingClass { > public CallingClass() { > panel.Add(new AlertClass(this)); > } > > public void yesButtonAction() { > // Do yes button action here > } > > } > > public class AlertClass { > private CallingClass callingClass; > > public AlertClass(CallingClass reference) { > this.callingClass = reference; > .. > Yes = new Button("Yes",new ClickListener(){ > public void onClick(Widget sender) { > callingClass.yesButtonAction(); > result="yes"; > } > }); > } > > } > > This might work. > > On Thu, Dec 4, 2008 at 8:05 AM, jagadesh <[EMAIL PROTECTED]>wrote: > > > > > > > Hi Guys > > > iam developing an pageheader type of widget.the real thing i donot > > want to user Window.confirm(); to showing the user a window with yes > > and no buttons . i want my own widget to show a popuppanel with a > > horizontal panel with 2 buttons like yes and no. so when a user click > > on yes a action is performed and when on no another action is done. > > iam successfull in creating a widget called AlertBox . > > here is a sample code .. > > > public AlertClass() { > > >popupPanel=new PopupPanel(); > >popupPanel.setTitle("Popup Panel"); > > >panel = new HorizontalPanel(); > >panel.setWidth("100%"); > > >messageLabel = new HTML(); > >//messageLabel.setText(message); > >messageLabel.setText("jagadesh"); > >panel.add(messageLabel); > >panel.setCellVerticalAlignment(messageLabel, > > HorizontalPanel.ALIGN_MIDDLE); > > >Yes=new Button("Yes",new ClickListener(){ > >public void onClick(Widget sender) { > >result="yes"; > >} > >}); > >Yes.setWidth("40px"); > > >No=new Button("No",new ClickListener(){ > >public void onClick(Widget sender) { > >result="no"; > >} > >}); > >No.setWidth("40px"); > > >panel.add(Yes); > >panel.setCellHorizontalAlignment(messageLabel, > > HorizontalPanel.ALIGN_RIGHT); > >panel.add(No); > >panel.setCellHorizontalAlignment(messageLabel, > > HorizontalPanel.ALIGN_RIGHT); > > >Image closeIcon = new Image("images/cross.white.png"); > >closeIcon.setStyleName("close-icon"); > >panel.add(closeIcon); > >panel.setCellHorizontalAlignment(closeIcon, > > HorizontalPanel.ALIGN_RIGHT); > > >closeIcon.addClickListener(new ClickListener() { > >public void onClick(Widget sender) { > >panel.setVisible(false); > >panel.removeStyleDependentName("Error"); > >panel.removeStyleDependentName("Success"); > >} > >}); > > >popupPanel.add(panel); > >popupPanel.show(); > >initWidget(popupPanel); > > >} > > > now my requirement is iam creating an object of the AlertClass in > > another class and showing the pageheader. but when a user click on the > > yes button an action should be done. iam unable to catch which button > > is clicked. > > how can i catch which button is clicked now.can u tell me what is the > > use of hasWidgets interface. > > > thank in advance for every help. > > > thank u,. > > jagadesh > > -- > -Pav --~--~-~--~~~---~--~~ 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: PagingScrollTable + how to sort locally
Hi Pohl, Thanks for the idea. I figured there could be a way around it maybe, but from what I read about the gen2 PagingScrollTable from the incubator's synopsis, it seemed like they mentioned the sorting can be done locally as well, which makes me think that there might be a more straight forward way of doing this? I was hoping to see if anyone was aware of that. This idea does sound like a likely alternative though. I'll wait a little longer before I finally make a decision. If i do come to know of anything I'll post it here as well to keep you and others informed. Thanks again. Suri On Dec 4, 9:31 pm, pohl <[EMAIL PROTECTED]> wrote: > On Dec 4, 8:13 pm, Suri <[EMAIL PROTECTED]> wrote: > > > Hi all, > > I'm trying to figure out how you can sort locally using the > > PagingScroll table. Not sure what the syntax is so any help is > > appreciated. Thanks > > > Suri > > I've just started using the PagingScrollTable myself, but I think I > can point you in the right direction. > > There is a TableModel that you need to define in order to get the > PagingScrollTable to work at all. This class defines one method that > you need to implement: > > public void requestRows(Request request, Callback > callback) ; > > You probably already know that you can interrogate the Request object > here to determine the start row and number of rows that you need to > obtain data for. > > int start = request.getStartRow(); > int max = request.getNumRows(); > > You can also interrogate it for some other things, one of them being a > ColumnSortList object: > > ColumnSortList csList = request.getColumnSortList(); > > From this object you can get some other things: > > int column = csList.getPrimaryColumn(); > ColumnSortInfo info = csList.getPrimaryColumnSortInfo() > boolean isAscending = csList.isPrimaryAscending(); > > Now you said you wanted to sort on the client side, so I assume you've > got a Collection of objects and some Comparators. I would guess that > You could use the above to determine which Comparator to use. Then > you would sort the collection and and return the range of items from > start to start+max. > > I haven't done this myself yet, so read my advice with a skeptical > eye. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Gwt + Html Templates
Hello i have made a simple template with the use of dockpanel etc like the mail application. Sth like this 1 | -- | | 2 |3 | | | -- Even though it is what i was thinking of , its insufficient of lack of design. So i m asking if it is possible to find a html template for example, that are plenty in the market, with this format and incorporate it into my GWT application. And if this is possible, how can i do that Ty. --~--~-~--~~~---~--~~ 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: 1.6 Users
> Where can I get more info on 1.6 features? There are a couple of good gwt sources: The gwt-contributors list ongwt.com gwtsite.com gwtnow.com del.icio.us/tag/gwt --~--~-~--~~~---~--~~ 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: viewport resize listener
Hi Litty, > But it will require code change to all > the popups that use a glass panel. And also in future some developer may > forget to fire a Deffered command when the size changes So i dont think > its such a good method > I'm not sure how you can avoid that, Litty. I mean either the viewport widget has to tell the glass panel its size has changed or the glass panel has got to repeatedly poll the viewport to see if it has changed - I can't think of any other alternatives. AFAIK there is no HTML event specified to be fired if an Element' size is changed. There is a DOMAttrModified event but a) I believe IE does not implement it, and b) in any case it is only fired if a property itself is actually changed. E.g. if the height attribute of an Element is set to 100%, then if the browser increases the height of the element to accommodate new content, the property remains 100% therefore no event fired. I think the offsetHeight is calculated on the fly from whatever the pixel height happens to be at the time. If I understand you correctly, you have a number of viewports each of which has a glass panel that need to cover its exact area. If you had a lot of these, then the Timer polling option doesn't seem such a good idea (lots of timers polling away for little purpose most of the time). I think I would design my own base class that included both a viewport widget and its glass panel (possibly optionally instantiated) and use a custom method to add additional content to the viewport that fired a DeferredCommand to resize the glass panel (deferred so that it does it after the resizing of the viewport's Element is complete and offset height & offset width return true values). All the viewports could be extended from that. regards gregor > I am working with pure GWT. Basically I am using the glass panels for modal > popups. I set the size of the glass panel as the current view port size just > before dispalying it. Then the popup is dispalyed. Now on the popup, the > user actions causes the size of the popup to change. If the size becomes > larger than the previous view port size then the view port size will > automatically increase, but the glass panel size remains the same which > causes the bottom region of the viewport to be not covered by glass panel. > Please not that this change of size will not cause a window resize event as > the window size is not changed, only the document size got changed. (BTW i > have a windowresize listener on the glass panel so that part is take care > of.) > > Hope this explains my problem. > > Thanks, > Litty Preeth > > On Thu, Dec 4, 2008 at 4:57 PM, gregor <[EMAIL PROTECTED]> wrote: > > > I'm not sure I understand your situation right, but: > > > if your panel "knows" at run time that it's size has changed (e.g. > > from a method that adds the new widget to it) then it could fire a > > change event via DeferrerdCommand. The glass panel could be registered > > as a listener with it and obtain new width/height offsets. > > > On Dec 4, 4:25 am, "Litty Preeth" <[EMAIL PROTECTED]> wrote: > > > At run time I add widgets to the page which causes the size of the panel > > > (scrollable size) to change. > > > > Regards, > > > Litty Preeth > > > > On Wed, Dec 3, 2008 at 7:22 PM, gregor <[EMAIL PROTECTED]> > > wrote: > > > > > Oh, I see. How is the size of your RootPanel changed then if not by > > > > changing the size of the browser window? > > > > > On Dec 3, 1:15 pm, "Litty Preeth" <[EMAIL PROTECTED]> wrote: > > > > > WindowResizeListener will listen for window resize events only. It > > wont > > > > be > > > > > invoked if ur scrollable page size is changed. It ll be notified only > > if > > > > the > > > > > WINDOW itself is mazximized, resized etc. > > > > > > Regards, > > > > > Litty Preeth > > > > > > On Wed, Dec 3, 2008 at 4:31 PM, gregor <[EMAIL PROTECTED] > > > > > wrote: > > > > > > > Hi Litty, > > > > > > > I use something like this: > > > > > > > public class MdDem implements EntryPoint { > > > > > > > private MainPage main = new MainPage(); > > > > > > private ResizeListener windowListener = new ResizeListener(); > > > > > > > public void onModuleLoad() { > > > > > > RootPanel.get().add(main); > > > > > > Window.addWindowResizeListener(windowListener); > > > > > > // initial sizing call if you need it > > > > > > windowListener.onWindowResized(Window.getClientWidth(), > > > > > > Window.getClientHeight()); > > > > > > } > > > > > > > // window resize listener > > > > > > private class ResizeListener implements WindowResizeListener { > > > > > > > private int width, height; > > > > > > private boolean pending; > > > > > > private Command command; > > > > > > > ResizeListener() { > > > > > > command = new Command() { > > > > > > public void execute() { > > > > > > pending = false; > > > > > > main.adjustSize(wid
Re: 1.6 Users
Where can I get more info on 1.6 features? --~--~-~--~~~---~--~~ 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: How to use user defined classes (in a JAR file) in GWT client code
Hi Isaac, Thank you very much! Its working fine after adding a .gwt.xml file in my Model project to make it as a Module. Before read your reply I was thinking to duplicate the classes for GWT application. Thanks again! ...Prabu On Dec 4, 11:45 pm, "Isaac Truett" <[EMAIL PROTECTED]> wrote: > > What needs to be done to use the classes which are not defined in > > "com.xxx.client" package of GWT project? > > Every class used on the client side has to be included in a module > that has to either be or be included by your "main" module. Now, it > doesn't strictly have to be in a "client" package since you can define > any arbitrary package to contain translatable source. > > For details, see the project documentation: > > http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=goog... > > Or try any of the many previous discussions on this topic, such as this one: > > http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa... > > - Isaac > > > > On Thu, Dec 4, 2008 at 6:08 AM, Prabu <[EMAIL PROTECTED]> wrote: > > > Can anyone help me to resolve my issue? > > > How to use the DataModel classes (User defined data model like > > 'Customer') across different projects. The Customer.class is shared > > by a GWT application and RMI server application. The Customer.class is > > in a JAR file which will be used by more than one project. Following > > is the scenario, > > > To show the customer details, the GWT Client request the GWT Service > > and GWT service request the RMI server App. When GWT client receives > > the customer object, it will be given to appropriate View class to > > show in the UI. > > > After I add the reference to DataModel.jar in GWT application , when > > I try to define a variable for "Customer" type, its giving " > > com.xxx.datamodel.Customer can not be found in source packages. Check > > the inheritance chain from your module; it may not be inheriting a > > required module or a module may not be adding its source path entries > > properly". > > > What needs to be done to use the classes which are not defined in > > "com.xxx.client" package of GWT project? > > > It will be really helpful if someone can give an Idea! I am using GWT > > 1.5 and GWT Designer plug-in. > > > Thanks, > > > Prabu- Hide quoted text - > > - Show quoted text - --~--~-~--~~~---~--~~ 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: how to refresh panel
These methods are in LeftContainer and CenterContainer classes. CenterContainer class : public class CenterPart { Panel panel=new Panel(); public Panel displayCenter(String s) { Window.alert(s); Button button=new Button(s); // Window.alert(s); panel.add(button); return panel; } LeftContainer Class: public class WestPart { Button west; public Panel dispalyButton(String s) { Panel panel=new Panel(); final CheckBox emailCheckBox=new CheckBox(); emailCheckBox.setText(""); emailCheckBox.setChecked(true); panel.add(emailCheckBox); west=new Button("West"); west.addClickListener(this); panel.add( west); Hyperlink link = new Hyperlink("WEST","WEST"); panel.add(link); return panel; } The Main class : public class PanelRefresh extends Composite implements ClickListener { Panel panel = new Panel(); String var="CENTER"; private Image loadingImg; Button west1; Panel centerPanel = new Panel(); Panel borderPanel= new Panel(); PanelRefreshServiceAsync panelRefreshService; StackPanel stackPanel=new StackPanel(); Viewport viewport; Panel westPanel=new Panel(); int count; Panel southPanel = new Panel(); PanelRefresh view; DockPanel parent = null; public void dispalyLayout(String s) { //displayWidget(); stackPanel.clear(); panel.setBorder(false); panel.setPaddings(15); panel.setLayout(new FitLayout()); borderPanel.setLayout(new BorderLayout()); //add north panel Panel northPanel = new Panel(); northPanel.setHtml("north panel"); northPanel.setHeight(32); northPanel.setBodyStyle("background-color:#88"); borderPanel.add(northPanel, new BorderLayoutData (RegionPosition.NORTH)); WestPart westPart=new WestPart(); //add south panel final CheckBox emailCheckBox=new CheckBox(); emailCheckBox.setText(""); emailCheckBox.setChecked(true); southPanel.setHtml("south panel"); southPanel.setHeight(100); southPanel.setBodyStyle("background-color:#CDEB8B"); southPanel.setCollapsible(true); southPanel.setTitle("South"); southPanel.add(emailCheckBox); BorderLayoutData southData = new BorderLayoutData (RegionPosition.SOUTH); southData.setMinSize(100); southData.setMaxSize(200); southData.setMargins(new Margins(0, 0, 0, 0)); southData.setSplit(true); borderPanel.add(southPanel, southData); //add east panel Panel eastPanel = new Panel(); eastPanel.setHtml("east panel"); eastPanel.setTitle("East Side"); eastPanel.setCollapsible(true); eastPanel.setWidth(225); BorderLayoutData eastData = new BorderLayoutData (RegionPosition.EAST); eastData.setSplit(true); eastData.setMinSize(175); eastData.setMaxSize(400); eastData.setMargins(new Margins(0, 0, 5, 0)); borderPanel.add(eastPanel, eastData); westPanel.setHtml("west panel"); westPanel.setTitle("West"); westPanel.setBodyStyle("background-color:#EE"); westPanel.setCollapsible(true); westPanel.setWidth(200); westPanel.add(westPart.dispalyButton("WEST")); west1=new Button("west1"); west1.addClickListener(this); // westPanel.add(west1); BorderLayoutData westData = new BorderLayoutData (RegionPosition.WEST); westData.setSplit(true); westData.setMinSize(175); westData.setMaxSize(400); westData.setMargins(new Margins(0, 5, 0, 0)); borderPanel.add(westPanel, westData); borderPanel.add(new CenterPart().displayCenter("CENTER"), new BorderLayoutData(RegionPosition.CENTER)); // displayCenter(var); panel.add(borderPanel); viewport= new Viewport(panel); //initWidget(panel); } --~--~-~--~~~---~--~~ 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: GWT File Upload and PHP
Thank you Thomas I was working in hosted mode but when I compiled it and ran it off my server it is working now. Thank you for taking the time reply to my newbie thread. On Dec 4, 6:02 pm, Thomas Broyer <[EMAIL PROTECTED]> wrote: > On 4 déc, 20:08, JohnofLong <[EMAIL PROTECTED]> wrote: > > > I am having issues with my GWT application being able to upload > > images. My html form and PHP file work fine but when I try and upload > > an image with my GWT app and my PHP file it does not work and I get a > > null response. > [...] > > form.setAction("http://www.myurl.com/phpwrite/upload.php";); > [...] > > form.addFormHandler(new FormHandler() { > > public void onSubmitComplete(FormSubmitCompleteEvent event) { > > Window.alert(event.getResults()); > > } > > public void onSubmit(FormSubmitEvent event) { > > > } > > }); > > If your GWT app isn't itself running fromhttp://www.myurl.com, then > you'll face the Same-Origin Policy which will prevent you from reading > the server response's content, and event.getResults() will be null. > > That's explained in the JavaDoc (in the "Tip" > subsection):http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/g...() > > > // Add image and button to the RootPanel > > RootPanel.get().add(form); > > } > > private boolean isValidFileName() { > > String fn = fileName.getText(); > > Window.alert(fn); > > if(fn.contains(".")) { > > Window.alert("Not a valid file name no extensions > > required"); > > return false; > > } > > else { > > return true; > > } > > } > > > } > > > PHP Code > > > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> > > http://www.w3.org/1999/xhtml";> > > > > Untitled Document > > > > > > > > > > > // Where the file is going to be placed > > $target_path = "files/"; > > > /* Add the original filename to our target path. > > Result is "uploads/filename.extension" */ > > $target_path = $target_path . basename( $_FILES['uploadedfile'] > > ['name']); > > > $target_path = "files/"; > > > $target_path = $target_path . basename( $_FILES['uploadedfile'] > > ['name']); > > > if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], > > $target_path)) { > > echo "The file ". basename( $_FILES['uploadedfile']['name']). > > " has been uploaded";} else{ > > > echo "There was an error uploading the file, please try again!";} > > > ?> > > > > > > > > HTML Form: > > > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> > > http://www.w3.org/1999/xhtml";> > > > > Untitled Document > > > > > > > > > > > method="POST"> > > > > Choose a file to upload: > > > > > > > > > --~--~-~--~~~---~--~~ 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: Gmail like grid
There is scrolltable in the incubator, http://code.google.com/p/ftr-gwt-library/ or a few others (search label:gwt in code.google.com). On Dec 5, 11:07 pm, Max <[EMAIL PROTECTED]> wrote: > I tried to code grid like gmail has. Using eclipse, overflow:hidden; > white-space:nowrap; css. > > But it does work well enough. > > Is there a ready made GWT compoment that implements grids with > resizable columns like gmail and/or spreadsheet has? --~--~-~--~~~---~--~~ 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: Charting capabilities under GWT
Hi Miguel, We have successfully integrated amcharts.com into our application. It was very easy, I even think there are some examples posted in a similar thread a while ago. We tried a couple of other methods (jfreechart -> image), xmlswf, openflash, gwtchart but found amcharts the best combination of interaction and look. Joe On Dec 5, 10:07 pm, Lonifasiko <[EMAIL PROTECTED]> wrote: > Before taking the final decision of using GWT for our new web > application, I wanted to know which options I have in order to > generate graphs and charts inside a GWT application. > > In fact, these charting cappabilities are the most important part of > the application for our customer, thus, it's a requisite that GWT > application lets us integrate and generate good graphs. Data for these > graphs would be retrieved from a MySQL database, using servlets and > GWT-RPC to bypass data from server to client. > > The more advanced the graphs are, the better, no matter if opensource > or commercial. For us would be awesome to let users somehow interact > with charts at client-side, you know, effects and actions Flash graphs > already do for example. > > Any advice around charting possibilities under GWT will be greatly > appreciated. Thanks very much in advance. > > -- > Miguel > Blog:http://lonifasiko.blogspot.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: 1.6 Users
Hi Thomas, We are using 1.5.3 as well. I have a read a few blog posts that oophm is ready and usable at the moment - is that correct? Joe On Dec 5, 9:49 pm, Thomas Broyer <[EMAIL PROTECTED]> wrote: > On 5 déc, 02:53, Joe Cole <[EMAIL PROTECTED]> wrote: > > > We are itching to use 1.6, especially the new async loading features > > and oophm. > > Just a note to say that OOPHM is targetted to 2.0, not 1.6. > > I'm using 1.5.3 in production; but some people here have said they're > developping against 1.6 --~--~-~--~~~---~--~~ 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: Transfer Objects classes
You may try this, Change the package name in Project1 as com->mypack->client-> Customer.java com->mypack-> Customer.gwt.xml and Customer.gwt.xml This may work ..Prabu On Dec 5, 12:08 am, Jason Kreigg <[EMAIL PROTECTED]> wrote: > Hi experts, > > GWT Version: 1.4. > I’m facing a problem trying to use transfer objects classes. I > understand that any reference in client package is rendered into > javascript files. For this reason, classes should be serializable. > I’ve created a new java project where are some transfer objects > classes to exchange data between server and client packages. > > Java Project A > com->mypack->classes-> Customer.java > com->mypack-> Customer.gwt.xml > > GWT Project > source->com->mypack2->RequestForm.gwt.xml > source->com->mypack2->client->IRequestFormService.java > source->com->mypack2->client->IRequestFormServiceAsync.java > source->com->mypack2->client->RequestForm.java > source->com->mypack2->public->RequestForm.jsp > source->com->mypack2->server->RequestFormService.java > > RequestForm.gwt.xml: > > > > > > > Customer.gwt.xml > > > > > I’ve exported Java Project A with java source into JAR file and add > the JAR path into RequestForm-compile.cmd (@java –cp). Customer class > implements Serializable (java.io.Serializable). > > When I run RequestForm-compile.cmd, I’m getting this error: > C:\XP\Java\workplace\projectweb>RequestForm-compile.cmd > Analyzing source in module 'br.com.neoenergia.coelba.RequestForm' > [ERROR] Errors in 'C:\XP\Java\workplace\projectweb\source\com > \mypack2\client\IRequestFormService.java' > [ERROR] Line 11: The import com.mypack cannot be resolved > [ERROR] Line 23: Customer cannot be resolved to a type > [ERROR] Errors in 'C:\XP\Java\workplace\projectweb\source\com > \mypack2\client\RequestForm.java' > [ERROR] Line 91: IRequestFormService cannot be resolved > [ERROR] Line 92: IRequestFormService cannot be resolved > [ERROR] Cannot proceed due to previous errors > [ERROR] Build failed > > IRequestFormService.java > Line 11: import com.mypack.classes.*; > Line 23: public Customer getCustomer(); > > RequestForm.java > Line 91: requestFormService = IRequestFormService.Util.getInstance(); > Line 92: urlBase = IRequestFormService.Util.getURL(); > > Someone have an idea what may be wrong? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
GWTShell and facelet.
Hi, I'm facing a strange issue. I'm using GWT within a facelet page. This means that I have the following URL http://myserver:8080/MyApp/conf/test.faces "test.faces" is resolved to "test.xtml" by the servlet. Compiled mode works fine. But in hosted mode, the module is not loaded. No errors, no traces, nothing. However, the static HTML is displayed ! I tried the verbose mode, but it didn't help. Any clue ? :-) --~--~-~--~~~---~--~~ 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: how to refresh panel
Whr are these methods written? - public Panel leftPanel(String s) & public Panel centerPanel(String s) On Fri, Dec 5, 2008 at 3:48 PM, rajasekhar <[EMAIL PROTECTED]> wrote: > > Hi Preeth, > > In my case it is diffrent because I am adding these two > classes to main class. > > LeftSide class is : > > public Panel leftPanel(String s) > { > Panel panel=new Panel(); > final CheckBox emailCheckBox=new CheckBox(); > emailCheckBox.setText(""); > emailCheckBox.setChecked(true); > panel.add(emailCheckBox); > west=new Button("West"); > west.addClickListener(this); > panel.add( west); > return panel; > } > > Center Classs is : > public Panel centerPanel(String s) > { > Panel panel=new Panel(); > panel.add(new Button("Center")); >return panel; > } > > Main class is: >westPanel.setHtml("west panel"); >westPanel.setTitle("West"); >westPanel.setBodyStyle("background-color:#EE"); >westPanel.setCollapsible(true); >westPanel.setWidth(200); > >westPanel.add(westPart.leftPanel("WEST"));//adding leftpanel > class > > >west1=new Button("west1"); >west1.addClickListener(this); >westPanel.add(west1); > >BorderLayoutData westData = new BorderLayoutData > (RegionPosition.WEST); >westData.setSplit(true); > >westData.setMinSize(175); >westData.setMaxSize(400); >westData.setMargins(new Margins(0, 5, 0, 0)); > >borderPanel.add(westPanel, westData); > borderPanel.add(centerPanel, new BorderLayoutData > (RegionPosition.CENTER));//adding right panelclass > > } > > left and center classes are returning panels. Not the buttons > (widgets). > > Please let me know how where I can implement the click functionality I > mean in main class or leftside class.If the button is in same class I > am able to refresh the center part. > > > Please help me on this regard how to achieve this. > > > > > > > > --~--~-~--~~~---~--~~ 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: how to refresh panel
Hi Preeth, In my case it is diffrent because I am adding these two classes to main class. LeftSide class is : public Panel leftPanel(String s) { Panel panel=new Panel(); final CheckBox emailCheckBox=new CheckBox(); emailCheckBox.setText(""); emailCheckBox.setChecked(true); panel.add(emailCheckBox); west=new Button("West"); west.addClickListener(this); panel.add( west); return panel; } Center Classs is : public Panel centerPanel(String s) { Panel panel=new Panel(); panel.add(new Button("Center")); return panel; } Main class is: westPanel.setHtml("west panel"); westPanel.setTitle("West"); westPanel.setBodyStyle("background-color:#EE"); westPanel.setCollapsible(true); westPanel.setWidth(200); westPanel.add(westPart.leftPanel("WEST"));//adding leftpanel class west1=new Button("west1"); west1.addClickListener(this); westPanel.add(west1); BorderLayoutData westData = new BorderLayoutData (RegionPosition.WEST); westData.setSplit(true); westData.setMinSize(175); westData.setMaxSize(400); westData.setMargins(new Margins(0, 5, 0, 0)); borderPanel.add(westPanel, westData); borderPanel.add(centerPanel, new BorderLayoutData (RegionPosition.CENTER));//adding right panelclass } left and center classes are returning panels. Not the buttons (widgets). Please let me know how where I can implement the click functionality I mean in main class or leftside class.If the button is in same class I am able to refresh the center part. Please help me on this regard how to achieve this. --~--~-~--~~~---~--~~ 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: Gmail like grid
I think this is the reason so many ppl using ext gwt or gwt ext? On Fri, Dec 5, 2008 at 6:07 PM, Max <[EMAIL PROTECTED]> wrote: > > I tried to code grid like gmail has. Using eclipse, overflow:hidden; > white-space:nowrap; css. > > But it does work well enough. > > Is there a ready made GWT compoment that implements grids with > resizable columns like gmail and/or spreadsheet has? > > > --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Gmail like grid
I tried to code grid like gmail has. Using eclipse, overflow:hidden; white-space:nowrap; css. But it does work well enough. Is there a ready made GWT compoment that implements grids with resizable columns like gmail and/or spreadsheet has? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Charting capabilities under GWT
Before taking the final decision of using GWT for our new web application, I wanted to know which options I have in order to generate graphs and charts inside a GWT application. In fact, these charting cappabilities are the most important part of the application for our customer, thus, it's a requisite that GWT application lets us integrate and generate good graphs. Data for these graphs would be retrieved from a MySQL database, using servlets and GWT-RPC to bypass data from server to client. The more advanced the graphs are, the better, no matter if opensource or commercial. For us would be awesome to let users somehow interact with charts at client-side, you know, effects and actions Flash graphs already do for example. Any advice around charting possibilities under GWT will be greatly appreciated. Thanks very much in advance. -- Miguel Blog: http://lonifasiko.blogspot.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: 1.6 Users
On 5 déc, 02:53, Joe Cole <[EMAIL PROTECTED]> wrote: > We are itching to use 1.6, especially the new async loading features > and oophm. Just a note to say that OOPHM is targetted to 2.0, not 1.6. I'm using 1.5.3 in production; but some people here have said they're developping against 1.6 --~--~-~--~~~---~--~~ 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: Popup center problem
Hi, Sorry for the delay but my post didn't appear when I submit it. It appear the next day and it was lost in the nth page... So, I already tried something like this... First I tried to set the popup size to the image size's, but in the method "show" just after the image.setUrl(); the image size's is [0,0] and that it has the same behaviour that if I not set the popup size. My second test was to set, has you said, the popup size to an arbitrery size like [300,300], but it cause my image fit to this size... This is not suitable because I need to display my image to its really size. So I'm wondering if is there a way to know the really image size before displaying it ? Maybe by prefetching it ? Regards, Rimimi. On 1 déc, 19:15, "rudolf michael" <[EMAIL PROTECTED]> wrote: > you need to set the size of your popup before you show/center it. > glass.setSize("300","300"); > > On Mon, Dec 1, 2008 at 11:54 AM, Rimimi <[EMAIL PROTECTED]> wrote: > > > Hi all, > > > I have a little problem with the PopupPanel. There is my class : > > > public class PopupImage implements ClickListener, PopupListener { > > > private static PopupImage singleton = null; > > private PopupPanel popup = null; > > private PopupPanel glass = null; > > private Image image = null; > > > private PopupImage() { > > image = new Image(); > > image.addStyleName("popup-image"); > > image.addClickListener(this); > > glass = new PopupPanel(false, false); > > glass.setStylePrimaryName("popup-glass"); > > popup = new PopupPanel(true, false); > > popup.setWidget(image); > > popup.addPopupListener(this); > > popup.setAnimationEnabled(true); > > } > > > public void show(String imageURL) { > > image.setUrl(imageURL); > > glass.show(); > > popup.center(); > > } > > > public void onClick(Widget widget) { > > popup.hide(); > > glass.hide(); > > } > > > public void onPopupClosed(PopupPanel popup, boolean autoClosed) { > > if (autoClosed) { > > glass.hide(); > > } > > } > > > public static PopupImage getInstance() { > > if (singleton == null) { > > singleton = new PopupImage(); > > } > > return singleton; > > } > > } > > > As you can see the only way to use this class is to call : > > PopupImage.getInstance().show("anImageURL"); > > > So when I use it, on the first call neither the animation nor the > > center method works. Indeed the image appear directly and not on the > > center. > > But when I recall the show method then all works correctly only if I > > use the same url, e.g the same image size's. > > > I thought the problem was that my popup doesn't know the size of the > > image before showing it, and I tried to fiw this by many ways but I > > failed each time :'-( . > > > Someone have an idea ? > > > Thx. > > > Regards, > > Rimimi --~--~-~--~~~---~--~~ 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: Client did not send nnn bytes as expected
Hi, We have spent the past 2 days working on this, and have some new findings. We have made contact to one of our customers who is encountering this issue more frequently than others, and he granted us access to his computer (using logmein). We installed WireShark on his computer, as well as on the server. We managed to reproduced the problem with both sniffers in action, and analyze the exact correlating TCP segments according to their sequence and ack numbers. Here are the results. This is what happens in the valid state: The client sends 2 TCP segments for a GWT service calls, which are supposed to be reassembled to a single PDU which is the entire single HTTP request. The first segment always contains the HTTP request header, and the second TCP segment always contains the HTTP request body. For instance, we see that the client sends a first segment of size 969 bytes, and a second segment of size 454 bytes. In the server we see that these 2 segments become 3 segments. The first is still 969 bytes and contains the HTTP request header; the second is 363 bytes (80% of the original second segment), and the third is the remaining 91 bytes (20% of the original 454 bytes). In the invalid state, when the problem occurs, the third segment simply does not arrive in the server. It seems that something in the way has split the second 454 bytes segment to 2 segments, and only sent the first one to the server. 1. If this is something in the client's machine, how come we don't see it in the sniffer? (we even tried removing all firewall/antivirus software, reinstalling the network card driver) 2. If this is not something in the client's machine, how come some clients encounter this much more than others, that never encounter this? Can it be some kind of network equipment that some of our clients (reminder - different ISPs) go through, and others don't? Unfortunately, this new info still leaves us clueless... On Dec 3, 5:16 pm, jchimene <[EMAIL PROTECTED]> wrote: > On Dec 2, 11:20 pm, Amit Kasher <[EMAIL PROTECTED]> wrote: > > > Hi and thanks again for your responses. > > No Prob. > > If this "opportunity for excellence" is as pervasive as you suspect, > installing software on a client's computer should be a non-starter > from the perspective that installing it on *any* computer *anywhere on > the planet* should reliably reproduce the issue. You say that tcpdump > shows the packet truncation, so I'm not sure I understand the > requirement to install something on a client machine. My goal in these > past responses has been to absolutely prove that it's the > serialization code (by factoring out the serialization code using > ping), not something peculiar to the transport or session layers. > > Are you using the public switched network to provide client/server > connectivity? If not, nothing you've said so far would eliminate your > network transport service. > > I find it hard to believe it's GWT, as the cargo size is so small as > to be insignificant, and others would have reported this issue by now. > I have to admit that I'm not a user of Java serialization, so there > may have been reports of this serialization issues of which I'm > blissfully unaware. From everything you're saying, it really looks > like the problem is in user-space. It may be a certain code path that > leads to the same serialization invocation logic. I'd start pulling > this code apart, instrumenting the hell out of it and running it > through JUnit or some such automated testing environment. Again, I > understand you've probably done this... > > I'm wondering if there's a specific byte-pattern that's causing this. > Have you tried reordering the structure members? Also, have you > eliminated buffer corruption issues? Since it's cross-browser, what > does the -pretty flag + Firebug reveal? Esp. when profiling the code? > (Although I must admit that you've probably tried all that type of > debugging by now). > > Bueno Suerte, > jec > > > > > A few more subtle observations and insights: > > 1. It's probably not the server. There are several reasons that lead > > us to believe that the server is not the cause of this issue: (a) We > > switched hosting providers. (b) These providers reside in completely > > different geographical locations - countries. (c) We have always been > > using JBoss on CentOS, but this issue occurs both when we work with > > Apache as a front end using mod_jk to tomcat, as well as when > > eliminating this tier and having clients go directly to tomcat - using > > it as an HTTP server. (d) tcpdump sniffer explicitly shows that the > > server receives ALWAYS EXACTLY 80% of the request payload. Unless this > > is something even lower level in that machine (the VPS software used - > > virtuozzo, the network card/driver, etc.), these observations pretty > > much provides an alibi for the server... I think we'd better focus on > > other places. > > 2. There are indications that this is not inside the browser as well: > > (a