Upgrade 1.5.3 to 1.6.4 - 404 Error
Hi! I've done the upgrade from GWT 1.5.3 to 1.6.4. I followed the instructions on the GWT docs.Now I get an 404 Warning in my console [WARN] 404 - GET /GwtWebapp.html (127.0.0.1) 1400 bytes. And my hosted- window shows the following: HTTP ERROR: 404 NOT_FOUND RequestURI=/GwtWebapp.html I updated all the things according the docs... Where is the problem, I have no idea. Hope someone can help Thanks a lot! -Danny --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Acces to GWT JavaDoc in Eclipse
Hi Stefan! You are right: I've removed gwt-servlet from the POM dependencies of the corresponding project, because I don't need it yet. If I need this I will create a separate server/backend- project which does. And now I have access to the JavaDoc. Thank you very much! -Danny 2009/4/1 Stefan Hübner sthueb...@googlemail.com Danny, maybe this is caused due to both gwt-servlet and gwt-user are on classpath? For the former, the Maven Central repo doesn't provide a source ball but the latter it does. I've experienced this behaviour earlier and the only workaround so far was to attach the sources of gwt-user to gwt-servlet as well. This seems a weird thing to do, though. To get the sources use -DdownloadSources -DdownloadJavadocs while invoking mvn eclipse:eclipse. Why is gwt-servlet on your classpath in the first place? Maybe because it's necessary for RemoteServiceServlet? Anyways, I would be happy if gwt-servlet sources would be provided too. -Stefan Danny Schimke schimk...@googlemail.com writes: Hi! I created a complete new development environment. I installed Eclipse, GWT and startet up my new project. Its is working well, but I have no access to the GWT source code. For example I get the following message in tooltip, if my mouse moves over an GWT element like DialogBox etc.: This element neither has attached source nor attached Javadoc and hence no Javadoc could be found. The source is attached to of my maven module(s). If I navigate to one class there is the source code, but how I get access out from my own sorces? Thanks very much! -Danny --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: FlexTable : how to get not wrapping text functionality
Hi Suren! I dont know why this is not working, but you can use a Label, set the word wrap of the label to false and add this label to one of your FlexTable's cell. This should work. -Danny 2009/3/30 Suren nsurendi...@gmail.com Hi All, I am using FlexTable in a grid format to display text. I have a situation like, the width of the particular column needs to be fixed. And in that case, I need to show whatever text is fit into that width. I dont want to use wordwrap, which inturn affects my layout. Or I dont want to display the full lengthy text too. I 've tried [code] FlexTable f1 = new FlexTable(); f1.setText(0, 0, This is a very long text); f1.setBorderWidth(2); f1.getCellFormatter().setWidth(0,0,2px); f1.getCellFormatter().setWordWrap(0, 0, false); [/code In the above case, I set the wordwrap to false, but still I am getting the wrapped text in the Flextable Could anyone please suggest any ways to acheive this? Thanks Suren --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: FlexTable : how to get not wrapping text functionality
In standard a table wraps your text. You could try to add a the following CSS class to the cell (td- element of the table), that should not wrap its text. .no-wrap { white-space: nowrap; } In the following example- HTML the text is not breaking although the table has a width of 100px. The Table's width will grow up. table class=non-wrapping-tablewidth=100px border=1 tr td class=no-wrap to long text, to long text, to long text, to long text /td /tr /table If you want to say, that the complete table should not wraps its text you can do it with CSS, instead of adding the no-wrap CSS class to each td element. .non-wrapping-table tr td { white-space: nowrap; } hope that will help... -Danny 2009/3/30 Suren nsurendi...@gmail.com Hi Danny, Thanks for the reply. I should have mentioned earlier that, I 've tried that option too. that is, I set the text to a label and disable the wordwrap to that label and add that label to a FlexTable using setWidget method. Result the same.. Still I am getting either full long text with the increased width, or wrapped text with the proper width. All I want is some knid of truncated text( to appear like truncated text, but actually not, since that cell dont have enough space to display that) I have a doubt here. Did Flextable has the default settings to adjust the column width according to the text's length? And wrap the text if the width is set? If so, what if I dont want that functionality? I mean how can I disable that? apart from the wordwrap method Thanks Suren On Mar 30, 11:55 am, Danny Schimke schimk...@googlemail.com wrote: Hi Suren! I dont know why this is not working, but you can use a Label, set the word wrap of the label to false and add this label to one of your FlexTable's cell. This should work. -Danny 2009/3/30 Suren nsurendi...@gmail.com Hi All, I am using FlexTable in a grid format to display text. I have a situation like, the width of the particular column needs to be fixed. And in that case, I need to show whatever text is fit into that width. I dont want to use wordwrap, which inturn affects my layout. Or I dont want to display the full lengthy text too. I 've tried [code] FlexTable f1 = new FlexTable(); f1.setText(0, 0, This is a very long text); f1.setBorderWidth(2); f1.getCellFormatter().setWidth(0,0,2px); f1.getCellFormatter().setWordWrap(0, 0, false); [/code In the above case, I set the wordwrap to false, but still I am getting the wrapped text in the Flextable Could anyone please suggest any ways to acheive this? Thanks Suren- 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 google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Event listening on ListBox in a CaptipnPanel's Legend
Hello! A CaptionPanel can contains HTML in its legend. I hve to add a ListBox- Element there. But I have to listen on it (change- events). How do I have to add the ListBox as a part of the legend- Element to the Caption so that I still can listen on its events? Thank you very much! -Danny --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Event listening on ListBox in a CaptipnPanel's Legend
Is it possible to do this? 2009/3/26 Danny Schimke schimk...@googlemail.com Hello! A CaptionPanel can contains HTML in its legend. I hve to add a ListBox- Element there. But I have to listen on it (change- events). How do I have to add the ListBox as a part of the legend- Element to the Caption so that I still can listen on its events? Thank you very much! -Danny --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Set CSS for ListBox Items working in Firefox not in Safari
My problem is similar. My CSS for option- tag's of a select- element are not shown dynamically their new CSS- layout in IE. I'am setting the CSS- classes like the following: listBox.getElement().getElementsByTagName(option).getItem(index).setClassName(empty-option); My CSS looks like: .empty-option { color: #F2A336; } This is only a color- change... But this color is not shown in IE after adding the class. If I hide and show the listBox again the colors are updated correctly in IE. But this cannot be a correct workaround for me... Example: listBox.getElement().getElementsByTagName(option).getItem(index).setClassName(empty-option); // after this the color of css class empty-option is shown correctly in FF, not IE listBox.setVisible(false); listBox.setVisible(true); // now the color is shown correctly in IE too This means, that the CSS works in all browsers. It's not a CSS- issue... I dont know how to fix this. -Danny 2009/3/24 Shashi Kant kant.shash...@gmail.com Oh you are using an image. I dont think IE supports that. ,This reason behind this is because of how IE gets the base for the HTML Select tag - it's derived from the Win32api - the same reason why dropdown lists and select lists have a nasty habit of rendering above everything else on the html page. BUT, you could still experiment with background-color. That should work like in this example: html xmlns=http://www.w3.org/1999/xhtml; head titleUntitled Page/title style type=text/css media=screen .optionBold {background-color: Fuchsia; font-weight: bold;} /style /head body form id=form1 div select id=htmlSelect multiple=multiple size=5 optionNon-styled 1/option optionNon-styled 2/option option class=optionBoldStyled/option option style=background-color: Aqua; font-weight: bold;Styled inline/option /select /div /form /body /html On Mar 24, 11:01 am, priya joshipriya...@gmail.com wrote: Hi Shashi Kant This is my css code: .list_box_style{ background-image: url(../images/pkg_image2.bmp); background-position: right; background-repeat: no-repeat; } Is this correct? I don't think this is CSS problem.. Because its working in FF correctly In Safari and IE it's not working.. If you have another solution then please suggest.. It's really urgent... On Mar 23, 4:26 pm, Shashi Kant kant.shash...@gmail.com wrote: This might be a CSS issue Paste you list_box_style here. On Mar 23, 4:03 pm, Danny Schimke schimk...@googlemail.com wrote: Could it be, that the style is set but not shown. We're adding CSS- classnames to option- elements of a listbox too, but only in FF there is a change visible. Because the listbox for example in IE will not refresh its GUI after adding styles to its items. I have not found a fix for this yet... there should be a way to refresh GWT- components on view. -Danny 2009/3/23 priya joshipriya...@gmail.com Hi all, I have one ListBox in my GWT application. I want to set CSS for some of the items in this ListBox.. I am using following code for this: DOM.getChild(listBox.getElement(), i + 1).setClassName (list_box_style); This code is working perfect in Firefox but not working in Safari browser. I don't know this is problem of DOM.getChild() method or setting style for that. Is Safari supports DOM.getChild() method? If anyone know another way then please suggest... Any help is welcome.. Thanks in advance, Priya --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Set CSS for ListBox Items working in Firefox not in Safari
Could it be, that the style is set but not shown. We're adding CSS- classnames to option- elements of a listbox too, but only in FF there is a change visible. Because the listbox for example in IE will not refresh its GUI after adding styles to its items. I have not found a fix for this yet... there should be a way to refresh GWT- components on view. -Danny 2009/3/23 priya joshipriya...@gmail.com Hi all, I have one ListBox in my GWT application. I want to set CSS for some of the items in this ListBox.. I am using following code for this: DOM.getChild(listBox.getElement(), i + 1).setClassName (list_box_style); This code is working perfect in Firefox but not working in Safari browser. I don't know this is problem of DOM.getChild() method or setting style for that. Is Safari supports DOM.getChild() method? If anyone know another way then please suggest... Any help is welcome.. Thanks in advance, Priya --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
How to sort a list with objects on client side?
Hello! I have a list with objects I've got from backend-side. Every object has a getSort() method, which returns an integer value. I've never worked with Comparator before, but I tried like the following: public ListObjecttype getObjectListe() { ListObjecttype sortedList = model.getObjects(); Collections.sort(sortedList, new ComparatorObjecttype() { public int compare(Objecttype o1, Objecttype o2) { // compare the o1.getSort() value with o2.getSort() value here } }); return sortedList; } And this is the error I got: [ERROR] Uncaught exception escaped java.lang.UnsupportedOperationException: null at com.incowia.tkbase.unternehmenspflege.core.client.BaseReferenceList.toArray(BaseReferenceList.java:166) at java.util.Collections.sort(Collections.java:158) What have I to do, to sort my list? -Danny --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: gwt mix content with style?
You could do something like this: Style style = tmpElement.getElement().getStyle(); style.setProperty(border, 1py solid #00;); -Danny 2009/3/19 Coonay fla...@gmail.com like old html,gwt mix content with style again? in gwt ,most dynamic UI element have to set style with addStyleName method? such as the following, public class FirstGWT implements EntryPoint { private FlexTable stocksFlexTable = new FlexTable(); } if i define the style in the css . stocksFlexTable { } can gwt apply this to stocksFlexTable automatically without manually calling addStyleName? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: ResourceBundle for client??
Is the Constants- Interface of GWT the thing, what you are searching for? With this you can read the values from a properties- file -Danny 2009/3/17 joe young keven.c...@gmail.com Can client code able to use java.util.ResourceBundle? I have some information in a propertie file and I don't want to get it via RPC, is there an easy way to do it? Right now when I use java.util.ResourceBundle in client side code, it gives me this error~ [ERROR] Hint: 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 Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
DialogBox's height not based on its content
I have a dialog box with a invisible widget at the dialogs bottom. There is a button to show this (invisible) widget. The Widget is shown and the dialog box's size grows up (correctly). But when I hide this widget the height of the dialog box is not reduced back to the initial state. It stays large and that seems not pretty. How can I fix this? -Danny --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Java Script Datei
Hallo Eva! Du hast zu deinem GWT- Projekt ein *.launch- File, das du schön über Eclipse konfigurieren kannst. Bei den program arguments kannst du mit dem Parameter style angeben, wie der Quellcode in Javascript compiliert wird (Detailliert, oder unlesbar, aber kompakt): -style PRETTY Es gibt noch viele andere Styles (Detailled, ua.), aber schau dafür am besten in den Docs um ihren genauen Namen zu wissen. Startest du deine Anwendung über Eclipse wird deine Anwendung im Target- Verzeichnis deines Projektes abgelegt, dort liegen dann deine *js / html- Files. Ich hoffe ich konnte dir damit helfen... Grüße -Danny On Mar 10, 7:45 am, Eva loesch@googlemail.com wrote: Ich würde gerne die von GWT automatisch gererierte Java Script Datei einsehen. Wo finde ich diese? Ich habe auch gelesen, dass die Java Script Datei komprimiert ist, so dass man den Code nicht erkennen kann. Gibt es eine Möglichkeit mit Eclipse diese Komprimierung zu verhindern? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Restrain the DialogBox to move out of browser window
After weekend I tried again and it worked very well... I don't know the reason for the not working code last week, but here is my code, that worked very well: @Override public void onMouseMove(Widget sender, int x, int y) { super.onMouseMove(sender, x, y); if (this.getPopupLeft() + this.getOffsetWidth() Window.getClientWidth()) { this.setPopupPosition(Window.getClientWidth() - this.getOffsetWidth(), this.getPopupTop()); } if (this.getPopupTop() + this.getOffsetHeight() Window.getClientHeight()) { this.setPopupPosition(this.getPopupLeft(), Window.getClientHeight() - this.getOffsetHeight()); } } The dialog window does not move out of the visible window area! Thank you very much Sumit! The idea of overriding the onMouse- Events is THE idea! -Danny 2009/3/5 Sumit Chandel sumitchan...@google.com Hi Danny, That shouldn't be the case. Which browser were you testing on when this occurred? I ran the code snippet below and tested it out in hosted IE6, web mode IE6/7/8, FF3 and Chrome, and in all cases the onMouseUp() method was called and the dialog box was repositioned. Give it a try and let me know how it looks for you. public void onModuleLoad() { final DialogBox dialogBox = new DialogBox() { public void onMouseUp(Widget sender, int x, int y) { this.setPopupPosition(0, 0); super.onMouseUp(sender, x, y); } }; dialogBox.setHTML(bBonjour la police!/b); RootPanel.get().add(dialogBox); dialogBox.center(); } Hope that helps, -Sumit Chandel On Thu, Mar 5, 2009 at 12:20 AM, Danny Schimke schimk...@googlemail.comwrote: It does not work. The onMouseUp is never called... 2009/2/27 Sumit Chandel sumitchan...@google.com Hi Danny, Here's one possible solution - you could override the DialogBox.onMouseUp() method to re-position the dialog box depending on where it was when the user lets go of it. For example: final DialogBox dialogBox = new DialogBox() { public void onMouseUp(Widget sender, int x, int y) { if(exceedsBounds(x,y) { this.setPopupPosition(xpos, ypos); //recenter to boundary edge or center page } super.onMouseUp(sender, x, y); } }; Hope that helps, -Sumit Chandel On Mon, Feb 23, 2009 at 6:04 AM, Danny Schimke schimk...@googlemail.com wrote: No idea? 2009/1/28 Danny Schimke schimk...@googlemail.com Hello! Is it possible to restrain the DialogBox to move out on right and bottom side of the browsers windows? When I move the box over it's header it should stay completely in the visible browser window area, because I disabled the scroll bars and the user should not be able to move the DialogBox in a not viewed area. And second: in IE6 the DialogBox is only dragable by the text in it's header. Is there a clean way to allow IE6 users to dragdrop the box like in FF or IE7 over the complete header? Thank you very much! - Danny --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Restrain the DialogBox to move out of browser window
It does not work. The onMouseUp is never called... 2009/2/27 Sumit Chandel sumitchan...@google.com Hi Danny, Here's one possible solution - you could override the DialogBox.onMouseUp() method to re-position the dialog box depending on where it was when the user lets go of it. For example: final DialogBox dialogBox = new DialogBox() { public void onMouseUp(Widget sender, int x, int y) { if(exceedsBounds(x,y) { this.setPopupPosition(xpos, ypos); //recenter to boundary edge or center page } super.onMouseUp(sender, x, y); } }; Hope that helps, -Sumit Chandel On Mon, Feb 23, 2009 at 6:04 AM, Danny Schimke schimk...@googlemail.comwrote: No idea? 2009/1/28 Danny Schimke schimk...@googlemail.com Hello! Is it possible to restrain the DialogBox to move out on right and bottom side of the browsers windows? When I move the box over it's header it should stay completely in the visible browser window area, because I disabled the scroll bars and the user should not be able to move the DialogBox in a not viewed area. And second: in IE6 the DialogBox is only dragable by the text in it's header. Is there a clean way to allow IE6 users to dragdrop the box like in FF or IE7 over the complete header? Thank you very much! - Danny --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Window.confirm in timer.run()
Hello! I am using a timer to ask the user after xy minutes to save his changes to database. In the run() method of timer I ask the user wheather he want to save the changes. If the user clicks OK I'll save othwerwise I'll do nothing. I shedule the timer repeatly after xy minutes. When does the timer reruns? After handling the run() method? I recognized that the timer reruns while the confirm message is shown. Is this an issue or correct? Should the timer rerun while its run() method is not finished? I occurs in Firefox, in IE it works like I am thinking how it should work. Example for Error: - Rerunning timer every 1 minute - Confirmation is shown after 1 minute, user does *not* click *OK* or * Cancel* - After two or more minutes I'll click OK or Cancel and the confirm window closes. But the confirm window of the second timer run is shown. - The window is maximal shown two times (e.g. when I am waiting three or more minutes) It should be not very difficult to use a workaround, but I want to understand the correct working of the GWT timer. Thank you! -Danny --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Question about mGoogle Maps URL and its parameter gwt
Thank you very much! Good to know! -Danny 2009/2/27 Eric Ayers zun...@google.com Removing that parameter will not affect the functioning of the Maps API. It is currently used for accounting purposes only. 2009/2/27 Danny Schimke schimk...@googlemail.com: Hello! Does anyone know what is the parameter gwt with the value1 for? The URL looks like the following: http://maps.google.com/maps?gwt=1amp;file=apiamp;v=2amp;key= I can't make differences between the functionality of URL with parameters and without parameters. Is the this parameter needed and why? Are there other possible values instead of 1 and what does they mean? Thank you! -Danny -- Eric Z. Ayers - GWT Team - Atlanta, GA USA http://code.google.com/webtoolkit/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Window.confirm in timer.run()
Thanks for that detailled answer ;) 2009/3/4 Vitali Lovich vlov...@gmail.com You're probably using scheduleRepeat. Browsers are strictly single threaded (some multi-threading Javascript support coming in FF3.1 that I know of). Anyways your problem is this: run() showWindow() browser keeps generating timer event probably because that comes from the OS there's no locking in place user clicks on button next event is shown Instead do this: timer.schedule(1000); run() { showWindow() timer.schedule(1000); } On Wed, Mar 4, 2009 at 9:34 AM, Danny Schimke schimk...@googlemail.comwrote: Hello! I am using a timer to ask the user after xy minutes to save his changes to database. In the run() method of timer I ask the user wheather he want to save the changes. If the user clicks OK I'll save othwerwise I'll do nothing. I shedule the timer repeatly after xy minutes. When does the timer reruns? After handling the run() method? I recognized that the timer reruns while the confirm message is shown. Is this an issue or correct? Should the timer rerun while its run() method is not finished? I occurs in Firefox, in IE it works like I am thinking how it should work. Example for Error: - Rerunning timer every 1 minute - Confirmation is shown after 1 minute, user does *not* click *OK* or * Cancel* - After two or more minutes I'll click OK or Cancel and the confirm window closes. But the confirm window of the second timer run is shown. - The window is maximal shown two times (e.g. when I am waiting three or more minutes) It should be not very difficult to use a workaround, but I want to understand the correct working of the GWT timer. Thank you! -Danny --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Window.confirm in timer.run()
Yeah! I canceled the timer and restarted it in in the run() method... It is about the way you've advised me. Thanks again! -Danny 2009/3/4 Vitali Lovich vlov...@gmail.com Did that solve your problem? On Wed, Mar 4, 2009 at 12:35 PM, Danny Schimke schimk...@googlemail.comwrote: Thanks for that detailled answer ;) 2009/3/4 Vitali Lovich vlov...@gmail.com You're probably using scheduleRepeat. Browsers are strictly single threaded (some multi-threading Javascript support coming in FF3.1 that I know of). Anyways your problem is this: run() showWindow() browser keeps generating timer event probably because that comes from the OS there's no locking in place user clicks on button next event is shown Instead do this: timer.schedule(1000); run() { showWindow() timer.schedule(1000); } On Wed, Mar 4, 2009 at 9:34 AM, Danny Schimke schimk...@googlemail.comwrote: Hello! I am using a timer to ask the user after xy minutes to save his changes to database. In the run() method of timer I ask the user wheather he want to save the changes. If the user clicks OK I'll save othwerwise I'll do nothing. I shedule the timer repeatly after xy minutes. When does the timer reruns? After handling the run() method? I recognized that the timer reruns while the confirm message is shown. Is this an issue or correct? Should the timer rerun while its run() method is not finished? I occurs in Firefox, in IE it works like I am thinking how it should work. Example for Error: - Rerunning timer every 1 minute - Confirmation is shown after 1 minute, user does *not* click *OK* or *Cancel* - After two or more minutes I'll click OK or Cancel and the confirm window closes. But the confirm window of the second timer run is shown. - The window is maximal shown two times (e.g. when I am waiting three or more minutes) It should be not very difficult to use a workaround, but I want to understand the correct working of the GWT timer. Thank you! -Danny --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT Session
Hey Vagner Araujo! Thank you for your post! I've searched a long time for something like handling sessions in GWT!!! :D I have a question too. Waht's when the session invalidates (e.g. timeout)? Should there a heartbeat which checks the session validity? Thank you! -Danny 2009/2/27 Mahavir Jain vir.j...@gmail.com Thanks Vagner for sharing this. You can also refer the attached LoginManager which contains user Management. I, too downloaded from somewhere. I don't remember but source code is attached. Thanks. Mahavir On Fri, Feb 27, 2009 at 12:32 PM, Vagner Araujo araujo...@gmail.comwrote: Hello Friends, I was making a simple code of Session for my students. Well, I decided post that code here, because maybe it can serve as a basis for someone. //Main Class package com.javaneses.spring.client; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.core.client.GWT; import com.google.gwt.user.client.Cookies; import com.google.gwt.user.client.Window; import com.google.gwt.user.client.rpc.AsyncCallback; import com.google.gwt.user.client.rpc.ServiceDefTarget; import com.google.gwt.user.client.ui.Button; import com.google.gwt.user.client.ui.ClickListener; import com.google.gwt.user.client.ui.DialogBox; import com.google.gwt.user.client.ui.FlexTable; import com.google.gwt.user.client.ui.FlowPanel; import com.google.gwt.user.client.ui.Label; import com.google.gwt.user.client.ui.PasswordTextBox; import com.google.gwt.user.client.ui.RootPanel; import com.google.gwt.user.client.ui.TextBox; import com.google.gwt.user.client.ui.Widget; import com.javaneses.spring.client.rpc.service.LoginService; import com.javaneses.spring.client.rpc.service.LoginServiceAsync; import com.javaneses.spring.client.rpc.service.SessionService; import com.javaneses.spring.client.rpc.service.SessionServiceAsync; /** * Entry point classes define codeonModuleLoad()/code. */ public class Main implements EntryPoint, ClickListener{ /** * This is the entry point method. */ private final SessionId sessionId = new SessionId(); private final DialogBox dialogBox = new DialogBox(); private final Label userLabel = new Label(User); private final Label passwdLabel = new Label(Password); private final TextBox userField = new TextBox(); private final PasswordTextBox passwdField = new PasswordTextBox(); private final Button login = new Button(Login); private final Label welcome = new Label(Welcome); private final User user = new User(); { FlexTable flexTable = new FlexTable(); flexTable.setWidget(0, 0, userLabel); flexTable.setWidget(0, 1, userField); flexTable.setWidget(1, 0, passwdLabel); flexTable.setWidget(1, 1, passwdField); FlowPanel panel = new FlowPanel(); panel.setWidth(100); panel.add(login); flexTable.setWidget(2, 1, panel); dialogBox.setSize(350, 150); dialogBox.add(flexTable); login.addClickListener(this); sessionId.setSessionId(Cookies.getCookie(session)); }//end init block public void onModuleLoad() { validateSession(); }//end onModuleLoad private void validateSession(){ SessionServiceAsync myServiceAsync = (SessionServiceAsync)GWT.create (SessionService.class); ServiceDefTarget serviceDefTarget = (ServiceDefTarget) myServiceAsync; serviceDefTarget.setServiceEntryPoint(session); AsyncCallbackSessionId asyncCallback = new AsyncCallbackSessionId (){ public void onFailure(Throwable caught) { System.out.println(caught); }//end onFailure public void onSuccess(SessionId result) { if(result == null){ RootPanel.get().clear(); RootPanel.get().add(dialogBox); System.out.println(Teste1); }else if(!sessionId.getSessionId().equals(result.getSessionId())){ RootPanel.get().clear(); RootPanel.get().add(dialogBox); System.out.println(Teste2); }else if(sessionId.getSessionId().equals(result.getSessionId())){ RootPanel.get().add(welcome); } }//end onSucess };//end AsyncCallbackString asyncCallback = new AsyncCallbackString() myServiceAsync.session(sessionId, asyncCallback); }//end
Question about mGoogle Maps URL and its parameter gwt
Hello! Does anyone know what is the parameter gwt with the value1 for? The URL looks like the following: http://maps.google.com/maps?*gwt=1*amp;file=apiamp;v=2amp;key= I can't make differences between the functionality of URL with parameters and without parameters. Is the this parameter needed and why? Are there other possible values instead of 1 and what does they mean? Thank you! -Danny --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Apply CSS in editor area of RichTextArea
I've seen many examples where JSNI is used, like the following: private native void myJsniMethod(Element oElement)/*-{ var oDoc = oElement.contentWindow; // var oDoc = oElement.contentWindow || oElement.contentDocument; if (oDoc.document != null) { oDoc = oDoc.document; // more actions here... } }-*/; I tried to use JSNI method too. But an error occurs when trying to call * oElement.contentWindow* because its value is *null* (I've seen in Firefox, In IE you cant see the reason for throwing the error). Why does it should work in many examples you can find in the web? Is there anything special to watch? -Danny 2009/2/24 Danny Schimke schimk...@googlemail.com Hi Omer! 1. Yes I am using Windows and yes: Hosted Mode uses the installed IE. 2. The error occurs in compiled mode (Firefox, IE) too. I show a preview for multilingual text (english, german, french, etc.). It's font-family is shown in Arial,Helvetica, but the RichTextArea is using the browsers font (If I am not mistaken!?). It does not look nice, when the editors text has a different font, than its preview... I hope I'll crack this in future ;) Thank you Omer!!! -Danny 2009/2/24 A Friend Of Yours omer.akh...@gmail.com Any Idea, why the error occurs? No; not really! If you could provide more details: 1. Are you having this error in Hosted Mode or Web Mode? Because some javascript trick don't work in Hosted Mode so things like this happen. 2. Hosted Mode: Are you using Windows? Hosted Mode browser in windows uses Internet Explorer components to render its view (not sure if it is true though). While I used this in linux where Hosted Mode uses mozilla components. 3. Web Mode: Goes without saying; are you using Internet Explorer for Web Mode? As I had mentioned, I have only tested this solution on Firefox in Linux. Hope this helps Omer Akhter Danny Schimke wrote: I need to set the CSS for RichTextArea too and tried out your idea. I've got the following Error in the first line where I create the Document object using my RichTextArea: com.google.gwt.core.client.JavaScriptException: (Error): Unknown Error. number: -2147467259 description: Unknown Error. Any Idea, why the error occurs? Thanks! -Danny 2009/2/17 A Friend Of Yours omer.akh...@gmail.com Please try to maintain a single thread: http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/4e1d0c2a8ba725ef On Feb 17, 8:10 pm, Manish Kumar man...@oakdeneindia.com wrote: Hi All, Could I please have any idea on this( in mail below ). Regards Manish - Original Message - From: Manish Kumar To: Google-Web-Toolkit@googlegroups.com Sent: Tuesday, February 17, 2009 10:46 AM Subject: Apply CSS in editor area of RichTextArea Hi Everybody, While working on adding RichTextArea with my project.I would like to apply css on editor area of Rich Text Area control so that I can set font behaviours ( font-family, font-weight,font-size etc ) being displayed in the rich text area editing area a bit changeable. can anybody help me out to get rid of this issue. Thanks Manish --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
onLostFocus and onChanged not fired if browser-window is closing
Hi! I have a textbox which should change some data by onChange. If I am closing the browser window over it's close button (x) the onChange and onLostFocus is not fired. Is it possible to solve this problem? I can not use a KeyListener, because i have to change data in one way (I need only one fired event instead of multiple). -Danny --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Apply CSS in editor area of RichTextArea
I need to set the CSS for RichTextArea too and tried out your idea. I've got the following Error in the first line where I create the Document object using my RichTextArea: com.google.gwt.core.client.JavaScriptException: (Error): Unknown Error. number: -2147467259 description: Unknown Error. Any Idea, why the error occurs? Thanks! -Danny 2009/2/17 A Friend Of Yours omer.akh...@gmail.com Please try to maintain a single thread: http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/4e1d0c2a8ba725ef On Feb 17, 8:10 pm, Manish Kumar man...@oakdeneindia.com wrote: Hi All, Could I please have any idea on this( in mail below ). Regards Manish - Original Message - From: Manish Kumar To: Google-Web-Toolkit@googlegroups.com Sent: Tuesday, February 17, 2009 10:46 AM Subject: Apply CSS in editor area of RichTextArea Hi Everybody, While working on adding RichTextArea with my project.I would like to apply css on editor area of Rich Text Area control so that I can set font behaviours ( font-family, font-weight,font-size etc ) being displayed in the rich text area editing area a bit changeable. can anybody help me out to get rid of this issue. Thanks Manish --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Apply CSS in editor area of RichTextArea
Hi Omer! 1. Yes I am using Windows and yes: Hosted Mode uses the installed IE. 2. The error occurs in compiled mode (Firefox, IE) too. I show a preview for multilingual text (english, german, french, etc.). It's font-family is shown in Arial,Helvetica, but the RichTextArea is using the browsers font (If I am not mistaken!?). It does not look nice, when the editors text has a different font, than its preview... I hope I'll crack this in future ;) Thank you Omer!!! -Danny 2009/2/24 A Friend Of Yours omer.akh...@gmail.com Any Idea, why the error occurs? No; not really! If you could provide more details: 1. Are you having this error in Hosted Mode or Web Mode? Because some javascript trick don't work in Hosted Mode so things like this happen. 2. Hosted Mode: Are you using Windows? Hosted Mode browser in windows uses Internet Explorer components to render its view (not sure if it is true though). While I used this in linux where Hosted Mode uses mozilla components. 3. Web Mode: Goes without saying; are you using Internet Explorer for Web Mode? As I had mentioned, I have only tested this solution on Firefox in Linux. Hope this helps Omer Akhter Danny Schimke wrote: I need to set the CSS for RichTextArea too and tried out your idea. I've got the following Error in the first line where I create the Document object using my RichTextArea: com.google.gwt.core.client.JavaScriptException: (Error): Unknown Error. number: -2147467259 description: Unknown Error. Any Idea, why the error occurs? Thanks! -Danny 2009/2/17 A Friend Of Yours omer.akh...@gmail.com Please try to maintain a single thread: http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/4e1d0c2a8ba725ef On Feb 17, 8:10 pm, Manish Kumar man...@oakdeneindia.com wrote: Hi All, Could I please have any idea on this( in mail below ). Regards Manish - Original Message - From: Manish Kumar To: Google-Web-Toolkit@googlegroups.com Sent: Tuesday, February 17, 2009 10:46 AM Subject: Apply CSS in editor area of RichTextArea Hi Everybody, While working on adding RichTextArea with my project.I would like to apply css on editor area of Rich Text Area control so that I can set font behaviours ( font-family, font-weight,font-size etc ) being displayed in the rich text area editing area a bit changeable. can anybody help me out to get rid of this issue. Thanks Manish --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Restrain the DialogBox to move out of browser window
No idea? 2009/1/28 Danny Schimke schimk...@googlemail.com Hello! Is it possible to restrain the DialogBox to move out on right and bottom side of the browsers windows? When I move the box over it's header it should stay completely in the visible browser window area, because I disabled the scroll bars and the user should not be able to move the DialogBox in a not viewed area. And second: in IE6 the DialogBox is only dragable by the text in it's header. Is there a clean way to allow IE6 users to dragdrop the box like in FF or IE7 over the complete header? Thank you very much! - Danny --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Changing color of text on fly.
Hi! If I understood correctly you want to change the color of option- Tags of a select- input (ListBox)!? you can add a CSS- class: listBox.getElement().getElementsByTagName(option).getItem(index).setClassName(your CSS- classname) But in IE I habe a problem too... the color only changes, if the ListBox was drawing again on the screen after adding the class. -Danny 2009/2/20 Mani many...@gmail.com Hi, I have a list box which will populate values from database. Based on certain conditions, I need to display each value in appropriate color. How to change color of text? Here is piece of code that I have. userNameBox = new ListBox(false); userNameBox.ensureDebugId(cwListBox-multiBox); userNameBox.setTitle(UNAME_BOX); userNameBox.setWidth(11em); userNameBox.setVisibleItemCount(10); userNameBox.setStyleName(.gwt-ListBox1); userNameBox.addItem(-- values from database--); Thanks Mani --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Google Map Info Window
Hello Arend! You could use a normal button that is styled like a hyperlink using CSS. Search the group for disable Hyperlinkhttp://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/027cf4dd1a370cc3/872529a92f569666?show_docid=872529a92f569666pli=1 and you should find the right thing! Hope it was helpful for you! -Danny 2009/2/20 Arend van der Veen arend.vanderv...@gmail.com Hi, I am using the gwt google map api. Previously, I had a hypertext link on a InfoWindow in Google Maps. This link loaded a new page. I am now trying to implement the same functionality in GWT. I can still add a hypertext link in the InfoWindowContent but I can not figure out how to have it throw an event in my application. Is it possible to add a hypertext link (or button) on a InfoWindow that triggers an event in GWT? Thanks, Arend --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Searching another HTML editor
Hello! Issue 3103http://code.google.com/p/google-web-toolkit/issues/detail?can=2q=3103colspec=ID%20Type%20Status%20Priority%20Milestone%20Owner%20Summaryid=3103is the reason why I am searching another HTML editor than GWT's RichTextArea. I tried gwt-html-editor and it worked, but it was not what I am searched for. The possibilities of using the Toolbar and the way to edit it were not sufficient for me. Are there some other editors which can used by GWT? It should be able to bold, italic, underline text and set the font-size... Thank you! -Danny --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Call event after an other
Hi! If I have following problem: I enter some text in a textbox. Now I click on a button to save data to a database. With leaving the edit ists onChange- event is called, but the onClick- event of the button is called too at same the time. Saving is faster than onChange. I tried to handle the onClick after other events have done their work by using a DeferedCommand. But is doesn't work. Saving is allways faster than the onChange. Is there a way to control the handling-order of events? Thank you! -Danny --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Call event after an other
It does not work...I am doing anything wrong. Can you *explain how to use this*? I try to describe again: I habe 2 events, both in a own class. The onClick from save button in class A and the onChange from the textbox in class B. If the onChange is fired the save is fired too (look at my first comment this thread). But I need the possibility to wait starting onClick until onChange is running. -Danny 2009/2/5 Damien Picard picard.dam...@gmail.com Hi ! You can control event propagation with low-level functions (onBrowserEvent, Event) ; in your case, use the Event.cancelBubble function : http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/Event.html#cancelBubble(boolean)http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/Event.html#cancelBubble%28boolean%29 2009/2/5 Danny Schimke schimk...@googlemail.com Hi! If I have following problem: I enter some text in a textbox. Now I click on a button to save data to a database. With leaving the edit ists onChange- event is called, but the onClick- event of the button is called too at same the time. Saving is faster than onChange. I tried to handle the onClick after other events have done their work by using a DeferedCommand. But is doesn't work. Saving is allways faster than the onChange. Is there a way to control the handling-order of events? Thank you! -Danny --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Hosted Mode not refreshing
If you are using Eclipse do a clean on your Project(s) und refresh them. Maybe it will help. -Danny 2009/2/4 gemmasilvers gemmasilv...@googlemail.com Yup, I cleared the IE cache and still no joy. Any other suggestions, please? Thanks! Gemma On Feb 3, 6:44 pm, Lupo tcantal...@gmail.com wrote: Hi - I am new to GWT and had a similar issue as I was going through one of the tutorials. For me, anyway, I was clearing the wrong browser cache. I had FF and IE on the machine and was clearing the FF cache but Hosted Mode uses IE. Once I cleared IE's cache, updated code! I hope this is helpful. http://groups.google.com/group/Google-Web-Toolkit/msg/700aeb86f40482de On Feb 3, 7:28 am, gemmasilvers gemmasilv...@googlemail.com wrote: Hello all, I've inherited a GWT app from a colleague and am currently attempting to develop it further - but unfortunately I'm getting stuck with Hosted Mode. No matter how many times I clear the browser cache, click refresh on the hosted mode browser, or shout, the parts I've updated don't update in Hosted Mode. I've also tried removing the tomcat directory, removing the gwt-tmp directory Has anyone got any other ideas before I go mad? Thanks! Gemma --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Bad link for GWT Documentation
I called the GWT docs and everything worked fine... 2009/2/4 Ricky eric.ca...@gmail.com Did you notice that the link to GWT docs is broken for weeks ! It does just redirect to the documentation of... Google Code documentation reader --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Check whether browser is supported
I forgot: I can use the noscript- tag in the html- sourcefile... That should work... I reply again to tell if everything worked well -Danny 2009/2/3 Danny Schimke schimk...@googlemail.com This was helpful. But is there a way to keep out browsers which does *not*support javascript like the W3M browser? The gwt:onLoadErrorFn- content have to be a javascript-function(?), but can I load a simple HTML page instead without using javascript? 2009/2/3 Joe Cole profilercorporat...@gmail.com See this thread. We use this and it works well. http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/41ce4b44e0d4e262/abd93affd092bb47?lnk=gstq=profilercorporation#abd93affd092bb47 On Feb 3, 11:32 pm, Danny Schimke schimk...@googlemail.com wrote: Is there an easy way to check whether GWT supports a browser, for example in EntryPoint to tell the user, that the Browser is not supported? We've got a empty site if we browse our application in a not supported Browser. Thank you! -Danny --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Check whether browser is supported
Is there an easy way to check whether GWT supports a browser, for example in EntryPoint to tell the user, that the Browser is not supported? We've got a empty site if we browse our application in a not supported Browser. Thank you! -Danny --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Check whether browser is supported
This was helpful. But is there a way to keep out browsers which does *not*support javascript like the W3M browser? The gwt:onLoadErrorFn- content have to be a javascript-function(?), but can I load a simple HTML page instead without using javascript? 2009/2/3 Joe Cole profilercorporat...@gmail.com See this thread. We use this and it works well. http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/41ce4b44e0d4e262/abd93affd092bb47?lnk=gstq=profilercorporation#abd93affd092bb47 On Feb 3, 11:32 pm, Danny Schimke schimk...@googlemail.com wrote: Is there an easy way to check whether GWT supports a browser, for example in EntryPoint to tell the user, that the Browser is not supported? We've got a empty site if we browse our application in a not supported Browser. Thank you! -Danny --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Button as hyperlink Look
Hi there! Use CSS, like this: .button-link { cursor: pointer; cursor: hand; border: none; /* Disable the button-style */ background-color: transparent; padding: 0px; color: #4784C3; text-decoration: underline; } this lets your button look like a hyperlink! - Danny 2009/2/2 chandraj...@gmail.com chandraj...@gmail.com Hi All, How can I achieve a Button widget as hyperlink Look n feel. I don't want to use an anchor Link as it opens a browser functionality. Rather I need just the button functionality. Thanks, --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Button as hyperlink Look
Additional: search in GWT group for disable hyperlink their I posted this weeks ago. May there are more infos for you! - Danny 2009/2/2 Danny Schimke schimk...@googlemail.com Hi there! Use CSS, like this: .button-link { cursor: pointer; cursor: hand; border: none; /* Disable the button-style */ background-color: transparent; padding: 0px; color: #4784C3; text-decoration: underline; } this lets your button look like a hyperlink! - Danny 2009/2/2 chandraj...@gmail.com chandraj...@gmail.com Hi All, How can I achieve a Button widget as hyperlink Look n feel. I don't want to use an anchor Link as it opens a browser functionality. Rather I need just the button functionality. Thanks, --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT-maps-api: Maps API has not been loaded
First *thanks* to *Eric Ayers* for your endeavours to assist me! We found the reason which causes, that control are not visible in IE6 and there where map loading problems. In IE6 internet options using HTTP 1.1 over Proxyconnections is deactivatd. E.g. IE7 this option is set by default (This is an indication that the error only occurs in IE6). Since we have set the setting to use HTTP 1.1 over proxyconnections everything works fine. Now we can load and interact the map without problems in Internet Explorer 6. -Danny 2009/1/26 Eric Ayers zun...@google.com 1) Maybe there is a cache somewhere that needs to be flushed (start with the browser cache)? 2) You might try using a different version of the Maps API: http://code.google.com/apis/maps/documentation/#API_Updates 3) Are you browsing the internet through a proxy? could that be getting in your way? 4) If that doesn't solve the issue, you could try configuring some kind of sniffer/proxy to print out the requests your browser is making. On Mon, Jan 26, 2009 at 1:56 AM, Danny Schimke schimk...@googlemail.com wrote: Now we have the same problem as last week. IE6 does not show a Google Map this morning. we haven't changed any settings in IE from last weekt until today. The The Maps API has not been loaded. Is a script tag missing from your host HTML or module file? Is the Maps key missing or invalid? - Error has an other reason instead of IE6 settings... 2009/1/20 Eric Ayers zun...@google.com Search on the Google-Maps-API group. There have been several postings on the controls disappearing. Not having your code to look at, I'm not sure which might apply. On Tue, Jan 20, 2009 at 2:34 PM, Danny Schimke schimk...@googlemail.com wrote: For developing we are using no key, because for localhost its not needed. I changed a configuration by our colleague where the issue occurs. I try to describe the way (translated from german to english). IE's internetoptions - data privacy - Sites... (Dialog opens) - In this dialog I allowed *.google.com and it seems that this solved the problem. Can anyone agree?! I would be interested what is the issues reason ^^ Additional: Now there is another problem in IE6. Map controls (Zoom, Move, Map-Type, etc.) are not visible. - Danny 2009/1/20 Eric Ayers zun...@google.com I don't see this complaint listed in the Maps Group http://groups.google.com/group/Google-Maps-API Are you saying that you are using a key value that was shipped with the API? If so, go ahead and sign up for your own key if you haven't already. On Tue, Jan 20, 2009 at 4:31 AM, Danny Schimke schimk...@googlemail.com wrote: We've got an error when our google map initializes. It occurs only on IE6 since 12.01.2009 (monday). I think it could be an security- configuration in IE which came with updates?! In IE7 and FF everything works fine. At the moment we're using the Google-Maps-developer key which is included in the html- file. Some other users said: maybe I can solve the problem when I change the order of inherits (move up the inherits name=com.google.gwt.maps.GoogleMaps / before all others). But this did not solved the problem. If a IE- Setting is the reason: what could that be? The shown error is: The Maps API has not been loaded. Is a script tag missing from your host HTML or module file? Is the Maps key missing or invalid? Does anyone has the same issue? Hope you can help! - Danny -- Eric Z. Ayers - GWT Team - Atlanta, GA USA http://code.google.com/webtoolkit/ -- Eric Z. Ayers - GWT Team - Atlanta, GA USA http://code.google.com/webtoolkit/ -- Eric Z. Ayers - GWT Team - Atlanta, GA USA http://code.google.com/webtoolkit/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Button as hyperlink Look
This is a double post. look into your first post about the same thing. The answer is there ;) 2009/2/2 chandraj...@gmail.com chandraj...@gmail.com Hi All, How can I achieve a Button widget as hyperlink Look n feel. I don't want to use an anchor Link as it opens a browser functionality. Rather I need just the button functionality. Thanks, --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Restrain the DialogBox to move out of browser window
Hello! Is it possible to restrain the DialogBox to move out on right and bottom side of the browsers windows? When I move the box over it's header it should stay completely in the visible browser window area, because I disabled the scroll bars and the user should not be able to move the DialogBox in a not viewed area. And second: in IE6 the DialogBox is only dragable by the text in it's header. Is there a clean way to allow IE6 users to dragdrop the box like in FF or IE7 over the complete header? Thank you very much! - Danny --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Generating launch file for manual created GWT project
Hello! I created a new GWT- Project with using maven. I don't used applicationCreator and projectCreator. Is there a way to generate the lauch file automatically (for starting application in hosted mode from ecipse)?I did not found anything: hope someone can help! Thank you very much! - Danny --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT-maps-api: Maps API has not been loaded
Now we have the same problem as last week. IE6 does not show a Google Map this morning. we haven't changed any settings in IE from last weekt until today. The *The Maps API has not been loaded. Is a script tag missing from your host HTML or module file? Is the Maps key missing or invalid?* - Error has an other reason instead of IE6 settings... 2009/1/20 Eric Ayers zun...@google.com Search on the Google-Maps-API group. There have been several postings on the controls disappearing. Not having your code to look at, I'm not sure which might apply. On Tue, Jan 20, 2009 at 2:34 PM, Danny Schimke schimk...@googlemail.com wrote: For developing we are using no key, because for localhost its not needed. I changed a configuration by our colleague where the issue occurs. I try to describe the way (translated from german to english). IE's internetoptions - data privacy - Sites... (Dialog opens) - In this dialog I allowed *.google.com and it seems that this solved the problem. Can anyone agree?! I would be interested what is the issues reason ^^ Additional: Now there is another problem in IE6. Map controls (Zoom, Move, Map-Type, etc.) are not visible. - Danny 2009/1/20 Eric Ayers zun...@google.com I don't see this complaint listed in the Maps Group http://groups.google.com/group/Google-Maps-API Are you saying that you are using a key value that was shipped with the API? If so, go ahead and sign up for your own key if you haven't already. On Tue, Jan 20, 2009 at 4:31 AM, Danny Schimke schimk...@googlemail.com wrote: We've got an error when our google map initializes. It occurs only on IE6 since 12.01.2009 (monday). I think it could be an security- configuration in IE which came with updates?! In IE7 and FF everything works fine. At the moment we're using the Google-Maps-developer key which is included in the html- file. Some other users said: maybe I can solve the problem when I change the order of inherits (move up the inherits name=com.google.gwt.maps.GoogleMaps / before all others). But this did not solved the problem. If a IE- Setting is the reason: what could that be? The shown error is: The Maps API has not been loaded. Is a script tag missing from your host HTML or module file? Is the Maps key missing or invalid? Does anyone has the same issue? Hope you can help! - Danny -- Eric Z. Ayers - GWT Team - Atlanta, GA USA http://code.google.com/webtoolkit/ -- Eric Z. Ayers - GWT Team - Atlanta, GA USA http://code.google.com/webtoolkit/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Browser Issues- Please help me
I would use VerticalPanel. I think thats the easiest way and I never had sizing- problems with that widget. 2009/1/21 alex.d alex.dukhov...@googlemail.com Had almoust the same issue few weeks ago. At least i gave up on using FlowPanel and switched to FlexTable which size i change dynamically. May not be as elegant as using FlowPanel but at least it works in all supported browsers. On 21 Jan., 14:58, Adam T adam.t...@gmail.com wrote: Either set the size of your panels programmatically or through CSS - browsers can/will display FlowPanels differently which I believe is what you are seeing; or user a Vertical Panel for your check boxes/ label combinations. //Adam On 21 Jan, 12:25, venkat raman venkivo...@gmail.com wrote: Hi All, I have created a composite panel and added widgets, I have added check box too. In IE as I attached the image, its working fine, the items are displying vertically but in FF the items are displaying horizontally. package com.client; import com.google.gwt.user.client.ui.AbsolutePanel; import com.google.gwt.user.client.ui.ChangeListener; import com.google.gwt.user.client.ui.CheckBox; import com.google.gwt.user.client.ui.Composite; import com.google.gwt.user.client.ui.FlowPanel; import com.google.gwt.user.client.ui.Image; import com.google.gwt.user.client.ui.Label; import com.google.gwt.user.client.ui.ListBox; import com.google.gwt.user.client.ui.ScrollPanel; import com.google.gwt.user.client.ui.TextBox; import com.google.gwt.user.client.ui.Widget; public class Panel extends Composite implements ChangeListener { ListBox listBox = new ListBox(); FlowPanel flowPanel = new FlowPanel(); FlowPanel flowPanel_1 = new FlowPanel(); ScrollPanel scrollPanel = new ScrollPanel(); TextBox textBox = new TextBox(); Label friendsnameOrEmailLabel = new Label(Friends' Name or Email); FlowPanel flowPanel_2 = new FlowPanel(); // values for friends final String strfrndsvalue = Venkat,Ram,Robert,Peter,Calvin,Bob,Sam,Tina,Prashob; String delimeter = ,; // values for groups final String strgrp = Friends,Colleague,buddies; String delimiter1 = ,; final String str; final String strb; final String strcontact; public Panel(String titleText) { // private String str1; str = Friends; strb = Groups; strcontact = Contact; final AbsolutePanel absolutePanel = new AbsolutePanel(); initWidget(absolutePanel); absolutePanel.setSize(100px, 100px); // absolutePanel.setStyleName(gwt-apanel); final Image image = new Image(); absolutePanel.add(image, 0, 0); image.setSize(310px, 30px); image.setUrl(images/alertmid.jpg); final Label contactsLabel = new Label(Contacts); absolutePanel.add(contactsLabel, 10, 5); // list box absolutePanel.add(listBox, 0, 35); listBox.setSize(300px, 25px); listBox.addItem(str); listBox.addItem(strb); listBox.addItem(strcontact); listBox.addChangeListener(this); // TextBox absolutePanel.add(textBox, 0, 253); textBox.setWidth(308px); // Friend's name or email Label absolutePanel.add(friendsnameOrEmailLabel, 10, 225); final Label shareLabel = new Label(Share); absolutePanel.add(shareLabel, 235, 280); // flowpanel flowPanel.setSize(300px, 153px); // Scroll Panel absolutePanel.add(scrollPanel, 0, 62); scrollPanel.setSize(300, 153); scrollPanel.setAlwaysShowScrollBars(false); //FLOW PANEL_2 scrollPanel.setWidget(flowPanel_2); flowPanel_2.setSize(100%, 100%); // flowpanel2 // flow Panel_1 absolutePanel.add(flowPanel, 0, 59); } public void setTitleText(String titleText) { } public void onChange(Widget sender) { int selectedIndex = listBox.getSelectedIndex(); String selectedText = listBox.getItemText(selectedIndex); if (selectedText.equals(str)) { textBox.setVisible(true); friendsnameOrEmailLabel.setVisible(true); flowPanel.setVisible(false); flowPanel_1.setVisible(false); // to get the cursor Position textBox.getCursorPos(); scrollPanel.setWidget(flowPanel_1); flowPanel_1.setSize(100%, 100%); flowPanel_1.clear(); String values[] = strfrndsvalue.split(delimeter); for (int i = 0; i values.length; i++) { CheckBox chk = new CheckBox(values[i]); chk.setWidth(250px);
GWT-maps-api: Maps API has not been loaded
We've got an error when our google map initializes. It occurs only on IE6 since 12.01.2009 (monday). I think it could be an security- configuration in IE which came with updates?! In IE7 and FF everything works fine. At the moment we're using the Google-Maps-developer key which is included in the html- file. Some other users said: maybe I can solve the problem when I change the order of inherits (move up the inherits name=com.google.gwt.maps.GoogleMaps / before all others). But this did not solved the problem. If a IE- Setting is the reason: what could that be? The shown error is: The Maps API has not been loaded. Is a script tag missing from your host HTML or module file? Is the Maps key missing or invalid? Does anyone has the same issue? Hope you can help! - Danny --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT-maps-api: Maps API has not been loaded
For developing we are using no key, because for localhost its not needed. I changed a configuration by our colleague where the issue occurs. I try to describe the way (translated from german to english). IE's internetoptions - data privacy - Sites... (Dialog opens) - In this dialog I allowed **. google.com* and it seems that this solved the problem. Can anyone agree?! I would be interested what is the issues reason ^^ Additional: Now there is another problem in IE6. Map controls (Zoom, Move, Map-Type, etc.) are not visible. - Danny 2009/1/20 Eric Ayers zun...@google.com I don't see this complaint listed in the Maps Group http://groups.google.com/group/Google-Maps-API Are you saying that you are using a key value that was shipped with the API? If so, go ahead and sign up for your own key if you haven't already. On Tue, Jan 20, 2009 at 4:31 AM, Danny Schimke schimk...@googlemail.comwrote: We've got an error when our google map initializes. It occurs only on IE6 since 12.01.2009 (monday). I think it could be an security- configuration in IE which came with updates?! In IE7 and FF everything works fine. At the moment we're using the Google-Maps-developer key which is included in the html- file. Some other users said: maybe I can solve the problem when I change the order of inherits (move up the inherits name=com.google.gwt.maps.GoogleMaps / before all others). But this did not solved the problem. If a IE- Setting is the reason: what could that be? The shown error is: The Maps API has not been loaded. Is a script tag missing from your host HTML or module file? Is the Maps key missing or invalid? Does anyone has the same issue? Hope you can help! - Danny -- Eric Z. Ayers - GWT Team - Atlanta, GA USA http://code.google.com/webtoolkit/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Working with Disclosure Panel
You can use the following: myFlexTable.getFlexCellFormatter().setColSpan(row, column, colspan) there is a method setRowSpan too... hope I could help you ;) 2009/1/6 sodrul sodrul.bhui...@gmail.com I want to span 2 columns not 2 rows. On Jan 6, 10:13 am, sodrul sodrul.bhui...@gmail.com wrote: I have a Disclosure Panel on the left column of a FlexTable. But I want to span 2 rows for the content. So when the content is displayed it would take entire row span. Please let me know how can I achieve this. Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: New to GWT - how to start - basic directions
You could use Google's visualization-API for GWThttp://code.google.com/intl/de-DE/docreader/#p=gwt-google-apiss=gwt-google-apist=Visualization 2008/12/17 IO inbar200...@yahoo.com Sorry, to farther clarify: I'd like to use GWT mainly for visualization (not UI as I previously written). I am looking for charts, tables, graphs, etc. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: How to modify RichTextArea
Maybe it is possible to do this by using the setHTML() method: myRichTextArea.setHTML(span class=\text-red\This text is colored red.../span); 2008/12/14 luttkens magnuslyttk...@hotmail.com I try to modify the functionallity of the RichTextArea Wdiget. As you know it is possible to format text as bold for instance, which wraps the selected text with Bmy text/B. Is it possible to format text by wrapping my own tags, like: SPAN STYLE=font-size:12pxmy text/SPAN. Or is there a way to get cursor position and selection? Then I can use setHTML() and getHTML(). --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: how to set default button?
This, so I think, should work: 1. Your composite-panel-widget (which has 4 TextBoxes) implements the KeyBoardListener 2. Every TextBox will get a KeyBoardLisener (textBox.addKeyboardListener(this); // this is the Panel) 3. If onKeyPress is fired: check the Key, that was pressed. If it was ENTER call the onClick()- method (Event) from the Button inside the onKeyPress- Event. If I understood correctly: you want to simulate clicking a button if the user pressed the EnterKex while editing a TextBox... Hope that was helpful... 2008/12/12 Riyaz Mansoor riyaz.mans...@gmail.com For a PopupPanel take a look at onKeyPressPreview - handle ENTER, ESC etc key events there. Generally, you are looking at over-riding onEventPreview to handle the keyboard events you want. There is no magical setDefaultButton method. In fact, the default button formatting (if required) you have to implement separately. On Dec 12, 4:59 am, mikedshaf...@gmail.com mikedshaf...@gmail.com wrote: Maybe others with more GWT Form experience can chime in, but adding a KeyboardListener to your text boxes to do a form submit seems completely reasonable and non-hacky. In fact, it's completely in line with traditional UI paradigms, where the whole form submit() concept and all is what's really unusual. Another idea is to extend the FormPanel to something like MyCoolFormPanel and add your own .setDefaultButton method on it. Simply my random thoughts. Good luck! Later, Shaffer On Dec 11, 2:06 pm, UVic_Paul paul.e.st...@gmail.com wrote: Hey all, Been searching around without success, so time to ask the group How do you (or can you) set the default button on a form? For example, let's say you have a panel with 4 TextBox widgets, an Enter button, and a Cancel button. When the user presses Enter during input of any of the 4 Text Boxes, I want to act as if the Enter button had been clicked. In Swing, you'd do something like: JRootPane rootPane = frame.getRootPane(); rootPane.setDefaultButton(enterButton); I realize I can create a KeyboardListener, attach it to all 4 Text Boxes, and react when Enter is pressed, but that seems like a bit of a hack to me. thanks in advance, Paul --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: how to set style with id attribute css selector
To set ID's Debug-ID is the word you're searching for. You can define an ID be using the ensureDebugID()- Method on e.g. composite widgets / elements. When you do this there will be a prefix before your real ID. If your ID is teststyle, the result will be the following: id=gwt-debug-teststyle. I don't know whether it's possible to manupilate the Debug-ID prefix... (I think no) I can imagine there is another way (over DOM) to set the ID, but since I am perplexed ^^ Danny 2008/12/12 bharat.j...@gmail.com bharat.j...@gmail.com Hi, I have a form panel and I want to set style using id attribute so basically when i do formPane.addStyleName(teststyle) it will transform into div class=teststyle / but I am looking for someting like div id=teststyle/. My goal is to set styles using css id selectors. Thoughts, thanks in advance, Bharat --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Using ImageBundle for GWT maps
Is it possible to use ImageBundle for GWT-maps-API too? Because there are used Icon- objects which expect an image-URL-parameter or an Icon- object to create a new instance: 1. Icon.newInstance(images/red-blank-small.gif); 2. Icon.newInstance(myIconObject); Currently I am using images within a image directory and pass it's URL as parameter into the newInstance method. Danny --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
TestBox inside CheckBox's text
I want to use a TextBox inside the CheckBox- label. For example: *[X]* Save in *TextBox* minutes I can do it by using the toString()- method on TextBox, but it is behaving incorrectly: - Firefox (un)checks the CheckBox by clicking into the TextBox - The TextBox- Object is not the TextBox which is displayed - no changes in the original TextBox. Is there a possible way to realize. Except i have to split the components... --~--~-~--~~~---~--~~ 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 can I hide the border of richtextarea?
Also on IE the text boxes and text areas have a native border (gray inset border), I think we cant remove that one I think so too! It would be nice if there is a way to set IE's frameborder to zero... I extended my own frame from GWT's frame with a method that sets the border: public void setFrameBorder(Integer border) { getFrameElement().setFrameBorder(border); } --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Possible to influence event priority?
Hello! I have a SuggestBox with some event listeners. In example onChange and onSuggestionSelected. There are several things to be done. In my case onChange is fired before onSuggestionSelected. It would be nice if I could execute onSuggestionSelected before onCahnge is calling. Is it possible to influense the order of fired events? Thank you very much! Danny --~--~-~--~~~---~--~~ 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: ListBox [Beginner]
An other way is using a Grid, with 2 lines and 2 columns. Add CSS classes for right margin to the labels to get more distance between them and their ListBox'es... The column's are evenly aligned. ;) 2008/12/7 gregor [EMAIL PROTECTED] I've never used header myself (I didn't even know it existed until I looked it up just now!) so i don't really know what it does or how you style it. Looking at the javadoc it says: Modules that use this class should inherit com.google.gwt.http.HTTP. module !-- other inherited modules, such as com.google.gwt.user.User -- inherits name=com.google.gwt.http.HTTP/ !-- additional module settings -- /module Have you done that? I suspect if you do and set the header width to 100% it would look better. NB: you may have to fiddle a bit to get DockPanel to fill up the screen properly how you want, it can be tempremental. For example panel.setWidth(100%) might do the trick, but don't count on it. If you temporarily add panel.setBorderWidth(5) to your code you will see exactly how big it is. regards gregor On Dec 7, 2:26 pm, agon84 [EMAIL PROTECTED] wrote: Hi greg ;) thank you very much for your help. your idea is great, i fixed it like that: DockPanel panel = new DockPanel(); VerticalPanel vPanel1 = new VerticalPanel(); VerticalPanel vPanel2 = new VerticalPanel(); HorizontalPanel hPanel3 = new HorizontalPanel(); vPanel1.setSpacing(12); vPanel2.setSpacing(10); vPanel1.add(label2); vPanel1.add(label3); vPanel2.add(lb); vPanel2.add(lb2); hPanel3.add(vPanel1); hPanel3.add(vPanel2); panel.add(header,DockPanel.NORTH); panel.add(label,DockPanel.NORTH); panel.add(hPanel3, DockPanel.CENTER); panel.add(button,DockPanel.SOUTH); RootPanel.get().add(panel); so now is it possible to set the length of the DockPanel.North to a different size? Cause in the northPanel is the header filled with a background-color. i think it doesn't look so nice, if it ends after the half way of the display. still a nice sunday, greetings On 6 Dez., 21:11, gregor [EMAIL PROTECTED] wrote: Hi agon, FlowPanel is probably not your best bet here. You'll most likely never get it to do what you want. There are millions of ways to organize your display, but you could try something like this: 1) change your main panel (currently FlowPanel) to DockPanel. Then you can put your header into DockPanel.NORTH. 2) put each label/listbox pair into a separate HorizontalPanel. You can then style each cell of these two HP's how you like so they look the same (e.g. get the label separated from the listbox how you like). 3) put the HP's you created in 2) into a third HP - again you can style this to separate/style how the label/listbox pairs look together (without interfering with how the label/listbox pairs themselves are styled if you see what I mean). 4) stick the HP from 3) into DockPanel.CENTER (or LEFT, RIGHT, whatever) In other words break things down into nested boxes (using appropriate GWT widgets) and style each box how you like. regards gregor On Dec 6, 4:47 pm, agon84 [EMAIL PROTECTED] wrote: Hello, since a few days i ve started with gwt. now i will created a gui. i think it isn't a big problem, but i am not able to go further, cause i vn't any idea to fix it. i ve created two listbox's and after i pressed run, the listbox's are standing side by side or they are standing on upon an other. But i want that they look like that: Label 1 : [ListBox1] Label 2 : [ListBox2] Code: 1. Java: public class Frontpage implements EntryPoint { ListBox lb = new ListBox(); ListBox lb2 = new ListBox(); //Sonderzeichen String ouml = \u00f6; String auml = \u00e4; String uuml = \u00dc; public void onModuleLoad() { FlowPanel panel = new FlowPanel(); Header header = new Header(Willkommen beim); header.setStyleName(headerpane); Label label = new Label(FUSSBALL MANAGER!!!); Label label2 = new Label(Welche Maschine wollen Sie kaufen:); Label label3 = new Label(Was m+ouml+chten Sie ausbauen:); label.setStyleName(label); label2.setStyleName(label2); label3.setStyleName(label3); Button button = new Button(Fertig); button.addClickListener(new ClickListener() { public void
Re: disable hyperlink
You are right: it calls the onHistoryChanged- Event. Thats why we created a new button-Widger which extends from Button with only one difference: it has a different link style by default (looks like a link). Then you don't call onHistoryChanged- method. On Button- Click you can add or remove an style name which changes the color of your link-button to gray (look disabled). CSS for your link-button should look something like this: .button-link { cursor: pointer; cursor: hand; border: none; /* Disable the button-style */ background-color: transparent; padding: 0px; color: #4784C3; text-decoration: underline; } 2008/11/27 Litty Preeth [EMAIL PROTECTED] But even if you remove the clickListener, it will cause an onHistroryChange event right? On Thu, Nov 27, 2008 at 1:08 PM, Danny Schimke [EMAIL PROTECTED]wrote: Should'nt setVisible() do this for HyperLinks too? setVisible needs an element and boolean: myHyperLink.setVisible(myHyperLink.getElement(), false); otherwise do what alex.d says: add and remove a style name which do this. CSS: visibility: hidden; 2008/11/27 alex.d [EMAIL PROTECTED] If you wanna it look disabled - change CSS style. If you wanna your clickListener not being executed - just remove it(use a single listener method - not an anonymous inner class). On 26 Nov., 17:03, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: It's a little hacky, but we just substitute a label in it's place. On Nov 26, 7:55 am, Litty Preeth [EMAIL PROTECTED] wrote: Hi, Anybody knows how we can disable a HyperLink in GWT? Regards, Litty Preeth --~--~-~--~~~---~--~~ 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: disable hyperlink
Yeah, thanks alex ^^ I thought about what you said: I had the same idea to put something like dont_handled_token. But with something like firebug it's no problem to change the link (even it is absurd) and then JS- errors occurs... I haveno idea to use Hyperlinks without calling onHistoryChanged. 2008/11/27 alex.d [EMAIL PROTECTED] Nice button style, Danny. However if you don't want to handle the onHistoryChanged-Event - well just don't: set the hyperlink's token to something like dont_handle_this_token and don't handle it ;-) But the button-hyperlink idea is somehow cleaner. On 27 Nov., 16:10, Danny Schimke [EMAIL PROTECTED] wrote: You are right: it calls the onHistoryChanged- Event. Thats why we created a new button-Widger which extends from Button with only one difference: it has a different link style by default (looks like a link). Then you don't call onHistoryChanged- method. On Button- Click you can add or remove an style name which changes the color of your link-button to gray (look disabled). CSS for your link-button should look something like this: .button-link { cursor: pointer; cursor: hand; border: none; /* Disable the button-style */ background-color: transparent; padding: 0px; color: #4784C3; text-decoration: underline; } 2008/11/27 Litty Preeth [EMAIL PROTECTED] But even if you remove the clickListener, it will cause an onHistroryChange event right? On Thu, Nov 27, 2008 at 1:08 PM, Danny Schimke [EMAIL PROTECTED]wrote: Should'nt setVisible() do this for HyperLinks too? setVisible needs an element and boolean: myHyperLink.setVisible(myHyperLink.getElement(), false); otherwise do what alex.d says: add and remove a style name which do this. CSS: visibility: hidden; 2008/11/27 alex.d [EMAIL PROTECTED] If you wanna it look disabled - change CSS style. If you wanna your clickListener not being executed - just remove it(use a single listener method - not an anonymous inner class). On 26 Nov., 17:03, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: It's a little hacky, but we just substitute a label in it's place. On Nov 26, 7:55 am, Litty Preeth [EMAIL PROTECTED] wrote: Hi, Anybody knows how we can disable a HyperLink in GWT? Regards, Litty Preeth --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Possible to get GWT's version by command line?
Hello! Is it possible to print GWT's version number in command line. If I write applicationCreator someInvalidParameter I get the Version: but is there a clean way to get only the version? 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: disable hyperlink
Should'nt setVisible() do this for HyperLinks too? setVisible needs an element and boolean: myHyperLink.setVisible(myHyperLink.getElement(), false); otherwise do what alex.d says: add and remove a style name which do this. CSS: visibility: hidden; 2008/11/27 alex.d [EMAIL PROTECTED] If you wanna it look disabled - change CSS style. If you wanna your clickListener not being executed - just remove it(use a single listener method - not an anonymous inner class). On 26 Nov., 17:03, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: It's a little hacky, but we just substitute a label in it's place. On Nov 26, 7:55 am, Litty Preeth [EMAIL PROTECTED] wrote: Hi, Anybody knows how we can disable a HyperLink in GWT? Regards, Litty Preeth --~--~-~--~~~---~--~~ 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: Focus-Issue with RichTextArea inside TabPanel
Here is the Issue on GWT's site: http://code.google.com/p/google-web-toolkit/issues/detail?id=3103 It's still marked as new This issue occurs in version 1.5.3 of GWT. It did not occur in 1.4.6. The issue occurs only in IE7. Chrome and FireFox 3 work fine. I'll try to reproduce this in previous GWT-Version(s) whether I have time 2008/11/21 Adi [EMAIL PROTECTED] I have a similar issue, although I am not using Tab panel. My application creates (and removes) multiple RichTextAreas held in a combination of VerticalPanel and HorizontalPanel objects. Clicking once inside the RichTextArea works fine, the text is editable as usual. When another RichTextArea is created it is not-editable, and neither are any of regular TextBoxes. Any subsequent TextBoxes RichTextAreas are also non-editable. I am using the RichTextToolbar from the KitchenSink demo. Clicking on one of the RichTextToolBar buttons (such as 'bold' for example) enables the RichTextArea. This issue occurs in version 1.5.3 of GWT. It did not occur in 1.4.6. The issue occurs only in IE7. Chrome and FireFox 3 work fine. Adi On Nov 11, 1:46 pm, Schimki86 [EMAIL PROTECTED] wrote: We implemented a main dialog which provides 3 dialogs and a navigation to switch between those. *Dialog1:* It's the first (initial) dialog. TabPanel with RichTextArea on the first tab (you will see this after start up the application) *Dialog2 + Dialog3:* Dialogs with TextBox widgets If you start the app and switch to Dialog2 or Dialog3 without any other interaction then you can't focus and edit any TextBox. But when you click first anywhere in Dialog1 after start up and then switch to one of the other Dialogs you can use TextBoxes as usual. It occurs only if the TextArea is inside a TabPanel. We have not found a workaround for this... * See attachment* (It's an Eclipse project which demonstrates the issue) RichTextAreaIssue.zip 8KViewDownload --~--~-~--~~~---~--~~ 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: Focus-Issue with RichTextArea inside TabPanel
I'll try to reproduce this in previous GWT-Version(s) whether I have time I tried to reproduce in GWT-Version 1.4.6 upwardly to 1.5.3 and here are my results: 1.4.6: error don't occurs 1.5.0: error don't occurs 1.5.1: error don't occurs 1.5.2: error occurs 1.5.3: error occurs There are no differences in source-code of RichTextArea in GWT version 1.5.2 relationg to 1.5.1 where the issue don't occurs. --~--~-~--~~~---~--~~ 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: New to the GWT
browse to the location where you have your GWT code installed Create a GWT_HOME- Variable to call the projectCreator and applicationCreator from any location. This saves time... ;) --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
SuggestionBox using key value pairs
I need to store a suggestion, additional with an ID into the SuggestionOracle instead only Strings. I have to refer to an Object by the suggestion- given ID. I can't do this with the name / string. Is there a alternative to the existing SuggestionBox. If I understand correctly, I have to create a MultiWordSuggestOracle which differs to the GWT-standard-oracle!? --~--~-~--~~~---~--~~ 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: History list problem in IE6 - Do I really need to patch GWT's jar
Which Doctype are you using? Standard-mode or Qirks-mode? Try Standard-mode in your HTML-file, if you havn't yet... (!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd;). 2008/11/21 Ganesh [EMAIL PROTECTED] Hello Sumit I tried adding position:absolute in iframe but same result as before. Now waiting for your reply Regards Ganesh Bansal On Nov 21, 9:11 am, Ganesh [EMAIL PROTECTED] wrote: Hello Sumit Thanks for your reply. I have already added this iframe tag in my host HTML page with a difference that position:absolute is missing. I don't think it should affect history working but still I will try using this tag in my iframe tag and update you shortly. I am explaining my problem once more if I was not able to do it properly before. Problem: In IE6, although history is being maintained, but the node which is being added in browser's history list (list which is shown while pressing down button located along with back button), is showing link/URL of the page instead of showing title of the window. While it's working fine in Chrome Mozilla. For resolving this, I need to hack in HistoryIE6Impl class as given in previous post. Kindly let me know if I need to explain more. (In the mean time, I am trying position tag and will update you accordingly.) Regards Ganesh Bansal On Nov 21, 3:41 am, Sumit Chandel [EMAIL PROTECTED] wrote: Hi Ganesh, I believe the problem you're experiencing is due to the fact that you forgot to include a required iframe on your host HTML page. Specifically, the GWT History mechanism uses an iframe trick to correctly support history in IE6. Try adding the following iframe in the body of your host HTML page: iframe src=javascript:'' id=__gwt_historyFrame style=position:absolute;width:0;height:0;border:0/iframe That should solve the problem without needing to hack the HistoryImplIE6 class. Hope that helps, -Sumit Chandel On Tue, Nov 18, 2008 at 11:13 PM, Ganesh [EMAIL PROTECTED] wrote: Hello Friends Can anyone confirm if I am doing right for managing history or is there any other alternate for avoiding this patch ? Regards Ganesh Bansal On Nov 18, 9:29 am, Ganesh [EMAIL PROTECTED] wrote: I am using GWT 1.5 and want to manage history. Whenever I call History.newItem(token), Mozilla displays the window title in history list But Internet Explorer shows http://localhost:/com.TestEntry/8DF40326B05334ADE3B6DCA8E9DD3DA2 in the list i.e. URL of my page instead of showing window title. When I drilled, I noticed an issue in HistoryImplIE6's newItemImpl method. It was written as below: protected native void newItemImpl(Element historyFrame, String historyToken, boolean forceAdd) /*-{ historyToken = historyToken || ; if (forceAdd || ($wnd.__gwt_historyToken != historyToken)) { var doc = historyFrame.contentWindow.document; doc.open(); doc.write('htmlbody onload=if(parent.__gwt_onHistoryLoad) parent.__gwt_onHistoryLoad(__gwt_historyToken.innerText)div id=__gwt_historyToken' + historyToken + '/div/body/html'); doc.close(); } }-*/; It adds an IFrame without specifying title tag. If IFrame does not have title then it will display the complete URL in history list. For a solution, I applied a patch in this class where I took the window title and put it into head tag as below: protected native void newItemImpl(Element historyFrame, String historyToken, boolean forceAdd) /*-{ historyToken = historyToken || ; if (forceAdd || ($wnd.__gwt_historyToken != historyToken)) { var doc = historyFrame.contentWindow.document; doc.open(); var windowTitle = $wnd.document.title; doc.write('htmlheadtitle'+windowTitle+'/title/ headbody onload=if(parent.__gwt_onHistoryLoad) parent.__gwt_onHistoryLoad(__gwt_historyToken.innerText)div id=__gwt_historyToken' + historyToken + '/div/body/html'); doc.close(); } }-*/; and now IE is also showing window title in History list. Now my question is: is it a bug of GWT ? And is there any other alternate for this so that I need not to make a patch in GWT's jar. Any help or suggestion in this regard will be highly appreciated. Regards GaneshBansal --~--~-~--~~~---~--~~ 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: Error This UIObject's element is not set;
Hi Shi! create a constructor for your MenuHome and move the code from the Composite()- Method into this constructor. Extending from Composite is correct! ^^ Don't know why you use a method for doing this... ;) ... public MenuHome() { VerticalPanel vPanel = new VerticalPanel(); // Do You really want to set the title (title = tooltip)? // To see something create a Label with Text an add this to the vPanel // Example // Label label = new Label(Good!); // vPanel.add(label); vPanel.setTitle(GOOD!); vPanel.setWidth(100%); vPanel.setHorizontalAlignment(VerticalPanel.ALIGN_CENTER); initWidget(vPanel); // Don't use this here (you do this on your entrypoint alright) RootPanel.get().add(vPanel); } I hope i could help you... ;) --~--~-~--~~~---~--~~ 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: Getting User Input from Input Field
You init an element with com.google.gwt.user.client.Element elem = DOM.getChild(inputHTML.getElement(), 0); and then you wanted to get the value val = DOM.getElementAttribute(elem, value);. Why you do not try to get the value by elem.getAttribute(value)? Or use a TextBox instead HTML(... your textbox as html- code ...) and work with getter- method(s) to get the value from outside. When I have enougth time I'll try your code: first and foremost, it looks really good... ;) See U L8er --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---