Re: Google Gadget: works in hosted mode, but not in web mode (iGoogle)
I have still difficulties with RPC call in a gadget. In hosted mode it works again, but not in iGoogle. Here is my Code: package com.google.gwt.sample.cnsnews_rpc_gadget.client; import java.io.Serializable; import com.google.gwt.sample.cnsnews_rpc_gadget.client.FakeResponse; import com.google.gwt.sample.cnsnews_rpc_gadget.client.GadgetResponse; import com.google.gwt.core.client.GWT; import com.google.gwt.gadgets.client.Gadget; import com.google.gwt.gadgets.client.IntrinsicFeature; import com.google.gwt.gadgets.client.NeedsIntrinsics; import com.google.gwt.gadgets.client.Gadget.ModulePrefs; import com.google.gwt.http.client.RequestBuilder; import com.google.gwt.http.client.RequestCallback; 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.HTML; import com.google.gwt.user.client.ui.Label; import com.google.gwt.user.client.ui.RootPanel; @ModulePrefs(title = CADENAS News, author = mr) public class CADENASNews_RPC_Gadget extends GadgetNewsPreferences implements NeedsIntrinsics, AsyncCallbackString { IntrinsicFeature intrinsicMethods; private final static GadgetServiceAsync gadgetService = (GadgetServiceAsync) GWT.create(GadgetService.class); static { disableStats(); } private static native void disableStats() /*-{ $wnd.$stats = null; }-*/; public void initializeFeature(IntrinsicFeature feature) { this.intrinsicMethods=feature; } public void init(NewsPreferences preferences) { ServiceDefTarget serviceDef = (ServiceDefTarget) gadgetService; String rpcUrl = serviceDef.getServiceEntryPoint(); rpcUrl = intrinsicMethods.getCachedUrl(rpcUrl); String protocol = rpcUrl.substring(0, rpcUrl.indexOf(':')); String file = rpcUrl.substring(rpcUrl.indexOf('/', rpcUrl.indexOf (':')+3)); serviceDef.setServiceEntryPoint(protocol+://+ getDomain() + file); RequestBuilder requestBuilder = gadgetService.getXML (CADENASNews_RPC_Gadget.this); String url = requestBuilder.getUrl(); makeGetRequest(url, requestBuilder.getRequestData(), requestBuilder.getCallback()); } private static native String getDomain() /*-{ return $wnd.document.domain; }-*/; public void onFailure(Throwable caught) { Label lbl2 = new HTML(caught.getLocalizedMessage()); RootPanel.get().add(lbl2); } public void onSuccess(String result) { Label lbl = new HTML(result); RootPanel.get().add(lbl); } private native void makeGetRequest(String url, String postdata, RequestCallback callback) /*-{ var params = {}; params[$wnd.gadgets.io.RequestParameters.METHOD] = $wnd.gadgets.io.MethodType.GET; params[$wnd.gadgets.io.RequestParameters.POST_DATA]= postdata; $wnd.gadgets.io.makeRequest(url, response, params); function response(obj) { @com.google.gwt.sample.cnsnews_rpc_gadget.client.CADENASNews_RPC_Gadget::onSuccessInternal (Lcom/google/gwt/sample/cnsnews_rpc_gadget/client/GadgetResponse;Lcom/ google/gwt/http/client/RequestCallback;)(obj, callback); }; }-*/; static void onSuccessInternal(final GadgetResponse response, RequestCallback callback) { try { String responseText = response.getText(); callback.onResponseReceived(null, new FakeResponse(response)); } catch (Exception e) { callback.onError(null, e); } } } Does anyone know what's wrong here? On 3 Dez., 15:03, flokay f.kar...@cadenas.de wrote: Now if I want to make the rpc call the onFailureMethod is invoked and the error message: unable to initiate the asynchronous service invocation -- check the network connection What could be wrong here? On 1 Dez., 17:14, Eric Ayers zun...@google.com wrote: This may be a conflict between different versions of xerces, because this part of the code is creating a new XML document. You should be using the -noredist.jar file, and expecting to resolve xerces in your GWT build. Are you explicitly including xerces in your build classpath? It may help to checkout the gwt-gadgets project from code and build a fresh .jar along with the version of GWT and xerces you are using. On Tue, Dec 1, 2009 at 10:37 AM, flokay f.kar...@cadenas.de wrote: OK thanks! So I have made it with RPC now and inhostedmode, itworkswell again! But if I want to change it in a gadget the compiler writes the following error message: Compiling module
Re: GWT 2.0 - Problem with Eclipse plugin and UiBinder Field xxx has no corresponding field in template file yyy.ui.xml
Hi, Thanks for feedback and sorry for my late reply. First, could you try forcing a clean build of your project? (Project Clean) This will force a re-indexing of the UiBinder indices. A clean build removes Eclipse warnings. Stopping/Starting Development Mode does the same. Also, could you check your Eclipse log for any errors? The log file lives at your workspace/.metadata/.log . Using the Wizard to add a new UiBinder generates no entries in the log file.. - Which package does your Pjat class live in? com.hoxbro - What version of Eclipse are you using? java.version=1.6.0_12 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=da_DK Framework arguments: -product org.eclipse.epp.package.jee.product Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.jee.product Eclipse Build: 20090621-0832 Eclipse distro: Galileo JEE (win32) GWT and GWT Eclipse Plugin installed from Eclipse (following the instructions http://code.google.com/intl/da/webtoolkit/usingeclipse.html) - What operating system are you running? Win XP (SP3) Thanks, /Søren -- 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-tool...@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.
FlexTable problem in IE
Dear All; i have extended the FlexTable and i want to make it works as a grid. so when i click on a row i want it to be selected take a look at the next good it works fine on FireFox... but it does not work on IE7 addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { if(selectedColumn != -1 isCellPresent(selectedRow, selectedColumn)){ Element tdSelected = getCellFormatter().getElement(selectedRow, selectedColumn); if (tdSelected != null) { Element tr = DOM.getParent(tdSelected); tr.removeAttribute(Class); } } Element td = getEventTargetCell(Event.as(event.getNativeEvent())); if (td != null) { Element tr = DOM.getParent(td); tr.setAttribute(Class, SelectedRow); Element body = DOM.getParent(tr); selectedRow = DOM.getChildIndex(body, tr); selectedColumn = DOM.getChildIndex(tr, td); } } }); can anyone help me please... ?? i am also planning to apply the hover attribute too thanks -- ~~~With Regards~~~ Muhannad Dar-Nasser ~~Computer Systems Engineering~~ -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Use multi CSS in one GWT project
Hello, I have a question about using multi CSS in on GWT project. I have different clients (different resolution) and I would like to set one CSS file to one resolution and another to different one. Is there any way to do that. For example, for resolution 1280x800 I would like client to use Project1280x800.css, for 1400x1050 Project1400x1050.css and so on... I hope you understand what would I like to do. Thanks for answers. Matej -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Use multi CSS in one GWT project
You could determine what css file to use by checking window's width and height. For example: You have a css file for every resolution you want to manage. In those files you declare the same css rules, with the same base names + some unique identifier (eg: .topMenu800x600 or topMenu1024x768). Then you write a helper function that will determine the css rule name in base of window's dimensions like this: public String getCSSName(String baseName){ if(800x600){ return baseName + 800x600; } . . . } After that you will use the helper function to add the css rules that depend on the client's resolution (eg. vPanel.addStyleName(CSSHelper.getCssName(mainTopVPanel);). P.S.: What about writing some elastic css with percentual sizes? You could set a fixed size main parent that will change it's dimensions every time the browser window gets resized (have a look at Window.onResize) and all child elements will have percentual dimensions... On 12/14/2009 10:19 AM, Šobis wrote: Hello, I have a question about using multi CSS in on GWT project. I have different clients (different resolution) and I would like to set one CSS file to one resolution and another to different one. Is there any way to do that. For example, for resolution 1280x800 I would like client to use Project1280x800.css, for 1400x1050 Project1400x1050.css and so on... I hope you understand what would I like to do. Thanks for answers. Matej -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Use multi CSS in one GWT project
On Dec 14, 10:19 am, Šobis matej.poklu...@gmail.com wrote: Hello, I have a question about using multi CSS in on GWT project. I have different clients (different resolution) and I would like to set one CSS file to one resolution and another to different one. Is there any way to do that. You can do it in your CSS file itself, using a @media rule, or in the link you use to load your CSS (using the media= attribute with the appropriate media query). But of course and unfortunately, not all browsers support this (follow my gaze) For example, for resolution 1280x800 I would like client to use Project1280x800.css, for 1400x1050 Project1400x1050.css and so on... I hope you understand what would I like to do. Believe it or not, in 1280x1024, my browser window isn't ever larger than 1000px, it makes lines shorter hence much easier to read. -- 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-tool...@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 disable word wrap in TextArea
Thanks for your help, its working fine. On Dec 8, 2:23 pm, Jim Douglas jdoug...@basis.com wrote: Try this: getElement().setAttribute(wrap,off); On Dec 7, 11:58 pm, Vikas vikas.m.ya...@gmail.com wrote: Hi All, I want to disablewordwrapfor TextArea, so if text info in a row exceeds, it should enable horizontal scroll bar. How to do this? Thanks in advance, Vikas -- 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-tool...@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: One class, several UiBinder templates
Hi FKereki, I am assuming that you need this behaviour bcause you have two different HTMLPanels, which use the a very similar logic? In that case I recommend that you put your logic into another class, for instance PanelLogic, and split your existing class into two, using a dedicated template each. You could then inject PanelLogic into both of your classes and call the appropriate methods on PanelLogic from each. This will produce slight code replication but also adds to the flexibility and testibility (the PanelLogic class does not know of any UiBinder magic). Takes this with a grain of salt though, since I haven't yet figured out an ideal solution that takes advatage of both UiBinder and the origina MVP pattern so this is a partly offtopic post. For instance it is very unclear to me whether it is feasible to make the PanelLogic class agnostic of the structure of the View classes etc... In any case, concerning your original question, I guess that using a custom constructor that sets someWidget (or not) and adding @UiField (provided=true) will solve your problem, although I am having doubts about the testibility of that :) Cheers, Jonas On Dec 14, 3:39 am, FKereki fker...@gmail.com wrote: Hi! Say you want to have two templates for a single class. You can have @UiTemplate(firstTemplate.ui.xml) interface Binder1 extends UiBinderHTMLPanel, yourClass {} private static final Binder binder1= GWT.create(Binder1.class); @UiTemplate(secondTemplate.ui.xml) interface Binder2 extends UiBinderHTMLPanel, yourClass {} private static final Binder binder2= GWT.create(Binder2.class); but how do you specify to which template does each @UiField belong? If you just write @UiField SomeWidgetClass someWidget UiBinder will object unless someWidget is found on BOTH templates. Can this be done, or need I create separate classes for each template? -- 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-tool...@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.
Year navigation in DateBox
Hi All, I am using DateBox control, its ok for date navigation, but for year navigation, let's say I want to select the day of year 2015, I need to go through all the months to change the year. Am I missing something here or have anyone extended the DateBox to support year navigation in GWT. I am looking for something like this http://www.softcomplex.com/products/tigra_calendar/ Thanks, Abdullah -- 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-tool...@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: Obsufcated class names when using UIBinder
Thanks Thomas I have it. Although the UIBinder adds a very long prefix, I can see the original class name. Itzik On Dec 13, 5:49 pm, Thomas Broyer t.bro...@gmail.com wrote: On 13 déc, 12:22, Itzik Yatom itzik...@hotmail.com wrote: I have just started to use the the UIbinder in the GWT 2.0 official release, which is a great tool. When I am inspecting DOM elements in firefox using firebug I notice that GWT generates classes names that are different from the original ones. I understand the intention to generates unique class names, but the problem now is that when investigating the page structure it's hard to identify the original elements without their class names. Is there a way to keep the original class names ? Yes, just put the following in your gwt.xml: set-configuration-property name=CssResource.style value=pretty / seehttp://code.google.com/p/google-web-toolkit/wiki/CssResource#Levers_a... -- 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-tool...@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 2.0: IE7 and PopupPanel still using IFrame hack.
On Dec 14, 8:57 am, David david.no...@gmail.com wrote: Hi, I was assuming that the IFrame behind the popup panel trick was going to be removed in this release, just as were some other IE6 tricks for ImageBundles. I looked in the code and I realized that this is not the case. Why is this a problem for me: we see a 500ms slowdown everytime we use a popup panel when running in IE7 and the application is running in HTTPS. For some reason an IFrame (even about:blank) in IE takes a long time to show when the parent frame is HTTPS. This might be some local issue, but in our case it is quite annoying. I guess this trick is no longer needed for IE7, so I was hoping that it would be removed in GWT 2.0. So I created an issue in the tracker: http://code.google.com/p/google-web-toolkit/issues/detail?id=4352 See my comments on issue 2294 http://code.google.com/p/google-web-toolkit/issues/detail?id=2294 -- 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-tool...@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 2.0 - Problem with Eclipse plugin and UiBinder Field xxx has no corresponding field in template file yyy.ui.xml
Hi, I had the same problem and it was only a matter of buildpath. Your source folder in your buildpath can not have an Included : **/ *.java but Included : (All) because of the ui.xml files. Maybe you have the same problem ? On Dec 14, 9:47 am, hoxbro shox...@gmail.com wrote: Hi, Thanks for feedback and sorry for my late reply. First, could you try forcing a clean build of your project? (Project Clean) This will force a re-indexing of the UiBinder indices. A clean build removes Eclipse warnings. Stopping/Starting Development Mode does the same. Also, could you check your Eclipse log for any errors? The log file lives at your workspace/.metadata/.log . Using the Wizard to add a new UiBinder generates no entries in the log file.. - Which package does your Pjat class live in? com.hoxbro - What version of Eclipse are you using? java.version=1.6.0_12 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=da_DK Framework arguments: -product org.eclipse.epp.package.jee.product Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.jee.product Eclipse Build: 20090621-0832 Eclipse distro: Galileo JEE (win32) GWT and GWT Eclipse Plugin installed from Eclipse (following the instructionshttp://code.google.com/intl/da/webtoolkit/usingeclipse.html) - What operating system are you running? Win XP (SP3) Thanks, /Søren -- 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-tool...@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 problem in IE
On Dec 14, 10:09 am, muhannad nasser muhannadna...@gmail.com wrote: Dear All; i have extended the FlexTable and i want to make it works as a grid. so when i click on a row i want it to be selected take a look at the next good it works fine on FireFox... but it does not work on IE7 addClickHandler(new ClickHandler() { �...@override public void onClick(ClickEvent event) { if(selectedColumn != -1 isCellPresent(selectedRow, selectedColumn)){ Element tdSelected = getCellFormatter().getElement(selectedRow, selectedColumn); if (tdSelected != null) { Element tr = DOM.getParent(tdSelected); tr.removeAttribute(Class); }} Element td = getEventTargetCell(Event.as(event.getNativeEvent())); if (td != null) { Element tr = DOM.getParent(td); tr.setAttribute(Class, SelectedRow); Element body = DOM.getParent(tr); selectedRow = DOM.getChildIndex(body, tr); selectedColumn = DOM.getChildIndex(tr, td); } } }); can anyone help me please... ?? The class= attribute is set using the className DOM property. But why aren't you just doing: public void onClick(ClickEvent event) { Cell cell = getCellForEvent(event); if(selectedColumn != -1 isCellPresent(selectedRow, selectedColumn)) { getRowFormatter().removeStyleName(selectedRow, SelectedRow); } selectedColumn = cell.getCellIndex(); selectedRow = cell.getRowIndex(); getRowFormatter().addStyleName(selectedRow, SelectedRow); } of course, instead of add/removeStyleName, you can also use setStyleName, with to clear it; but add/removeStyleName allows you work seamlessly with other styles such as zebra rows. -- 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-tool...@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.
MouseOverHandler on a FlowPanel
Hi, I would like to add a mouse over on a flow panel. MyFLowPanel.addMouseOverHandler(...) doesn't seems to be possible. How can I do that ? Thanks --- Olivier Digiworks Política de Protección de Datos de Carácter Personal En cumplimiento de la Ley Orgánica 15/1999, de 13 de diciembre, sobre protección de Datos de Carácter Personal (LOPD) DIGIWORKS SPAIN, S.L. informa a los usuarios de que: Los Datos de Carácter Personal que recoge son objeto de tratamiento automatizado y se incorporan en los ficheros correspondientes, debidamente registrados en la Agencia Española de Protección de Datos. El usuario podrá, en todo momento, ejercitar los derechos reconocidos en la LOPD, de acceso, rectificación, cancelación y oposición. El ejercicio de estos derechos puede realizarlo el propio usuario mediante comunicación escrita en la siguiente dirección postal: DIGIWORKS SPAIN, S.L. AVDA SAN RAFAEL, 11, LOCAL 2 03580 ALFAZ DEL PI ALICANTE También pueden ejercitar estos derechos en los términos que la normativa aplicable establece y que puede consultar en www.agpd.es. -- 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-tool...@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: Why Label widget chose to use div instead of label?
WAI-ARIA doesn't forget the HTML structure. The two are complementary. On 13 déc, 22:36, Jan Ehrhardt jan.ehrha...@googlemail.com wrote: Well, GWT supports WAI-ARIA. I don't know what GWT does in the case of a Label to support it, but you can create a custom class, that extends Label and gives it the exact WAI-ARIA behavior you want. Regards Jan Ehrhardt On Sun, Dec 13, 2009 at 7:48 PM, philippe vonck...@yahoo.fr wrote: @Jan: no, html label tag isn't just a text. For Visually impaired people, Readers for Visually impaired interpreter tag Label as the text input fields. If you click on the text label tag, the input is automatically selected. The input tag can't be automatically selected with a text Div tag. A good structure of your DOM is benefit for all agents. On 13 déc, 12:01, Jan Ehrhardt jan.ehrha...@googlemail.com wrote: A HTML Label tag is used as a label for an input. A GWT Label widget is just a text containing area somewhere in your UI. I think a Div tag is the natural choice for a Widget like Label. Regards Jan Ehrhardt On Sun, Dec 13, 2009 at 10:06 AM, philippe vonck...@yahoo.fr wrote: It is very important to improve accessibility. Everybody benefits from this because at the same time improves the overall ergonomics. See :http://www.seoconsultants.com/html/forms/labels/ On 13 déc, 01:22, Yozons Support on Gmail yoz...@gmail.com wrote: The use of LABEL tags is useful for accessibility. Just like TH is useful for tables, though a TD will suffice, this is less the case when attempting to be accessible. -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@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 embed Google Friend Connect Gadget inside GWT app?
Hi, Anyone knows of any ways to embed Google Friend Connect (GFC) Gadgets inside GWT app? 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-tool...@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 embed Google Friend Connect Gadget inside GWT app?
never tried that using GWT only... try setting GFC's code as html for a HTML Widget. -- 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-tool...@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.
Preserve HTTP Sessions when restarting Jetty
Hi, I was wondering if sessions could be serialized when doing a server restart in development mode. I always did that with Tomcat and now I miss that. Thank you, Luciano -- 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-tool...@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.
RichTextArea formatting
Hello all, Is there a way to get/set the cursor position in a RichTextArea? Also, I need to be able to format (bold, set color etc...) certain parts of the text in the RichTextArea programmatically. (bold and color code certain keywords, etc...) I have spent my time searching the docs, but all I could find was a way to format the selected text which is not what I am trying to do... Alexandre Z -- 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-tool...@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.
Seam Remoting Example compilied with GWT 1.7.1
Hi all, I try to get Seam (2.2.0.GA), jboss (5.1.0.GA) and GWT working. If i compile the seam remoting sample with GWT 1.5.2 everything works fine. Compiled files with 1.7.1 throws this stack (after the button click): 15:47:54,844 ERROR [[/seam-gwt]] Exception while dispatching incoming RPC call java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.RangeCheck(Unknown Source) at java.util.ArrayList.get(Unknown Source) (@see http://seamframework.org/Community/SeamGWT17) Please can someone help me to get this example running with gwt 1.7.1 or can anyone give me a just working example with the versions specified above!? That would help me a lot! -- 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-tool...@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 make TabLayoutPanel work with UiBinder?
Hi, I cannot make TabLayoutPanel work with UiBinder. I've tested it with both Chrome and IE8 and it doesn't show. I made a simple sample using the following UiBinder XML: (taken from TabLayoutPanel javadocs help) !DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent; ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder xmlns:g=urn:import:com.google.gwt.user.client.ui g:TabLayoutPanel barUnit='PX' barHeight='3' g:tab g:header size='7'bHTML/b header/g:header g:Labelable/g:Label /g:tab g:tab g:customHeader size='7' g:LabelCustom header/g:Label /g:customHeader g:Labelbaker/g:Label /g:tab /g:TabLayoutPanel /ui:UiBinder and my class code: package com.demosten.uitest.client; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.core.client.GWT; import com.google.gwt.uibinder.client.UiBinder; import com.google.gwt.user.client.Window; import com.google.gwt.user.client.ui.RootLayoutPanel; import com.google.gwt.user.client.ui.TabLayoutPanel; public class Test1 implements EntryPoint { interface Test1UiBinder extends UiBinderTabLayoutPanel, Test1 { } private static final Test1UiBinder uiBinder = GWT.create (Test1UiBinder.class); public void onModuleLoad() { TabLayoutPanel outer = uiBinder.createAndBindUi(this); RootLayoutPanel root = RootLayoutPanel.get(); root.add(outer); } } Am I missing something? Please help! Regards, demosten -- 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-tool...@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.
New GWT2.0 Layout Panels, no style ?
Hi, i'm trying out the new GWT2.0 Layout Panels (DockLayoutPanel,SplitLayoutPanel,...). But there is no default style as you can see in the demo screenshots? Do I miss something ? -- 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-tool...@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.
GWT 2 hosted mode gives response status == 0 ?
Hey guys and thanks for GWT2, it rocks! :D I've just downloaded it and trying to make it work with my current project. All seems perfect except my ajax requests :( I'm using local apache to generate request answers, the request seems to work but it returns 0 status and no response text. This request works well once I am in web mode though. Example: I'm requesting http://localhost/test1.php;, using RequestBuilder + Request.sendRequest. In the onResponseReceived the response.getStatusCode() returns 0 instead of the 200 I had before GWT2. I'm using absolute path for this request and http://localhost/test1.php worst well in a browser. Anyone got any hints? :) I'm sorry if this was already discussed elsewhere, I might have missed the accurate discussion :( Thank you for reading! -- 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-tool...@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.
Properly reload GWT app when new version released.
Sirs and Madams, The Great GWT Masters! I want to ask - if there is any way to reload GWT application in browser if new version was deployed? Please, consider the following scenario: 1. User Logins in GWT application. 2. During user work new version of the application was deployed on server. User doesn't close his browser. 3. When user tries to do something in GWT application he will see the StatusCodeException - because browser is running old version and ServerSide generates responces based on new code base. Is there is STANDARD way or common pattern to define at step 3 that the GWT app in client-side is out-of-date and should be reloaded. -- Kind regards, Ignat Alexeyenko. -- 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-tool...@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: Mac, GWT Hosted Mode does not work after switching to gwt 2.0 and back to 1.7.1
Thank you Sorinel! Unfortunately deleting the content of the browser did not solve it (I have deleted everything except cookies, and passwords). I have deleted the Safari plugin earlier, adn when trying to run this project, it tries to download the plugin and issues the F4MUpdateCheck. While all the project settings seam to be the same with an other - as I Described above, how did I create a running version of the project. and of course the project name and access path had to be changed As I tried, to delete the project, create a new one with the same name and copy the sources back. it did not work. Is it possible that eclipse stores the project lib and other date other location than .project adn .classpath ? Otherwise my app issues an Invalid memory access of location 0x8 eip=0x4a8aeb - if using gwt 2.0 (also I am using gxt 2.1.0 with it) As a note here, the gxt sample app runs fine with gwt 2.0. So I have no clue what is the problem.. Do you have any further idea? Z. On Dec 13, 10:06 pm, Sorinel C scristescu...@hotmail.com wrote: It's simple ... hosted mode uses the default browser of your OS (windows ~ IE, linux ~ FF ). So, first of all clean up the browser cache ... then launch a full rebuild of the project after you change the libraries ... and the hosted mode will come back, as you knew it :-) BTW, better check out why your application doesn't work well with 2.0, 'cause it's better to use newest features ... new resources, faster loading of the application in development mode than hosted mode, code splitting, etc Cheers, Sorinel CRISTESCU -- 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-tool...@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 Maps API - catching key pressed inside MarkerClickHandler
Thanks eric, I figured out my problem creating a new custom marker, implementing the Overlay interface. My marker substantially draw an Image on the map pane. The Image class handles the click event and passes to the event handler a ClickEvent object that is capable to catch the alt key down in this manner: event.getNativeEvent().getAltKey() Bye Marco On 13 Dic, 14:52, Eric Ayers zun...@google.com wrote: Hi Marco, These listeners are wrappers for the click events from the underlying JavaScript Maps API. http://code.google.com/apis/maps/documentation/reference.html#GMap2 http://code.google.com/apis/maps/documentation/reference.html#GMap2http://code.google.com/apis/maps/documentation/reference.html#GMarker I don't see a direct way to get the modifier key information from here, but you might find some more help searching the Google Maps API group. Make sure you read their posting policies before posting. On Sat, Dec 12, 2009 at 5:17 AM, Marco Visonà beren...@gmail.com wrote: Hello I'm developing a custom map, using GWT and the Google Map API library for GWT. I would like to verify if the user holds down the Alt key when he click on a marker in a Google Map. My idea was the following: Marker m = ... m.addMarkerClickHandler(new MarkerClickHandler() { @Override public void onClick(MarkerClickEvent event) { if(is alt key down) do some stuff... } }); I handle the click event on a marker m, and I'd like to check if the alt key is hold. I thought there would be a method like event.getNativeEvent().getAltKey() in the MarkerClickEvent, similarly to the ClickEvent handled by the Button objects, but it doesn't seems so. Is there any solution? Thanks in advance Marco -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Eric Z. Ayers Google Web Toolkit, Atlanta, GA USA -- 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-tool...@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: Properly reload GWT app when new version released.
I did the following: My DTO's have a field that contains the version of the client-side app. Server-side I also have the client-side version number. If on serverside arrives a DTO having other version than the one in the config file, than I send to the client an error code that the client-side error handling logic will reload the page. Seems pretty standard. On 12/13/2009 05:04 PM, Ignat Alexeyenko wrote: Sirs and Madams, The Great GWT Masters! I want to ask - if there is any way to reload GWT application in browser if new version was deployed? Please, consider the following scenario: 1. User Logins in GWT application. 2. During user work new version of the application was deployed on server. User doesn't close his browser. 3. When user tries to do something in GWT application he will see the StatusCodeException - because browser is running old version and ServerSide generates responces based on new code base. Is there is STANDARD way or common pattern to define at step 3 that the GWT app in client-side is out-of-date and should be reloaded. -- Kind regards, Ignat Alexeyenko. -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@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.
Timezone offset in GWT
How to get timezone offset in GWT? In Java we're getting timezone offset by following way, but this is not possible in GWT because Java's 'Calendar' object is not accessible in GWT. public static int getOffsetDiff() { final Calendar cal = Calendar.getInstance(TimeZone.getDefault ()); return (cal.get(Calendar.ZONE_OFFSET) + cal.get (Calendar.DST_OFFSET)) / 1000; } Thanks in advance, Vikas -- 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-tool...@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: Why Label widget chose to use div instead of label?
WAI-ARIA allows you to declare a DIV tag as an 'aria-label', so you can decide, if a GWT label should be an 'aria-label' or not. GWT widgets are more like Swing or SWT widgets than plain HTML tags. This might be one reason for naming a simple text containing widget 'label'. The name clash between GWT label and HTML label isn't fine, but if you know, that they're not the same, it's not a real problem anymore. By default there is no widget in GWT, that does exactly, what a HTML label does, but if you need one, you can easily create your own. Regards Jan Ehrhardt On Mon, Dec 14, 2009 at 11:55 AM, philippe vonck...@yahoo.fr wrote: WAI-ARIA doesn't forget the HTML structure. The two are complementary. On 13 déc, 22:36, Jan Ehrhardt jan.ehrha...@googlemail.com wrote: Well, GWT supports WAI-ARIA. I don't know what GWT does in the case of a Label to support it, but you can create a custom class, that extends Label and gives it the exact WAI-ARIA behavior you want. Regards Jan Ehrhardt On Sun, Dec 13, 2009 at 7:48 PM, philippe vonck...@yahoo.fr wrote: @Jan: no, html label tag isn't just a text. For Visually impaired people, Readers for Visually impaired interpreter tag Label as the text input fields. If you click on the text label tag, the input is automatically selected. The input tag can't be automatically selected with a text Div tag. A good structure of your DOM is benefit for all agents. On 13 déc, 12:01, Jan Ehrhardt jan.ehrha...@googlemail.com wrote: A HTML Label tag is used as a label for an input. A GWT Label widget is just a text containing area somewhere in your UI. I think a Div tag is the natural choice for a Widget like Label. Regards Jan Ehrhardt On Sun, Dec 13, 2009 at 10:06 AM, philippe vonck...@yahoo.fr wrote: It is very important to improve accessibility. Everybody benefits from this because at the same time improves the overall ergonomics. See :http://www.seoconsultants.com/html/forms/labels/ On 13 déc, 01:22, Yozons Support on Gmail yoz...@gmail.com wrote: The use of LABEL tags is useful for accessibility. Just like TH is useful for tables, though a TD will suffice, this is less the case when attempting to be accessible. -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com google-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@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: Properly reload GWT app when new version released.
Thank you for your response! But I think it is a bad idea to keep a version in every DTO object. How we will address issues if one of the service URLs was changed (DTOs are not changed, but service moved from /service to /new-service)? I've heard about the solution based on cookies. We can set cookies from server-side that will keep a version that is used now on server-side. GWT Client application will check that server-side version cookie and client-side ones are same, if they aren't - the application should be reloaded. I think that cookie-based solution will fix the problem, but it's unbelievable that GWT developers didn't address the reload problem. -- Kind regards, Ignat Alexeyenko. On Mon, Dec 14, 2009 at 3:05 PM, Nicanor Cristian nicanor.bab...@gmail.comwrote: I did the following: My DTO's have a field that contains the version of the client-side app. Server-side I also have the client-side version number. If on serverside arrives a DTO having other version than the one in the config file, than I send to the client an error code that the client-side error handling logic will reload the page. Seems pretty standard. On 12/13/2009 05:04 PM, Ignat Alexeyenko wrote: Sirs and Madams, The Great GWT Masters! I want to ask - if there is any way to reload GWT application in browser if new version was deployed? Please, consider the following scenario: 1. User Logins in GWT application. 2. During user work new version of the application was deployed on server. User doesn't close his browser. 3. When user tries to do something in GWT application he will see the StatusCodeException - because browser is running old version and ServerSide generates responces based on new code base. Is there is STANDARD way or common pattern to define at step 3 that the GWT app in client-side is out-of-date and should be reloaded. -- Kind regards, Ignat Alexeyenko. -- 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@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.
New layouts not playing nicely with Maps
Does anyone have the GWT Google maps working inside the new Layout panels? My page is basically a DockLayoutPanel whose main element is a SplitLayoutPanel whose main element is a MapWidget. The MapWidget is set to 100% size. On startup, the map tiles are sized to a very small part of the area, although the grey background does seem to cover the entire space: http://www.infohazard.org/~jeff/mapnolayout.png If I resize the browser window, the map quickly covers the whole area and starts to work normally. I've tried calling MapWidget.checkResize() and the LayoutPanel's forceLayout() methods but neither have an effect. Any idea what I'm doing wrong? The code is super-simple: SplitLayoutPanel split = new SplitLayoutPanel(); this.add(split); // to the DockLayoutPanel split.addWest(new HTML(pblah/p), 200); LatLng cawkerCity = LatLng.newInstance(39.509, -98.434); MapWidget map = new MapWidget(cawkerCity, 4); map.setSize(100%, 100%); split.add(map); Thanks, Jeff -- 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-tool...@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.
GWT and portlet
Hi! i'm new using GWT. Where can i find some documentation on how i can make a portlet using the GWT? And there's some Maven archetype that can i use to make this? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@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 Developer Plugin (GWT 2.0 RC1) crashes FF 3.5.5
What OS are people using? I'm running OS X 10.4 and I can't get the Firefox gwt-dev plugin to work at all. It crashes Firefox on startup. Does anyone know if it requires Java 6 rather than Java 5? (There is no Java 6 runtime for 10.4, btw). On Nov 19, 5:55 pm, Filipe Sousa nat...@gmail.com wrote: On Nov 19, 10:27 pm, Yozons Support on Gmail yoz...@gmail.com wrote: I wish I had a fixed way to make it happen, but it seems like I get a few different scenarios. Sometimes, after lots of code changes while the debugger is running, when I save the client .java file in Eclipse and it's compiled, FF willcrash. Other times, it's when I click RELOAD after making changes. Sadly, FF is my main browser for all sorts of apps, so having itcrashis a pain. I'll post back if I can make heads or tails out of what I see happening. I have seen a few crashes and that's why I'm build thefirefoxplugin from trunk using the xulrunner provided by my distro. $ cd plugins/xpcom/ $ make ARCH=x86_64 BROWSER=ff35 DEFAULT_FIREFOX_LIBS=/usr/lib64/ xulrunner-sdk-1.9.1 GECKO_LIBS=/usr/lib64/xulrunner-sdk-1.9.1/sdk/lib -- 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-tool...@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.
Can GWT do this?
I would like to create an application that has, 1. Edit Mode - Acts as an editor where i can design buttons and labels 2. Application Mode - Where it acts as an application on the newly designed buttons Thanks and Regards -- 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-tool...@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.
Image appearing partially
Hallo, I'm developing a game and I need to show an image partially step by step as game progress, I know how to do it with javascript (by placing floating divs other image and changing their opacity), is there a correct way of doing it with GWT? Thank you in advance. -- 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-tool...@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.
Multiple Images Bundle
I would like to have a tool similar to ClientBundle but which I would point to a directory with images and then I'll have a bundle with images. I need those images as animations for sprites so don't need their names, what is the best way for me to do it? -- 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-tool...@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.
Label with HTML
I have this small code, where I add a Label (div) to another div in my HTML: Label labelEntry = new Label(strong+entry.getName()+:/strong +entry.getMessage()); labelEntry.addStyleName(entry); RootPanel.get(entries).add(labelEntry); The HTML-code is shown instead of the right HTML. How can I build a div with this strong-tag inside? Another thing. I add a style like addStyleName(entry). What if I would like to set an ID of the div instead, as ID=entry? Thank 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-tool...@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: Unable to compile code
Don't you forget that there no platform-specific jar in GWT2.0: gwt-dev-linux.jar was replaced with gwt-dev.jar On Sat, Dec 12, 2009 at 8:44 AM, Rick rick4...@gmail.com wrote: Hi all I have just shifted my application to GWT 2.0 from GWT 1.7 as discussed in http://code.google.com/webtoolkit/doc/latest/ReleaseNotes.html. But In new development mode window there is no option for compile/ browse to check my code in compile mode. Also I have applied a Window.alert in onModuleLoad to check whether it is reflecting or not. By clicking on 'Launch Default Browser' my application get run in Mozilla but Window.alert is not coming. It is showing previous compiled version(The version I compilled with GWT 1.7 jars) Thanks and regards Rick -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@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.
Creating JS objects in GWT
1- My GWT client communicates with the Server side using RPC. Sometimes the serialized (Bean) object contains a little amount of data for example, say a String[] of 5 positions or a hasmap of 5 values etc. I am thinking to create a json string of these values and transmit it to the server side, because, I believe this could save me from creating a Hashmap or any other type of object to be created on the client side. Am I thinking in the right direction? 2- I have seen a couple of json libs for the gwt like GWT-Jsonizer and Rocket-GWT etc. These libs allows to create a json from a corresponding java object. For example, I have a Form or different fields. On pressing a submit, it creates the java bean object from the Form values which is then used by one of the above API's to get the corresponding json string. The original bean object still lives on the client. Similarly a huge GWT app with create a lot number of Beans consuming browser memory. I am thinking to approach this problem by creating a one of my own json converter that would possibly keep adding a new json string to the existing json string and return me the final json once I call the create method. For example JsonConverter jsonConverter = new jsonConverter(); jsonConverter.addJson(String key, String[] arrValues) // { key : [arrValues[0],arrValues[n-1]] jsonConverter.addJson(String key, String value) // , key : , value String createJson() // can return the whole json String { key : [arrValues[0],arrValues[n-1]] , key : , value } Similarly more operations can be added to it, e.g where a key can further take a map of key/value pairs etc. Am I thinking in the right direction? Any ideas/suggestion would be highly appreciable. Thanks a lot. -- 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-tool...@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: Deprecated SerializableException
Your methods should throw SerializationException agains Exception. On Dec 10, 4:13 am, rjcarr rjc...@gmail.com wrote: I'm attempting to upgrade to GWT 2.0 and everything is working well enough except I am getting this warning in the compile step: Referencing deprecated class 'com.google.gwt.user.client.rpc.SerializableException' And the file it mentions is a gwt derived file with the suffix: _TypeSerializer.java The warning always happens on service classes (i.e., RemoteService), but doesn't seem to happen on *all* service classes. I have not defined SerializableException explicitly, but my method signatures do throw Exception. Any idea why this is happening and what I can do to make it go away? 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-tool...@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.
Create Vertical Menu Bar using MenuBar Widget
Hi, I'm trying to deploy a Vertical Menu Bar using Menu Bar Widget provided by GWT using code as follows: MenuBar fooMenu = new MenuBar(true); fooMenu.addItem(the, cmd); MenuBar barMenu = new MenuBar(true); barMenu.addItem(the, cmd); MenuBar bazMenu = new MenuBar(true); bazMenu.addItem(the, cmd); // Make a new menu bar, adding a few cascading menus to it. MenuBar menu = new MenuBar(true); menu.addItem(foo, fooMenu); menu.addItem(bar, barMenu); menu.addItem(baz, bazMenu); I have seen that if main root menu (menu) its positioned vertically I don't see any submenus I try to open it. Does it the correct behaviour? It's possible to create vertical menu bars using GWT? 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-tool...@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.
Timer in GWT?
I'm trying to have a Java Timer in my EntryPoint: Timer timer = new Timer(); timer.schedule( new TimerTask() { public void run() { //some code } } , 5000); But when trying to compile this I got: No source code is available for type java.util.Timer; did you forget to inherit a required module? No source code is available for type java.util.TimerTask; did you forget to inherit a required module? What to do? -- 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-tool...@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.
EntryPoint: Timer?
I've a timer in my EntryPoint doing some code every 5 second: Timer timer = new Timer(); timer.schedule( new TimerTask() { public void run() { //do something } } , 5000); But when compiling I got this error: No source code is available for type java.util.Timer; did you forget to inherit a required module? What to do? -- 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-tool...@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.
For loop with UI Binder
Hi, I'm new in this group, I do tried to look for this answer on the web but with no success and as its a pretty basic question I'm afraid I might be missing something obvious here. Well, how do UI Binder handle for loop? what should I do if I want to list all the results of a search or something like that? Thanks in advance. -- 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-tool...@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.
Clear HTML div?
I've this HTML code: div id=entries div class=loadingLoading guestbook entries../div /div When calling a RootPanel.get(entries).clear(); I expected that all childs inside this div will be removed. But it doesn't. How can I really clear the div? -- 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-tool...@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: Parsing Complicated XML
Hi there, Note that getChildNodes returns a NodeList, which is a list of Nodes [1]. A Node could be an element, an attribute, a comment, a ... You could try testing each Node in the NodeList to see if it is an instanceof Element [2], then counting those. Hth, Alistair [1] http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/xml/client/Node.html [2] http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/xml/client/Element.html On Dec 9, 1:31 pm, oliverde8 oliver...@gmail.com wrote: Hi, I am trying to generate a a tree using a XML file. I was able to read and Parse the XML file. But I have some problems with the parser. The xml I try to parse is:http://91.121.149.10/Personal/oliverde8/test/index.xml At the end I want to have a tree in a DecoratedTabPanel, with multiple tabs. Once I read the tabs in the XML I start having troubles. when I use getChildNodes(line70) I don't know what I get. I counted the number of nodes it says I have 5 nodes(line72) but I don't have 5 child inside the tab even if I look deeper in the sub categories. The java codehttp://91.121.149.10/Personal/oliverde8/test/Gen_tr_index.java I could do something similar in PHP, it is so much easier to read an XML. But I wanted to use Google Web Toolkit. Thanks a lot, -- 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-tool...@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.
Modules Architecture Newbie Doubt
Dear all, I began to study GWT a two day ago, just reading and making some tutorials, and have a stupid doubt, how to construct the structure of site? I want to construct a simple site with a login screen and while someone hits the correct username and password, the site goes to another pages with a google maps (supposed). My doubt is: How can I links this and other things? Because in the EntryPoint class there is just one onModule Load. Have I to construct all the things in modules and call this modules? How can I start a module? I am very confuse. Thanks Ricardo do Valle Flores de Oliveira -- 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-tool...@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.
NullPointerException when compile class extends from Exception
Hi all,Exception occur when compiling: java.lang.NullPointerException at com.google.gwt.dev.javac.CompiledClass.init(CompiledClass.java: 83) at com.google.gwt.dev.javac.JdtCompiler$FindTypesInCud.visit (JdtCompiler.java:185) at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse (TypeDeclaration.java:1253) at org.eclipse.jdt.internal.compiler.ast.QualifiedAllocationExpression.traverse (QualifiedAllocationExpression.java:478) at org.eclipse.jdt.internal.compiler.ast.Assignment.traverse (Assignment.java:255) at org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.traverse (MethodDeclaration.java:239) at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse (TypeDeclaration.java:1239) at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.traverse (CompilationUnitDeclaration.java:687) at com.google.gwt.dev.javac.JdtCompiler$CompilerImpl.process (JdtCompiler.java:157) at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java: 444) at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java: 466) at com.google.gwt.dev.javac.CompilationStateBuilder $CompileMoreLater.compile(CompilationStateBuilder.java:141) at com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom (CompilationStateBuilder.java:279) at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom (CompilationStateBuilder.java:181) at com.google.gwt.dev.cfg.ModuleDef.getCompilationState (ModuleDef.java:280) at com.google.gwt.dev.Precompile.precompile(Precompile.java:502) at com.google.gwt.dev.Precompile.precompile(Precompile.java:414) at com.google.gwt.dev.Compiler.run(Compiler.java:201) ... following is my source: package com.wiscom.demo.client; public class BizException extends Exception implements IsSerializable { public BizException() { super(); } public BizException(String message) { super(message); } public BizException(String message, Throwable cause) { super(message, cause); } public BizException(Throwable cause) { super(cause); } } package com.wiscom.demo.client; public interface ContactManager extends RemoteService { public ListContact getAllContact() throws BizException; If I modifed public class BizException extends Exception to public class BizException extends RuntimeException,compiling is ok. I use GWT 2.0. Any advise is appreciated! Thanks Best rgds L.J.W -- 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-tool...@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.
One single JavaScript file
Hello I'm trying to get GWT 2.0 to generate one single JavaScript file. I know it's not the correct way to do things, but the system I'm working with is very locked and difficult. For instance it will rename all files I upload. So what I have tried is using SingleScriptLinker by adding this to my module: inherits name=com.google.gwt.core.Core / add-linker name=sso / But it needs one single compilation, and I don't know how to do that. I can set the user.agent to for instance ie6, then I will get one permutation and sso works. Although then I would get for just one browser, I need to support all browsers. Thanks -- Eirik Brandtzæg -- 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-tool...@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: Timer in GWT?
Use the GWT timer Ian http://examples.roughian.com 2009/12/14 Dennis Madsen den...@demaweb.dk I'm trying to have a Java Timer in my EntryPoint: Timer timer = new Timer(); timer.schedule( new TimerTask() { public void run() { //some code } } , 5000); But when trying to compile this I got: No source code is available for type java.util.Timer; did you forget to inherit a required module? No source code is available for type java.util.TimerTask; did you forget to inherit a required module? What to do? -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@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: Clear HTML div?
RootPanel's clear method only removes GWT widgets. I would recommend to prevent the mixing of HTML in your host page and GWT widgets. Use a label widget instead. If this isn't an option, you can do: Element element = RootPanel.get(entries).getElement(); DOM.removeChild(element, 0); This will manipulate the DOM directly and thus it's not recommended. Regards Jan Ehrhardt On Sun, Dec 13, 2009 at 11:09 PM, Dennis Madsen den...@demaweb.dk wrote: I've this HTML code: div id=entries div class=loadingLoading guestbook entries../div /div When calling a RootPanel.get(entries).clear(); I expected that all childs inside this div will be removed. But it doesn't. How can I really clear the div? -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@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 2.0 - com.google.gwt.user.client.rpc.IsSerializable is mandatory again?
I cleanup after every build but since converting to 2.0, I started encountering intermittent Serialization exceptions even in production. I had to switch back 1.7. For production use, cleaning up browser cache is not an option as I cant tell all my users to do so. I guess I will have to wait a bit for this release to be stable to switch to 2.0 for production use. Addy http://checkAppointments.com On Dec 13, 4:11 pm, Sorinel C scristescu...@hotmail.com wrote: When a new version comes these are the standard steps to do: 1 - put the jars 2 - perform a full rebuild of the application 3 - clean up the browser cache 4 - clean up the temp folder, where the GWT is generating the compilation crap... 5 - run the application :-)) Cheers, Sorinel CRISTESCU -- 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-tool...@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: Clear HTML div?
Well Dennis, First, I need to know the following tag div id=entries is the main tag in your Hosted HTML file??? if so, you should be able to remove everything inside it with the RootPanel.get().clear() method. However, if the tag div id=entries was generated by the GWT compiler from a FlowPanel, or FocusPanel or any other panel, than you should call the panel.removeChild() method, which Im sure you're aware of that already :) If none of the above is your case, then please be more clear about it and if possibly, you could post your Java code here. Regards, Joe On Dec 14, 4:08 pm, Jan Ehrhardt jan.ehrha...@googlemail.com wrote: RootPanel's clear method only removes GWT widgets. I would recommend to prevent the mixing of HTML in your host page and GWT widgets. Use a label widget instead. If this isn't an option, you can do: Element element = RootPanel.get(entries).getElement(); DOM.removeChild(element, 0); This will manipulate the DOM directly and thus it's not recommended. Regards Jan Ehrhardt On Sun, Dec 13, 2009 at 11:09 PM, Dennis Madsen den...@demaweb.dk wrote: I've this HTML code: div id=entries div class=loadingLoading guestbook entries../div /div When calling a RootPanel.get(entries).clear(); I expected that all childs inside this div will be removed. But it doesn't. How can I really clear the div? -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@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: Can GWT do this?
ofcourse you can do that... It would help if you can elaborate. A simple implementation would be to make use of deckpanel where you switch the deck card based on editMode flag. put a label and textbox in the deck. If editMode == true, display textbox. if false, display label. This is one simple implementation. It depends on what your exact use case is. Rakesh Wagh On Dec 13, 11:23 am, sportscode venkatnar...@gmail.com wrote: I would like to create an application that has, 1. Edit Mode - Acts as an editor where i can design buttons and labels 2. Application Mode - Where it acts as an application on the newly designed buttons Thanks and Regards -- 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-tool...@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: For loop with UI Binder
Hi, As far as I understand there is no loop construct. UiBinder It's meant to be a way just to layout your user interface. You can always run your logic on the java side of the UI. On Dec 14, 9:51 am, Vandre vandr...@gmail.com wrote: Hi, I'm new in this group, I do tried to look for this answer on the web but with no success and as its a pretty basic question I'm afraid I might be missing something obvious here. Well, how do UI Binder handle for loop? what should I do if I want to list all the results of a search or something like that? Thanks in advance. -- 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-tool...@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.
auto-complete login solution with UiBinder?
Hi all. I've seen different (not so pretty) solutions to enabling browser auto complete for login forms with GWT. I have not had time to investigate UiBinder much yet, but I was wondering if it is possible to make a cleaner solution for this using UiBinder? Has anyone done this and can provide some code example? Thanks in advance. BR, Andreas -- 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-tool...@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: MouseOverHandler on a FlowPanel
Anyone about this ? Maybe I should use another type of panel. Thanks Olivier On 14 Dec 2009, at 11:51, Olivier wrote: Hi, I would like to add a mouse over on a flow panel. MyFLowPanel.addMouseOverHandler(...) doesn't seems to be possible. How can I do that ? Thanks --- Olivier Digiworks Política de Protección de Datos de Carácter Personal En cumplimiento de la Ley Orgánica 15/1999, de 13 de diciembre, sobre protección de Datos de Carácter Personal (LOPD) DIGIWORKS SPAIN, S.L. informa a los usuarios de que: Los Datos de Carácter Personal que recoge son objeto de tratamiento automatizado y se incorporan en los ficheros correspondientes, debidamente registrados en la Agencia Española de Protección de Datos. El usuario podrá, en todo momento, ejercitar los derechos reconocidos en la LOPD, de acceso, rectificación, cancelación y oposición. El ejercicio de estos derechos puede realizarlo el propio usuario mediante comunicación escrita en la siguiente dirección postal: DIGIWORKS SPAIN, S.L. AVDA SAN RAFAEL, 11, LOCAL 2 03580 ALFAZ DEL PI ALICANTE También pueden ejercitar estos derechos en los términos que la normativa aplicable establece y que puede consultar en www.agpd.es. -- 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-tool...@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. --- Olivier Digiworks Política de Protección de Datos de Carácter Personal En cumplimiento de la Ley Orgánica 15/1999, de 13 de diciembre, sobre protección de Datos de Carácter Personal (LOPD) DIGIWORKS SPAIN, S.L. informa a los usuarios de que: Los Datos de Carácter Personal que recoge son objeto de tratamiento automatizado y se incorporan en los ficheros correspondientes, debidamente registrados en la Agencia Española de Protección de Datos. El usuario podrá, en todo momento, ejercitar los derechos reconocidos en la LOPD, de acceso, rectificación, cancelación y oposición. El ejercicio de estos derechos puede realizarlo el propio usuario mediante comunicación escrita en la siguiente dirección postal: DIGIWORKS SPAIN, S.L. AVDA SAN RAFAEL, 11, LOCAL 2 03580 ALFAZ DEL PI ALICANTE También pueden ejercitar estos derechos en los términos que la normativa aplicable establece y que puede consultar en www.agpd.es. -- 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-tool...@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 and portlet
portlet by itself is a broad term. You have to be more specific on what you need to achieve. If all you are looking for is portlet like boxes where some information can be displayed, look into demo 4 and 5 of gwt-dnd library. If you need more like jsr 168 compliance etc, you will have to put some more efforts. Check these articles if they are any help: https://technical.wiki.d4science.research-infrastructures.eu/documentation/index.php/Developing_Portlets_with_GWT http://blogs.sun.com/insidemyhead/entry/google_web_toolkit_gwt_modules On Dec 12, 7:10 am, Rascio88 manuelrasci...@gmail.com wrote: Hi! i'm new using GWT. Where can i find some documentation on how i can make a portlet using the GWT? And there's some Maven archetype that can i use to make this? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@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.
Unit testing with GWTTestCase. HtmlUnit, Manual and ExternalBrowser run styles.
Unfortunately HtmlUnit won't correctly execute all our integration tests. The issue is with the handling of asynchronous calls as noted in the GWT doc. I'm using OS X so I also needed to set - Djava.awt.headless=true for some tests. I couldn't use Selenium because I ran into this issue - http://jira.openqa.org/browse/SRC-743. I ended up using the experimental ExternalBrowser runstyle. If anyone is interested in more info I have put up a post at http://development.lombardi.com/?p=1120 -- 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-tool...@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: Year navigation in DateBox
Hi I've choosed to create a new gadget from the original datepicker copying those classes refactoring and rewrite some because i needed an datepicker that showed 3 months instead of one. but for your case ... you should make an object looking at the code from DefaultMonthSelector, and an another class that extends DatePicker calling the constructor with the (MonthSelector monthSelector, CalendarView view, CalendarModel model) using your MonthSelector instead of the DefaultMonthSelector didn't try it but i think it should do. Good luck ! On Dec 14, 12:27 pm, Abdullah Shaikh abdullah.shaik...@gmail.com wrote: Hi All, I am using DateBox control, its ok for date navigation, but for year navigation, let's say I want to select the day of year 2015, I need to go through all the months to change the year. Am I missing something here or have anyone extended the DateBox to support year navigation in GWT. I am looking for something like thishttp://www.softcomplex.com/products/tigra_calendar/ Thanks, Abdullah -- 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-tool...@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: EntryPoint: Timer?
Yes, use com.google.gwt.user.client.Timer :) -- 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-tool...@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: Can GWT do this?
I think he doesn't mean exactly this. So as i understand he wants to dynamically create custom applications using widgets(like UI editor not for developers, but for end users, that has no idea of developing). I hope i am right. So back to the question (if i think i know what you are asking). Yes, it is possible, but the designing its self is the easy part, the harder part is adding event handling to this widgets and it depends on what widgets do you want to use. Regards. -- 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-tool...@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: External Javascript method call
Hi, Tom, Thanks for ur reply! Having done var bar = new $wnd Foo(); Is this correct: bar.fooMethod(); ? On Dec 13, 10:19 pm, Thomas Broyer t.bro...@gmail.com wrote: On 11 déc, 07:31, JavaDoc amey.m...@gmail.com wrote: Hello, Ive associated a certain FooBar.js to my module. The javascript has a methodFoo(), which I need to invoke. I am trying to do this through JSNI, however, its failing. Heres my code: public native void doSomething() /*-{ var bar =newFoo(); //some other stuff }-*/; This method is being called through an onClick event of a GWT button. I am however, getting this exception in my console: [ERROR] Uncaught exception escaped com.google.gwt.core.client.JavaScriptException: (TypeError): 'Foo' is undefined number: -2146823279 Please help me out :( var bar =new$wnd.Foo(); Seehttp://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasics.htm... -- 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-tool...@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: RC2 and Eclipse Plugin
I had this problem too (though in my case it was because I took a 1.x GWT project and opened it in GWT 2.0). In my case, I had the wrong working directory during debug. To fix it, I had to go into the debug configuration for my GWT app, and set my Working Directory to be my WAR directory (it was previously just my project root). So, select Debug Configurations -- Your WebApp -- Click Arguments tab -- Select other for Working Directory -- Click the Workspace button -- Select your WAR file -- Apply. After I did that, the URL for my Hosted-mode app started showing up in the Development Mode convenience tab during debugging. On Dec 3, 3:58 pm, John Patterson jdpatter...@gmail.com wrote: Yes I see the dev mode view but there is no link. ie it says For you convenience and there is an empty list. -- 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-tool...@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 2.0 - Problem with Eclipse plugin and UiBinder Field xxx has no corresponding field in template file yyy.ui.xml
Hi Julien, Thanks for pointing this scenario out, I've opened http://code.google.com/p/google-web-toolkit/issues/detail?id=4353 to present a better error message for this. Hoxbro, as Julien mentioned, could you please let us know if the issue you're seeing is caused by this? Thanks, jason On Mon, Dec 14, 2009 at 5:46 AM, Julien Ortega dun7...@gmail.com wrote: Hi, I had the same problem and it was only a matter of buildpath. Your source folder in your buildpath can not have an Included : **/ *.java but Included : (All) because of the ui.xml files. Maybe you have the same problem ? On Dec 14, 9:47 am, hoxbro shox...@gmail.com wrote: Hi, Thanks for feedback and sorry for my late reply. First, could you try forcing a clean build of your project? (Project Clean) This will force a re-indexing of the UiBinder indices. A clean build removes Eclipse warnings. Stopping/Starting Development Mode does the same. Also, could you check your Eclipse log for any errors? The log file lives at your workspace/.metadata/.log . Using the Wizard to add a new UiBinder generates no entries in the log file.. - Which package does your Pjat class live in? com.hoxbro - What version of Eclipse are you using? java.version=1.6.0_12 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=da_DK Framework arguments: -product org.eclipse.epp.package.jee.product Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.jee.product Eclipse Build: 20090621-0832 Eclipse distro: Galileo JEE (win32) GWT and GWT Eclipse Plugin installed from Eclipse (following the instructionshttp://code.google.com/intl/da/webtoolkit/usingeclipse.html) - What operating system are you running? Win XP (SP3) Thanks, /Søren -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@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: Timer in GWT?
you should use import com.google.gwt.user.client.Timer;... see StockWatcher tutorial for a sample : http://code.google.com/webtoolkit/doc/latest/tutorial/codeclient.html Hasan On Dec 14, 1:21 pm, Dennis Madsen den...@demaweb.dk wrote: I'm trying to have a Java Timer in my EntryPoint: Timer timer = new Timer(); timer.schedule( new TimerTask() { public void run() { //some code } } , 5000); But when trying to compile this I got: No source code is available for type java.util.Timer; did you forget to inherit a required module? No source code is available for type java.util.TimerTask; did you forget to inherit a required module? What to do? -- 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-tool...@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: Eclipse, GWT 2.0 and Opening a browser
You are right that we no longer launch the browser for you although we've talked about adding this feature back in. However, you should not need to re-open the browser each time if you are debugging the same application. If the launch configuration is not setup to Automatically select an unused port then the URL will be stable across restarts of the launch configuration. So, you should only need to do the copy/paste once and then simply reload the browser from there on out. On Wed, Dec 9, 2009 at 11:46 AM, Lee leedst...@gmail.com wrote: Hi Everyone, Just upgraded to GWT 2.0 in Eclipse and have been trying it out. One thing that has been irritating me so far, is every time I run as a web application in Development mode, having to re-open my browser and copy paste the URL (if I have previously closed the browser). Does anyone know if it is possible to have it so a browser (such as Chrome), opens as default when you run as a web application. (It strikes me as something fairly obvious, so sorry if I've missed this in another article). Thanks, Lee -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Miguel -- 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-tool...@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: UI Binder, really a good approach?
On Sat, Dec 12, 2009 at 2:06 PM, philippe vonck...@yahoo.fr wrote: Using annotations to define the presentation is a bad practice, as being able to define the size of components in Java. The best way to separate the presentation logic is to give a class name to an element and define its presentation in a separate CSS file. See csszengarden as reference. In my case, annotations describe presentation. The downside of this is that presentation options have to be well defined beforehand and implemented somehow, with UIBinder for instance. One case of where the annotations approach that I've taken does well IMO, is in describing forms. Designing a GWT feature or function within an application that captures user input, often starts by defining an object to be used for RPC. So for instance, I have a registration form that will pass instances of the following class. class Registration { String firstname; String lastname; String email; String username; String password; ... } Let's say that I know I'm storing these in a database so I write all the persistence code and unit tests and all of that works great. Now, I want the actual form. The approach I've taken is to say, I already have a portion of the info I need to describe this form, the model, but I need to add a few hints, this is the approach, I believe, that Rails and Django take with their models, and results in a very fast turnaround time for something like an app administration. So here are the changes I need to make in order to get a form rendered. @Form(..) class Registration { @CharField(..) String firstname @CharField(..) String lastname; @EmailField(..) String email; @CharField(..) String username; @PasswordField(..) String password; .. } And with a few more lines of client-side GWT code, I have a form rendered with data-binding. The data-binding portion means that as a user enters values into the form, a Registration object in the background is upgraded with those values. You can see this working in the demo here: http://gxtforms.appspot.com/#simpleform This is just another approach which is similar to other approaches (django and Rails admin and templating), that I feel adds some value to GWT. It does not replace something like UIBinder for complex layouts. -Dave -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@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: RC2 and Eclipse Plugin
Hi David, You should not have had to tweak the working directory. When GEP launches a GWT app, the -war option is specified, an an absolute path to the war folder is given as an argument. The startup URLs are actually derived from the war folder. Can you verify that if you change the working directory of your launch configuration that the URLs no longer show up? Thanks, Rajeev On Mon, Dec 14, 2009 at 10:08 AM, David Fuelling sappe...@gmail.com wrote: I had this problem too (though in my case it was because I took a 1.x GWT project and opened it in GWT 2.0). In my case, I had the wrong working directory during debug. To fix it, I had to go into the debug configuration for my GWT app, and set my Working Directory to be my WAR directory (it was previously just my project root). So, select Debug Configurations -- Your WebApp -- Click Arguments tab -- Select other for Working Directory -- Click the Workspace button -- Select your WAR file -- Apply. After I did that, the URL for my Hosted-mode app started showing up in the Development Mode convenience tab during debugging. On Dec 3, 3:58 pm, John Patterson jdpatter...@gmail.com wrote: Yes I see the dev mode view but there is no link. ie it says For you convenience and there is an empty list. -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@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 make TabLayoutPanel work with UiBinder?
Hi demosten, Could you verify that your host HTML page has the doctype for standards mode at the top? (This requirement is mentioned in the javadoc for TabLayoutPanel, but is easy to miss :) ) I believe !DOCTYPE html is sufficient. jason On Sun, Dec 13, 2009 at 6:16 PM, demosten demos...@gmail.com wrote: Hi, I cannot make TabLayoutPanel work with UiBinder. I've tested it with both Chrome and IE8 and it doesn't show. I made a simple sample using the following UiBinder XML: (taken from TabLayoutPanel javadocs help) !DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent; ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder xmlns:g=urn:import:com.google.gwt.user.client.ui g:TabLayoutPanel barUnit='PX' barHeight='3' g:tab g:header size='7'bHTML/b header/g:header g:Labelable/g:Label /g:tab g:tab g:customHeader size='7' g:LabelCustom header/g:Label /g:customHeader g:Labelbaker/g:Label /g:tab /g:TabLayoutPanel /ui:UiBinder and my class code: package com.demosten.uitest.client; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.core.client.GWT; import com.google.gwt.uibinder.client.UiBinder; import com.google.gwt.user.client.Window; import com.google.gwt.user.client.ui.RootLayoutPanel; import com.google.gwt.user.client.ui.TabLayoutPanel; public class Test1 implements EntryPoint { interface Test1UiBinder extends UiBinderTabLayoutPanel, Test1 { } private static final Test1UiBinder uiBinder = GWT.create (Test1UiBinder.class); public void onModuleLoad() { TabLayoutPanel outer = uiBinder.createAndBindUi(this); RootLayoutPanel root = RootLayoutPanel.get(); root.add(outer); } } Am I missing something? Please help! Regards, demosten -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@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 2.0 Upgrade Problem
Have you tried deleting the war/MyApp directory, and performing an unconditional reload of MyApp.html (hold down SHIFT and hit reload) in your browser? Do you mind posting the contents of your MyApp.html page? On Fri, Dec 11, 2009 at 5:50 PM, Chris uk.org.micros...@googlemail.comwrote: What does the war dir structure look like under your project root? Does CA786633770B20A7881AAE6CBEB6.cache.html exist anywhere? That file doesn't exist. The structure looks like the following: /MyApp/war/MyApp /MyApp/war/MyApp/gwt /MyApp/war/MyApp/14A43CD7E24B0A0136C2B8B20D6DF3C0.cache.png /MyApp/war/MyApp/548CDF11D6FE9011F3447CA200D7FB7F.cache.png /MyApp/war/MyApp/6F02E4D1CC4E715CEC0109830ED7B11F.cache.html /MyApp/war/MyApp/9A5835AB2A7C1435D8A10A61458849CC.cache.html /MyApp/war/MyApp/9DA92932034707C17CFF15F95086D53F.cache.png /MyApp/war/MyApp/A7CD51F9E5A7DED5F85AD1D82BA67A8A.cache.png /MyApp/war/MyApp/B388430974F442BEFB0B1FA19B496931.cache.html /MyApp/war/MyApp/B8517E9C2E38AA39AB7C0051564224D3.cache.png /MyApp/war/MyApp/clear.cache.gif /MyApp/war/MyApp/EA60B1BB1D14E9E4AB586FF01FF63FE5.cache.html /MyApp/war/MyApp/EE757F57A252492548FF9A859F768C5B.cache.html /MyApp/war/MyApp/hosted.html /MyApp/war/MyApp/MyApp.nocache.js -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@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 prepend?
I'm adding a label into a div on my HTML: RootPanel.get(entries).add(myLabel); But what if I would like to prepend the label instead of adding it? How can I do so? -- 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-tool...@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: plugin does not show up
How did you install the plugin? Did you use the update site mechanism, or did you install it via zip files? On Fri, Dec 11, 2009 at 10:23 AM, r a f t hakan.erya...@gmail.com wrote: hi, i've just installed gwt plugin to eclipse-jee-galileo-SR1 64 bit on ubuntu 9.1. installation went smooth and i've restarted eclipse but plugin is missing. i cant see it in preferences, in launch configurations dialog, in new categories. it's just missing. error logs says nothing about it. i also tried installing the sdk bundles but didnt help. any ideas ? thanks, r a f t -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@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.
[ANN] SmartGWT 2.0 Released
Hi, Smart GWT 2.0 has just been released. Here's the release announcement : http://www.jroller.com/sjivan/entry/smart_gwt_2_0_released Updated Showcase Demo : http://www.smartclient.com/smartgwt/showcase/ Key features of this release : * GWT 2.0 support * New Enterprise Blue theme and improved Enterprise Gray theme * Drop-in upgrade with no upgrade or migration effort * Multi-Column sort support * Grid Row Expansion support for - memo rows - detail views - nested editable form - nested editable grid (useful for representing 1-many relationships) - any custom embedded component * Collection of standard Window icons, picker icons and transfer buttons as part of every theme * Improved Showcase demo with ability to search for samples by keyword. Added several new samples * Various other enhancements like Date field masks, improved IE 8 and Safari strict mode support. See the release notes for details Feel free to provide feedback or suggestions. Thanks, Sanjiv -- 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-tool...@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.log on GWT 2.0
Did you try looking at the log messages in the browser entry in the Development Mode View (within Eclipse)? Also, what level are you logging at? By default, launch configurations are set to log messages that are at a level of WARN and above. On Sat, Dec 12, 2009 at 5:36 PM, Pion onlee2...@gmail.com wrote: I have just done the following: 1. Download the GWT 2.0 2. Call 'GWT.log(debug, null);' 3. Run it on my Eclipse-Galileo 4. Open Firefox 3.5.5 5. http://localhost:/foo.html. My page shows up as expected 6. Turn on Firebug 1.4.5 7. Enable Firebug console 8. Refresh I don't see any debug message on the Firebug console. I was expecting to see debug message on Firefox console. Where did the GWT.log() output go on GWT 2.0? What did I do wrong? Thanks in advance for your help. -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@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 prepend?
You could just add another div before the entries and add to that div. -- Arthur Kalmenson On Mon, Dec 14, 2009 at 11:38 AM, Dennis Madsen den...@demaweb.dk wrote: I'm adding a label into a div on my HTML: RootPanel.get(entries).add(myLabel); But what if I would like to prepend the label instead of adding it? How can I do so? -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@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: Unable to mirror Eclipse 3.5 update site
Hi Robert, On Fri, Dec 11, 2009 at 2:47 PM, Robert Munteanu robert.munte...@gmail.comwrote: Hi, I'm not able to update using the Eclipse update manager ( No repository found containing: ... ) , and I've tried to mirror the update site, using Is there any more information for that error message in particular? Have you tried removing the site from the list of Available Software Sites and re-adding it? java -jar /opt/eclipse/plugins/ org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar -application org.eclipse.update.core.standaloneUpdate -command mirror -from http://dl.google.com/eclipse/plugin/3.5 -to . I suspect that you may be running into problems with this because of an error in our site.xml file. There is an extra period in the URL field for the GWT SDK Bundle feature. In practice, this usually doesn't matter, because Eclipse 3.5 uses P2, which relies on the content.jar and artifacts.jar files instead of the site.xml file. It looks like the mechanism that you're using to mirror the update site may actually rely on site.xml itself instead of the jar files. We're going to push a fix out for this soon. As an FYI, there may be a P2-compatible way to mirror the update site which would get you around this problem with the site.xml file. and it fails from 2 different locations with the same error ( below ). I know about http://dl.google.com/eclipse/plugin/3.5/zips/gpe-e35-latest.zip but I'd rather use a zipped update site than dropins. Any ideas why this is happening? Thanks, Robert - !SESSION 2009-12-11 21:25:19.576 --- eclipse.buildId=M20090917-0800 java.version=1.6.0_17 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US Framework arguments: -application org.eclipse.update.core.standaloneUpdate -command mirror -from http://dl.google.com/eclipse/plugin/3.5 -to . Command-line arguments: -application org.eclipse.update.core.standaloneUpdate -command mirror -from http://dl.google.com/eclipse/plugin/3.5 -to . !ENTRY org.eclipse.update.core 4 0 2009-12-11 21:25:21.784 !MESSAGE Unable to retrieve remote reference http://dl.google.com/ eclipse/plugin/3.5/features/ com.google.gwt.eclipse.sdkbundle.e35.feature. 2.0.0._2.0.0.v200912062003.jar. [Server returned HTTP response code: 404 Not Found for URL: http://dl.google.com/eclipse/plugin/3.5/features/com.google.gwt.eclipse.sdkbundle.e35.feature.2.0.0._2.0.0.v200912062003.jar .] !STACK 0 org.eclipse.update.internal.core.FatalIOException: Server returned HTTP response code: 404 Not Found for URL: http://dl.google.com/eclipse/plugin/3.5/features/com.google.gwt.eclipse.sdkbundle.e35.feature.2.0.0._2.0.0.v200912062003.jar . at org.eclipse.update.internal.core.UpdateManagerUtils.checkConnectionResult (UpdateManagerUtils.java:468) at org.eclipse.update.core.ContentReference.getInputStream (ContentReference.java:149) at org.eclipse.update.core.FeatureContentProvider.asLocalReference (FeatureContentProvider.java:264) at org.eclipse.update.internal.core.FeaturePackagedContentProvider.getFeatureEntryArchiveReferences (FeaturePackagedContentProvider.java:157) at org.eclipse.update.internal.core.FeaturePackagedContentProvider.getFeatureManifestReference (FeaturePackagedContentProvider.java:83) at org.eclipse.update.internal.core.FeaturePackagedFactory.createFeature (FeaturePackagedFactory.java:39) at org.eclipse.update.core.Site.createFeature(Site.java:536) at org.eclipse.update.core.FeatureReference.createFeature (FeatureReference.java:124) at org.eclipse.update.core.FeatureReference.getFeature (FeatureReference.java:112) at org.eclipse.update.core.FeatureReference.getFeature (FeatureReference.java:99) at org.eclipse.update.internal.mirror.MirrorSite.mirrorAndExposeFeatures (MirrorSite.java:145) at org.eclipse.update.internal.mirror.MirrorSite.mirrorAndExpose (MirrorSite.java:85) at org.eclipse.update.internal.mirror.MirrorCommand.run (MirrorCommand.java:91) at org.eclipse.update.standalone.ScriptedCommand.run (ScriptedCommand.java:66) at org.eclipse.update.standalone.StandaloneUpdateApplication.run (StandaloneUpdateApplication.java:49) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethodWithException (EclipseAppContainer.java:574) at org.eclipse.equinox.internal.app.EclipseAppHandle.run (EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication (EclipseAppLauncher.java:110)
Re: How to prepend?
I'm doing some kind of guestbook which automatic async receive new guestbook entries. As the newest entry has to be on the top, is why I would like to prepend instead of adding/append. Since I'm receiving a lot of entries, it is not a solution to manually create a div in the markup for each of them. Hope you understand! On 14 Dec., 17:55, Arthur Kalmenson arthur.k...@gmail.com wrote: You could just add another div before the entries and add to that div. -- Arthur Kalmenson On Mon, Dec 14, 2009 at 11:38 AM, Dennis Madsen den...@demaweb.dk wrote: I'm adding a label into a div on my HTML: RootPanel.get(entries).add(myLabel); But what if I would like to prepend the label instead of adding it? How can I do so? -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@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: Label with HTML
Have I completely misunderstood something? There must be a way of doing so. On 13 Dec., 23:04, Dennis Madsen den...@demaweb.dk wrote: I have this small code, where I add a Label (div) to another div in my HTML: Label labelEntry = new Label(strong+entry.getName()+:/strong +entry.getMessage()); labelEntry.addStyleName(entry); RootPanel.get(entries).add(labelEntry); The HTML-code is shown instead of the right HTML. How can I build a div with this strong-tag inside? Another thing. I add a style like addStyleName(entry). What if I would like to set an ID of the div instead, as ID=entry? Thank 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-tool...@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 prepend?
Oh, why not just create a custom widget to display entries by date? -- Arthur Kalmenson On Mon, Dec 14, 2009 at 12:04 PM, Dennis Madsen den...@demaweb.dk wrote: I'm doing some kind of guestbook which automatic async receive new guestbook entries. As the newest entry has to be on the top, is why I would like to prepend instead of adding/append. Since I'm receiving a lot of entries, it is not a solution to manually create a div in the markup for each of them. Hope you understand! On 14 Dec., 17:55, Arthur Kalmenson arthur.k...@gmail.com wrote: You could just add another div before the entries and add to that div. -- Arthur Kalmenson On Mon, Dec 14, 2009 at 11:38 AM, Dennis Madsen den...@demaweb.dk wrote: I'm adding a label into a div on my HTML: RootPanel.get(entries).add(myLabel); But what if I would like to prepend the label instead of adding it? How can I do so? -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@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 prepend?
I new to GWT - that's why! :) Could you like me to a tutorial/sample about these custom widgets? On 14 Dec., 18:06, Arthur Kalmenson arthur.k...@gmail.com wrote: Oh, why not just create a custom widget to display entries by date? -- Arthur Kalmenson On Mon, Dec 14, 2009 at 12:04 PM, Dennis Madsen den...@demaweb.dk wrote: I'm doing some kind of guestbook which automatic async receive new guestbook entries. As the newest entry has to be on the top, is why I would like to prepend instead of adding/append. Since I'm receiving a lot of entries, it is not a solution to manually create a div in the markup for each of them. Hope you understand! On 14 Dec., 17:55, Arthur Kalmenson arthur.k...@gmail.com wrote: You could just add another div before the entries and add to that div. -- Arthur Kalmenson On Mon, Dec 14, 2009 at 11:38 AM, Dennis Madsen den...@demaweb.dk wrote: I'm adding a label into a div on my HTML: RootPanel.get(entries).add(myLabel); But what if I would like to prepend the label instead of adding it? How can I do so? -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@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: Using our own server with GWT 2.0
Thanks a lot ! Didn't know the arguments I needed, except for -noserver, but I knew it was the way ! I'll try this tonight Regards Christian On Mon, Dec 14, 2009 at 1:31 AM, Jan Ehrhardt jan.ehrha...@googlemail.comwrote: If you're using the Google Plugin, create a Web Application launch configuration and add the following to parameters to the 'program arguments': -noserver -startupUrl http://localhost:8080/test/gohttp://www.google.com/url?sa=Dq=http://localhost:8080/test/gousg=AFQjCNFKh5JNAcKKjkxdJUuK0zFTwvpxdg Regards Jan Ehrhardt On Mon, Dec 14, 2009 at 5:55 AM, Christian Goudreau goudreau.christ...@gmail.com wrote: Hello, I'm using PHP server side. I was used to GWT 1.7 and it was easy to use another server than the built in server. Now how do I set up Eclipse to use my PHP server instead of the default jetty ? Thanks ! Christian -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@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 prepend?
That's not necessary. Suppose you want to insert an newWidget before the element widget1. All you have to do is: widget1.getParent().getElement().insertBefore(newWidget, widget1.getElement()); On 12/14/2009 06:14 PM, Dennis Madsen wrote: I new to GWT - that's why! :) Could you like me to a tutorial/sample about these custom widgets? On 14 Dec., 18:06, Arthur Kalmensonarthur.k...@gmail.com wrote: Oh, why not just create a custom widget to display entries by date? -- Arthur Kalmenson On Mon, Dec 14, 2009 at 12:04 PM, Dennis Madsenden...@demaweb.dk wrote: I'm doing some kind of guestbook which automatic async receive new guestbook entries. As the newest entry has to be on the top, is why I would like to prepend instead of adding/append. Since I'm receiving a lot of entries, it is not a solution to manually create a div in the markup for each of them. Hope you understand! On 14 Dec., 17:55, Arthur Kalmensonarthur.k...@gmail.com wrote: You could just add another div before the entries and add to that div. -- Arthur Kalmenson On Mon, Dec 14, 2009 at 11:38 AM, Dennis Madsenden...@demaweb.dk wrote: I'm adding a label into a div on my HTML: RootPanel.get(entries).add(myLabel); But what if I would like to prepend the label instead of adding it? How can I do so? -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@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.
Limiting serializable types in RPC
Is there a way (it would be nice if there were one) to exclude types from RPC? Here's the concrete use case: In our project, the RemoteService interfaces are defined in a separate project as the web layer. And all methods / parameters use the Java best practices: always reference collections by it's interface. However, having a method to return CollectionString, for example, generates code to handle Vector, ArrayList, LinkedList, HashSet, LinkedHashSet... As interfaces are in a separated project, and it would be messy and make maintenance harder to change all interfaces to a given implementation... If I know I ALWAYS return ArrayLists or HashSets, is there a way to blacklist other types so code to handle all other types wouldn't get in our generated javascript? -- 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-tool...@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: Label with HTML
Have you tried the HTML widget? Label is for text (setInnerText) and HTML is for HTML (setInnerHTML) -jason On Dec 14, 2009, at 10:05 AM, Dennis Madsen wrote: Have I completely misunderstood something? There must be a way of doing so. On 13 Dec., 23:04, Dennis Madsen den...@demaweb.dk wrote: I have this small code, where I add a Label (div) to another div in my HTML: Label labelEntry = new Label(strong+entry.getName()+:/strong +entry.getMessage()); labelEntry.addStyleName(entry); RootPanel.get(entries).add(labelEntry); The HTML-code is shown instead of the right HTML. How can I build a div with this strong-tag inside? Another thing. I add a style like addStyleName(entry). What if I would like to set an ID of the div instead, as ID=entry? Thank 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@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: Installing GWT Eclipse plugin, version 1.1.0
On Dec 12, 1:08 am, Geoffrey Wiseman geoffrey.wise...@gmail.com wrote: On Dec 11, 2:14 pm, Rajeev Dayal rda...@google.com wrote: We did not opt for this approach for simplicity's sake. Since we were planning on maintaining backwards compatibility with previous SDK versions, there was no good reason to provide older versions of the plugin for installation. That makes sense for the plugin; could you not have the update site list the current plugin and current-and-previous SDKs, allowing people the option of installing GPE 1.2 with SDK 1.7.1 after a few checkbox clicks? - Geoffrey Is this worth filing as a desired enhancement somewhere? -- 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-tool...@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: Limiting serializable types in RPC
Unfortunately, java best practice differs from GWT best practice in this area. Standard advice for GWT is to make your RPC APIs as type-specific as possible. Luis Fernando Planella Gonzalez wrote: Is there a way (it would be nice if there were one) to exclude types from RPC? Here's the concrete use case: In our project, the RemoteService interfaces are defined in a separate project as the web layer. And all methods / parameters use the Java best practices: always reference collections by it's interface. However, having a method to return CollectionString, for example, generates code to handle Vector, ArrayList, LinkedList, HashSet, LinkedHashSet... As interfaces are in a separated project, and it would be messy and make maintenance harder to change all interfaces to a given implementation... If I know I ALWAYS return ArrayLists or HashSets, is there a way to blacklist other types so code to handle all other types wouldn't get in our generated javascript? -- 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-tool...@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: Installing GWT Eclipse plugin, version 1.1.0
Yes, I'd say it's worth filing as an enhancement. That's a legitimate point. On Mon, Dec 14, 2009 at 1:04 PM, Geoffrey Wiseman geoffrey.wise...@gmail.com wrote: On Dec 12, 1:08 am, Geoffrey Wiseman geoffrey.wise...@gmail.com wrote: On Dec 11, 2:14 pm, Rajeev Dayal rda...@google.com wrote: We did not opt for this approach for simplicity's sake. Since we were planning on maintaining backwards compatibility with previous SDK versions, there was no good reason to provide older versions of the plugin for installation. That makes sense for the plugin; could you not have the update site list the current plugin and current-and-previous SDKs, allowing people the option of installing GPE 1.2 with SDK 1.7.1 after a few checkbox clicks? - Geoffrey Is this worth filing as a desired enhancement somewhere? -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@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: Installing GWT Eclipse plugin, version 1.1.0
On Fri, Dec 11, 2009 at 8:27 PM, Javier jasand...@gmail.com wrote: Rajeev, thanks for your reply. You can use the Google Plugin for Eclipse 1.2 with GWT 1.7 - they are compatible. If this is the case, I don't care at all about which GPE version is exposed via the update site, so long as it works with GWT 1.7.1. So GPE 1.2 will work for me. So, you can install the latest plugin from the update side BUT exclude the installation of the SDK. This is my problem. I want to be able to install the GWT 1.7.1 SDK via the update site on a brand new Eclipse installation, which doesn't have any GWT SDKs. Currently there is no mechanism for selecting the GWT SDK to be installed: the update site currently forces you to pick GWT 2.0.0. Downloading the whole GWT distro just to tell Eclipse to use that particular SDK sounds pretty silly, specially when I was able to do it seamlessly via the update site two months ago. If I understand correctly, there is no real reason for disabling the GWT 1.7.x SDK in the update site (as it could be used with the latest GPE, so this combination wouldn't produce an invalid environment). Could please confirm if this is correct? You're right. In the message above, Geoffrey suggested that an enhancement be filed for this. Having this functionality is definitely a reasonable request. Thanks again. -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@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: Mac, GWT Hosted Mode does not work after switching to gwt 2.0 and back to 1.7.1
HI! Unfortunately deleting the Launch Config did not help... However, you have given me a good idea! I have changed the name of the html page, and the module. And it started to work eventually. (I have tried to delete the files under the module/*.* - like *.nocache.js, etc, and class files, but it did not help, unless changed the module name ) It seamed, with different name, and path to the module.nocache.js file it worked. With the same name it did not. Seamingly, there is some hidden browser cache, that was no way to delete.. so when changing the name the app did run. When changing to gwt-2.0, it still gives the Invalid memory access of location 0x8 eip=0x4a8aeb- that I have no clue why - maybe the gxt library has something to do with it (but then, why does it work with the gxt sample app..???), but (!) when changing back to gwt 1.7.1 and rebuilding, and deleting the launch config, it does work! :) Thank for your help, and for all of yours attention! Now, I remain with only one issue: why does it give Invalid memory access of location 0x8 eip=0x4a8aeb. Any clue, what it could be? Z. On Dec 14, 5:29 pm, Jason Parekh jasonpar...@gmail.com wrote: Zoltan, have you tried deleting your Launch Configurations? You can find these via the Run Debug Configurations. After you delete the old one(s) for your project, you can go back to the main Eclipse window, right-click on your project, and choose Debug As Web Application. jason 2009/12/14 Zoltán Törteli tort...@gmail.com: Thank you Sorinel! Unfortunately deleting the content of the browser did not solve it (I have deleted everything except cookies, and passwords). I have deleted the Safari plugin earlier, adn when trying to run this project, it tries to download the plugin and issues the F4MUpdateCheck. While all the project settings seam to be the same with an other - as I Described above, how did I create a running version of the project. and of course the project name and access path had to be changed As I tried, to delete the project, create a new one with the same name and copy the sources back. it did not work. Is it possible that eclipse stores the project lib and other date other location than .project adn .classpath ? Otherwise my app issues an Invalid memory access of location 0x8 eip=0x4a8aeb - if using gwt 2.0 (also I am using gxt 2.1.0 with it) As a note here, the gxt sample app runs fine with gwt 2.0. So I have no clue what is the problem.. Do you have any further idea? Z. On Dec 13, 10:06 pm, Sorinel C scristescu...@hotmail.com wrote: It's simple ... hosted mode uses the default browser of your OS (windows ~ IE, linux ~ FF ). So, first of all clean up the browser cache ... then launch a full rebuild of the project after you change the libraries ... and the hosted mode will come back, as you knew it :-) BTW, better check out why your application doesn't work well with 2.0, 'cause it's better to use newest features ... new resources, faster loading of the application in development mode than hosted mode, code splitting, etc Cheers, Sorinel CRISTESCU -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@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.
Animation on images
Hi, I have two questions about animations : - How do I perform an infinite animation ? If I do in my Animation class : @Override protected void onComplete() { super.onComplete(); run(1); } ... that does'nt work and my browser crash. - How do I perform a soft animation, and not a sacade animation ? I do : @Override protected void onUpdate(double progress) { int defwidth; defwidth = widget.getOffsetWidth(); widget.setWidgetPosition( image, (int) (defwidth - (defwidth * progress)), 10); } 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-tool...@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 2.0 books
Great - how much of an emphasis are you going to place on UiBinder? On Dec 2, 5:30 pm, FKereki fker...@gmail.com wrote: Personally, I'm authoring a book on GWT 2.0 for Addison Wesley; I expect the Rough Cut to be available on Safari Books Online early next year. -- 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-tool...@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.
uibinder with MVP and interfaces
Hello everyone, We'd like to start using uibinder, but we've run into an issue using it with interfaces and MVP. In the documentation about uibinder: http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html#Apply_different_xmlthe example shows using HasText with a Label or some other widget that implements hasText. However, it doesn't seem possible to do that for our own interfaces. For example, I have a WorldPresenter class: public class WorldPresenter { public interface Display { HasClickHandlers getButton(); } ... } and an implementation of the Display, called World: public class World extends Composite implements WorldPresenter.Display { private static WorldUiBinder uiBinder = GWT.create(WorldUiBinder.class); interface WorldUiBinder extends UiBinderWidget, World { } @UiField Button button; public World() { initWidget(uiBinder.createAndBindUi(this)); } @UiHandler(button) void onClick(ClickEvent e) { Window.alert(Hello!); } public HasClickHandlers getButton() { return button; } } And I try to have this implementation injected into another view called HelloWorldView: public class HelloWorldView extends Composite implements HelloWorldPresenter.Display { private static HelloWorldUiBinder uiBinder = GWT.create(HelloWorldUiBinder.class); interface HelloWorldUiBinder extends UiBinderWidget, HelloWorldView { } @UiField(provided = true) WorldPresenter.Display world; @UiField HasText button; @Inject public HelloWorldView(WorldPresenter.Display world) { this.world = world; initWidget(uiBinder.createAndBindUi(this)); } public WorldPresenter.Display getWorld() { return world; } public HasText getButton() { return button; } } Hosted mode tells me: Line 17: Type mismatch: cannot convert from WorldPresenter.Display to World Even though it is able to convert HasText to Button. Is there any reason for this? Am I doing something wrong? I put all the source up on github if it helps: http://github.com/arthurkalm/randomcode/tree/uibinder-with-interfaces Thank you for any help you can provide. All the best, -- Arthur Kalmenson -- 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-tool...@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: Animation on images
You want to use a Timer, to set the animation to update every certain amount of miliseconds. eg. Timer blah = new Timer() { @Override public void run() { // update frame code goes here. } blah.scheduleRepeating(500); That would update a new frame every half a second. On Dec 14, 7:56 pm, Ista Pouss ista...@gmail.com wrote: Hi, I have two questions about animations : - How do I perform an infinite animation ? If I do in my Animation class : @Override protected void onComplete() { super.onComplete(); run(1); } ... that does'nt work and my browser crash. - How do I perform a soft animation, and not a sacade animation ? I do : @Override protected void onUpdate(double progress) { int defwidth; defwidth = widget.getOffsetWidth(); widget.setWidgetPosition( image, (int) (defwidth - (defwidth * progress)), 10); } 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-tool...@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: [ANN] SmartGWT 2.0 Released
Excellent. I'm going to give this a try right away. For server integration, would a HashMap based interface using GWT-RPC work well with the DataSource concept to allow for generic integration of SmartGWT with a Java backend? -- 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-tool...@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 Developer Plugin (GWT 2.0 RC1) crashes FF 3.5.5
I have no idea, unfortunately, since I'm not on OSX, and I'm using Java 6. Of course, you should not be using any RC versions anymore since 2.0 is officially out and they did fix the FF plugin fairly recently so it no longer crashes it. -- 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-tool...@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: Announcing GWT 2.0 and much, much more...
Mark, With 2.0 behind us we'll be focusing some time and effort to address outstanding bugs as well as doing a little house cleaning within the issue tracker itself. In regards to the process used when determining when and what to fix, it honestly depends on the release. With 2.0, our focus was on speed and size. Better tools to minimize development time, compiler enhancements to reduce code size, and SpeedTracer to help when things aren't running as fast as you would like. As we sit down and plan for the next release, we will definitely be reviewing the open issues (which is why we need to do some house cleaning first). From a community perspective, starring the issues and providing as much info as possible helps out immensely (noting that in this case the issue has more than fair amount of background information). In the meantime, I've updated the issue with a workaround that worked for me. .gwt-DecoratorPanel .middleCenter { height: 100%; width: 100%; } Respond on the issue or here, if this doesn't work within your apps. Thanks, Chris On Thu, Dec 10, 2009 at 2:33 PM, mwaschkowski mwaschkow...@gmail.comwrote: Whats the status on some of the older issues that are not yet closed, like: http://code.google.com/p/google-web-toolkit/issues/detail?id=2802can=5 Are they going to be addressed at some point? This one was a high priority issue for 1.6, but its still open - can anyone provide some insight into how the bugs/new versions works because I'm unsure of how the process (of fixing bugs in new versions) is *supposed* to work. Thanks, Mark On Dec 10, 1:03 pm, mariyan nenchev nenchev.mari...@gmail.com wrote: for test and development messages i am using second div id=debugger and when i want to log some test message i add html string to it's rootpanel. For real logging see gwt-log :http://code.google.com/p/gwt-log/ -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@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: OOPHM is slow
Yes, the Chrome dev-mode plugin is slow for now, but for sure they will fix it with the next update. Here's my discovery related the subject: http://ui-programming.blogspot.com/ Cheers, Sorinel CRISTESCU -- 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-tool...@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.
Compiler Performance
Hi! I migrated my project from GWT 1.7.1 + GXT 2.0.1 on GWT 2.0.0 + GXT 2.0.4 and compilation time increased three times. What can be the reason of such compiler behavior? Thank you in advance. Best regards, Artyom -- 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-tool...@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: Unable to mirror Eclipse 3.5 update site
On Dec 14, 6:57 pm, Rajeev Dayal rda...@google.com wrote: Hi Robert, On Fri, Dec 11, 2009 at 2:47 PM, Robert Munteanu robert.munte...@gmail.comwrote: Hi, I'm not able to update using the Eclipse update manager ( No repository found containing: ... ) , and I've tried to mirror the update site, using Is there any more information for that error message in particular? Have you tried removing the site from the list of Available Software Sites and re-adding it? This fixed the UI-based installation. Thanks! java -jar /opt/eclipse/plugins/ org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar -application org.eclipse.update.core.standaloneUpdate -command mirror -from http://dl.google.com/eclipse/plugin/3.5-to . I suspect that you may be running into problems with this because of an error in our site.xml file. There is an extra period in the URL field for the GWT SDK Bundle feature. In practice, this usually doesn't matter, because Eclipse 3.5 uses P2, which relies on the content.jar and artifacts.jar files instead of the site.xml file. It looks like the mechanism that you're using to mirror the update site may actually rely on site.xml itself instead of the jar files. We're going to push a fix out for this soon. As an FYI, there may be a P2-compatible way to mirror the update site which would get you around this problem with the site.xml file. Right, I assumed the two failures were related. I was able to mirror the site using the p2 director ( http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/p2_director.html ). Thanks for your help, Rajeev. Robert and it fails from 2 different locations with the same error ( below ). I know about http://dl.google.com/eclipse/plugin/3.5/zips/gpe-e35-latest.zip but I'd rather use a zipped update site than dropins. Any ideas why this is happening? Thanks, Robert - !SESSION 2009-12-11 21:25:19.576 --- eclipse.buildId=M20090917-0800 java.version=1.6.0_17 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US Framework arguments: -application org.eclipse.update.core.standaloneUpdate -command mirror -from http://dl.google.com/eclipse/plugin/3.5-to . Command-line arguments: -application org.eclipse.update.core.standaloneUpdate -command mirror -from http://dl.google.com/eclipse/plugin/3.5-to . !ENTRY org.eclipse.update.core 4 0 2009-12-11 21:25:21.784 !MESSAGE Unable to retrieve remote reference http://dl.google.com/ eclipse/plugin/3.5/features/ com.google.gwt.eclipse.sdkbundle.e35.feature. 2.0.0._2.0.0.v200912062003.jar. [Server returned HTTP response code: 404 Not Found for URL: http://dl.google.com/eclipse/plugin/3.5/features/com.google.gwt.eclip... .] !STACK 0 org.eclipse.update.internal.core.FatalIOException: Server returned HTTP response code: 404 Not Found for URL: http://dl.google.com/eclipse/plugin/3.5/features/com.google.gwt.eclip... . at org.eclipse.update.internal.core.UpdateManagerUtils.checkConnectionResult (UpdateManagerUtils.java:468) at org.eclipse.update.core.ContentReference.getInputStream (ContentReference.java:149) at org.eclipse.update.core.FeatureContentProvider.asLocalReference (FeatureContentProvider.java:264) at org.eclipse.update.internal.core.FeaturePackagedContentProvider.getFeatureEntryArchiveReferences (FeaturePackagedContentProvider.java:157) at org.eclipse.update.internal.core.FeaturePackagedContentProvider.getFeatureManifestReference (FeaturePackagedContentProvider.java:83) at org.eclipse.update.internal.core.FeaturePackagedFactory.createFeature (FeaturePackagedFactory.java:39) at org.eclipse.update.core.Site.createFeature(Site.java:536) at org.eclipse.update.core.FeatureReference.createFeature (FeatureReference.java:124) at org.eclipse.update.core.FeatureReference.getFeature (FeatureReference.java:112) at org.eclipse.update.core.FeatureReference.getFeature (FeatureReference.java:99) at org.eclipse.update.internal.mirror.MirrorSite.mirrorAndExposeFeatures (MirrorSite.java:145) at org.eclipse.update.internal.mirror.MirrorSite.mirrorAndExpose (MirrorSite.java:85) at org.eclipse.update.internal.mirror.MirrorCommand.run (MirrorCommand.java:91) at org.eclipse.update.standalone.ScriptedCommand.run (ScriptedCommand.java:66) at org.eclipse.update.standalone.StandaloneUpdateApplication.run (StandaloneUpdateApplication.java:49) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597)