Issue with Generated Sources (by RestyGWT) not Compiling, When including a class from an external GWT module.
Hi! After fighting with this, issue in all possible dimensions, hope to find some one who've manage to solved something similar ... I'm using RestyGWT, to implemente a GWT app RPC. I've defined a service, class MyService extends RestService { @GET public void getResults(MethodCallbackorg.my.data.Result callback); } The class Result, is a DTO, which I've built into a separate GWT module, added the gwt.xml, stuff, configured the maven-source-plugin, to create the module source jar ... added the compileSourcesArtifacts compileSourcesArtifactorg.my.data:my-data/compileSourcesArtifact /compileSourcesArtifacts My class Result: public class Result { String r1; String r2; public Result() {} } Every this is fine, the restygwt generates the org.my.data.Result_Generated_JsonEncoderDecoder_.java, into the .generated dir, after that fail with the error: Added 1 units to cache since last cleanup. Tracing compile failure path for type 'org.mydata.data.Result_Generated_JsonEncoderDecoder_' Errors in '/target/.generated/org/mydata/data/Result_Generated_JsonEncoderDecoder_.java' Line 28: The constructor Result() is undefined Wrote 1 units to persistent cache. See snapshot: /tmp/org.mydata.data.Result_Generated_JsonEncoderDecoder_953900780088454604.java Removing invalidated units The issue, is the GWT Compiler, when compiling the generated stub, cannot find the Result class, and fails ... Thanks in advance! Cheers, mc -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
IE9 GWT Error loading images
Hi all, I'm using GWT 2.5.1 and I've a browser compatibility issue, when I open my application in Chrome everithing works fine but when I open my application in IE8 this error occurs: Unable to get property 'currentStryle' of undifined or null reference in http://localhost:8080/XXX/sc/modules/ISC_Core-js; All my images that are being loaded by ImageResource (UIBInder pinting to my ImageResource implementation) appears badly. Is this a known problem? Many thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: CellTable disapears when a row click occurs and a RichTextArea widget is present
I cant replicate this problem that was occuring yesterday. thank your for your help but for now this problem seems to be resolved. Quinta-feira, 6 de Junho de 2013 19:58:56 UTC+1, Luis Costa escreveu: Hi all, I'm using GWT 2.5.1 and GWTP. Something very strange is happening, I've a RichTextArea widget and a cellTable. If I try to select a row all cellTable disappears! But if I remove RichTextArea widget or replace the cellTable for a DataGrid and select a row (clicking in the cellTable/ DataGrid row) it works fine; Is this a known problem? Many thanks, Luis Costa -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
CellTable disapears when a row click occurs and a RichTextArea widget is present
Hi all, I'm using GWT 2.5.1 and GWTP. Something very strange is happening, I've a RichTextArea widget and a cellTable. If I try to select a row all cellTable disappears! But if I remove RichTextArea widget or replace the cellTable for a DataGrid and select a row (clicking in the cellTable/ DataGrid row) it works fine; Is this a known problem? Many thanks, Luis Costa -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: CellTable disapears when a row click occurs and a RichTextArea widget is present
Here it is a simple case (see attachment) Quinta-feira, 6 de Junho de 2013 19:58:56 UTC+1, Luis Costa escreveu: Hi all, I'm using GWT 2.5.1 and GWTP. Something very strange is happening, I've a RichTextArea widget and a cellTable. If I try to select a row all cellTable disappears! But if I remove RichTextArea widget or replace the cellTable for a DataGrid and select a row (clicking in the cellTable/ DataGrid row) it works fine; Is this a known problem? Many thanks, Luis Costa -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out. Error.7z Description: application/7z-compressed
Browser compatibility issue
Hi all, I'm using gwt-2.5.1 and the following widgets have distinct behaviours: 1. CellTable cellview:CellTable ui:field=uiDataGrid width=100% pageSize=10 tableLayoutFixed=true/ in Chrome, IE and Mozilla, it appear in fact filling all browser width but in Safary it doesent. 2. menuBar (or SimplePanel) a menu bar is added to the following SimplePanel g:SimplePanel ui:field=uiMenuContainer width=100%/ in Safary and Chrome it appear filling all browser width but in IE and Mozilla it doesent. Is this a know problem? Many thanks, Luis Costa -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
GWT + PHP
Good morning! I have a php script like this: *? php* * for ($ i = 1, $ i = 10, $ i + +) {* * echo Line. $ i. br;* * }* *?* And a variable in my GWT code: *String = **responsePHP = ;* Is there a simple way (or not) to get the response from PHP script and put in variable GWT? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: GWT + PHP
Sorry Juan, But I want to get the response from PHP script. This PHP script is only a sample. 2013/5/9 Juan Pablo Gardella gardellajuanpa...@gmail.com Try with http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/i18n/client/Dictionary.html . 2013/5/9 Larissa Costa larissa.n.co...@gmail.com Good morning! I have a php script like this: *? php* * for ($ i = 1, $ i = 10, $ i + +) {* * echo Line. $ i. br;* * }* *?* And a variable in my GWT code: *String = **responsePHP = ;* Is there a simple way (or not) to get the response from PHP script and put in variable GWT? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- Larissa Costa Graduanda em Ciência da Computação Universidade Federal de Campina Grande -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Facebook login button
Hi, I've never worked with the facebook and I need help. I have a website (GWT) and I wanted to connect it with facebook to get some information about the user. For example, put a login button on the home page of my site. Does anyone know how I can do this? Anyone have one example? Thank you -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
GWT Image editing
Hi all, I’m using GWT 2.5.1, and I’m trying to create a component that allows the application user to edit an image, the workflow is: 1. User can perform a mouse click on a certain part of the image “A” (that was previously uploaded); 2. This event will put in the image clicked coordinates (X and Y) another image “B”, the final image “C” (“A” + “B”) can then be saved. Can anyone give me some feedback about what will be the best approach to do this? Many thanks, Luis. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Enabled disabled GWT ValueListBox
Hi all, I'm using GWT 2.5 and I'm wondering if there's an easy way to enabled / disabled ValueListBox, after a careful look: DateBox, TextBox implements com.google.gwt.user.client.ui.HasEnabled but in other hand ValueListBox dosent I could extend com.google.gwt.user.client.ui.ValueListBox and implement com.google.gwt.user.client.ui.HasEnabled doing: @Override public void setReadOnly(boolean readOnly) { DOM.setElementPropertyBoolean(getElement(), disabled, readOnly); } @Override public boolean isReadOnly() { return DOM.getElementPropertyBoolean(getElement(), disabled); } But is there realy necessary? Is there a easy and logic way of doing this (disabled enabled)? Many thanks, Luis. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/TeIa8Lr4VnEJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Enabled disabled GWT ValueListBox
Sorry, obviousy what I mean in code sample (after implementing in my own ValueListBox HasEnabled interface) was: @Override public boolean isEnabled() { return DOM.getElementPropertyBoolean(getElement(), disabled); } @Override public void setEnabled(boolean enabled) { DOM.setElementPropertyBoolean(getElement(), disabled, enabled); } Sábado, 19 de Janeiro de 2013 17:51:43 UTC, Luis Costa escreveu: Hi all, I'm using GWT 2.5 and I'm wondering if there's an easy way to enabled / disabled ValueListBox, after a careful look: DateBox, TextBox implements com.google.gwt.user.client.ui.HasEnabled but in other hand ValueListBox dosent I could extend com.google.gwt.user.client.ui.ValueListBox and implement com.google.gwt.user.client.ui.HasEnabled doing: @Override public void setReadOnly(boolean readOnly) { DOM.setElementPropertyBoolean(getElement(), disabled, readOnly); } @Override public boolean isReadOnly() { return DOM.getElementPropertyBoolean(getElement(), disabled); } But is there realy necessary? Is there a easy and logic way of doing this (disabled enabled)? Many thanks, Luis. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/0p7jO04dJGQJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT Reflection
Hi all, What’s the best way to invoke a method by reflection using GWT, converting something like this: GreetingServiceAsync service = GWT.create(GreetingService.class); AsyncCallback callBack = new AsyncCallback Void() { @Override public void onFailure(Throwable caught) { } @Override public void onSuccess(Void result) { } }; service.doSomething(callBack); in: GreetingServiceAsync greetingService = GWT.create(GreetingService.class); String methodName = “doSomething”; Object service; AsyncCallback callBack = new AsyncCallback Void() { @Override public void onFailure(Throwable caught) { } @Override public void onSuccess(Void result) { } }; /*somehow invoke by reflection*/ Class? c = Class.forName(GreetingServiceAsync.class.getName()); Method method = c.getMethod(methodName, AsyncCallback.class); method.invoke (service, callBack); Many thanks, Luis. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/MYz8uHTCuU0J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How not expose method to client when using RCP
Hi Jens, Thanks for your answer, the point here is who owns the contract (interface) server or client? In my perspective is the server, and so this interface could have more than just methods to be expose to client side, in others technologies it can be defined which methods are expose to client, I think it would be interesting to have a way to define interface methods not to be exposed to client side (like a transient annotation). Hope to hear some feedback. Luis. Segunda-feira, 10 de Dezembro de 2012 12:10:31 UTC, Jens escreveu: As far as I know you cant send the class Class through GWT-RPC as its not serializable. So you have to remove your getDtoType() method from your GWT-RPC interface (and any other method that takes Class as argument) As you only want to use the method on server side I am not sure why you add it to the interface and thus make it part of your public API? -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/HV6NwaV_XMUJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
How not expose method to client when using RCP
Hi all, I’m using GWT 2.5, and RCP to exchange information between client and service. I’m trying to define the interface that extends RemoteService and another one CRUDServiceT that has among others (CRUD methods) a method: public ClassT getDtoType(); But this method is only intended to be user by the implementation, on the server side. Is there a way not to expose this method to client side? Otherwise I’m getting an error, when I compile the project, saying ClassT does not implements Serializeble nor IsSerializeble. Could anyone give me some feedback? Thanks, Luis. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/_gYim4dXCB8J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How not expose method to client when using RCP
Correction: RCP I mean RPC :) Segunda-feira, 10 de Dezembro de 2012 9:53:44 UTC, Luis Costa escreveu: Hi all, I’m using GWT 2.5, and RCP to exchange information between client and service. I’m trying to define the interface that extends RemoteService and another one CRUDServiceT that has among others (CRUD methods) a method: public ClassT getDtoType(); But this method is only intended to be user by the implementation, on the server side. Is there a way not to expose this method to client side? Otherwise I’m getting an error, when I compile the project, saying ClassT does not implements Serializeble nor IsSerializeble. Could anyone give me some feedback? Thanks, Luis. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/0t3cHq9Ie08J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Is there a way to use tablayoutpanel without headers?
I'm trying to find a gwt widget like tablayoutpanel but without headers, where I can programmatically set the selected tab (like tablayoutpanel does). Does anyone knows if thers a way to use tablayoutpanel with no header? Or is there any other widget more indicate to this cases? Tanks, Luis. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/wFmVQ1t0TzUJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Fetching images for users: where to put them?
In web.xml: servlet servlet-nameimageReceiver/servlet-name servlet-classxxx.ImageReceiver/servlet-class init-param param-nameimagePath/param-name param-value/the/place/param-value!-- or C:\the\place -- /init-param /servlet And in the servlet: public void init(ServletConfig servletConfig) throws ServletException{ imagePath = servletConfig.getInitParameter(imagePath); if (!imagePath.endsWith(File.separator)) imagePath += File.separator try { File imageFolder = new File(imagePath); if (!File.exists()) Util.mkdirRecursive(imagePath); } catch ... whatever you want to do if something fails } El martes 3 de abril de 2012 03:21:06 UTC+2, Sam W escribió: Hello, I haven't been able to figure this out after spending 3 hours on Google. I can fetch an image, but I don't know where to put them. If I just use new File(image.jpg), it will end up in my tomcat bin/ folder. Some sugggests to use getServletContext().getRealPath(/); but it would block forever at getServletContext, I don't know why. What should I do so it will be part of the war, thus clients can access it via http://path.to/appname/images/someimage.jpg;? What is the best practice on this? Thank you so much. Sam -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Bv7olVKpJqYJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Error using abstract class uiBinder
Hello, I'm using GWT SDK 2.4.0 and I'm trying to create an abstract class ( AbstractContentView ) that will be extended by Content1. AbstractContentView will have common code and uiFilds (like buttons etc.) Content1 will had himself to AbstractContentView using setContentWidget(this); But I'm getting the following error: [ERROR] Method 'previous' can not be bound. You probably missed ui:field='uiPrevious' in the template. Can anyone please tell me what am I doing wrong? Thanks, Luis. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/2M5hDn5TvJkJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. package com.client; import com.google.gwt.core.client.GWT; import com.google.gwt.event.dom.client.ClickEvent; import com.google.gwt.uibinder.client.UiBinder; import com.google.gwt.uibinder.client.UiField; import com.google.gwt.uibinder.client.UiHandler; import com.google.gwt.user.client.ui.Button; import com.google.gwt.user.client.ui.Composite; import com.google.gwt.user.client.ui.IsWidget; import com.google.gwt.user.client.ui.SimplePanel; import com.google.gwt.user.client.ui.Widget; public abstract class AbstractContentView extends Composite { @UiField SimplePanel uiMain; @UiField Button uiPrevious; @UiField Button uiOk; @UiField Button uiNext; private static BaseContentViewUiBinder uiBinder = GWT .create(BaseContentViewUiBinder.class); interface BaseContentViewUiBinder extends UiBinderWidget, AbstractContentView { } public AbstractContentView() { initWidget(uiBinder.createAndBindUi(this)); } public void setContentWidget(Widget widget){ uiMain.add(widget); } public void setContentWidget(IsWidget widget){ uiMain.add(widget); } @UiHandler(uiPrevious) void previous(ClickEvent e) { onPrevious(); } @UiHandler(uiOk) void ok(ClickEvent e) { onOk(); } @UiHandler(uiNext) void next(ClickEvent e) { onNext(); } public abstract void onPrevious(); public abstract void onOk(); public abstract void onNext(); } AbstractContentView.ui.xml Description: XML document package com.client; import com.google.gwt.core.client.GWT; import com.google.gwt.uibinder.client.UiBinder; import com.google.gwt.uibinder.client.UiField; import com.google.gwt.user.client.ui.VerticalPanel; import com.google.gwt.user.client.ui.Widget; public class Content1 extends AbstractContentView { // @UiField VerticalPanel uiPanel; private static Content1UiBinder uiBinder = GWT .create(Content1UiBinder.class); interface Content1UiBinder extends UiBinderWidget, Content1 { } public Content1() { super(); initWidget(uiBinder.createAndBindUi(this)); setContentWidget(this); // setContentWidget(uiPanel); } @Override public void onPrevious() { // TODO Auto-generated method stub } @Override public void onOk() { // TODO Auto-generated method stub } @Override public void onNext() { // TODO Auto-generated method stub } } Content1.ui.xml Description: XML document
Re: UiBinder and abstract class
Hello all, I'm having the same doubt, Damians, did you put your code working? I'm having the same error. Thanks, Luis. Segunda-feira, 1 de Fevereiro de 2010 11h22min10s UTC, damians escreveu: Hello, I've got a problem and i googled lots of pages to see if anyone got the same problem but i didn't find anything. I've got class AbstractDialog that extends DialogBox with some standart buttons like OK CANCEL that are bound by UiBinder. I've got another class that extends AbstractDialog with another declarative xml file, that contains only the main content of that DialogBox. When am trying to lunch application i got this error: Rebinding package.classUiBinder Invoking com.google.gwt.dev.javac.StandardGeneratorContext@a51c3c Method 'ok' can not be bound. You probably missed ui:field='okButton' in the template. Method ok and UiHandler for button okVutton is declared in AbstractDialog. From class that extends AbstractDialog the UiField is not visible. Am i doing something wrong or i just didnt saw any information that you can not extends an object tha got his own UiBinder and extended class got their own UiBinder as well. My code: AbstractDialogBox.java public abstract class AbstractDialogBox extends DialogBox { private static AbstractDialogBoxUiBinder uiBinder = GWT.create (AbstractDialogBoxUiBinder.class); interface AbstractDialogBoxUiBinder extends UiBinderWidget, AbstractDialogBox { } @UiField Button okButton; @UiField Button cancelButton; @UiField Label emptyLabel; @UiField VerticalPanel main; public AbstractDialogBox() { setWidget(uiBinder.createAndBindUi(this)); setStyleName(oe-DialogBox); okButton.setText(OK); cancelButton.setText(CANCEL); } public void setContent(Widget content) { main.add(content); } @UiHandler(okButton) void ok(ClickEvent e) { onOK(); } @UiHandler(cancelButton) void cancel(ClickEvent e) { onCancel(); } public void keyPress(KeyPressEvent event) { if (event.getCharCode() == 13) onOK(); else if (event.getCharCode() == 27) onCancel(); } public abstract void onOK(); public abstract void onCancel(); } AbstractDialog.ui.xml !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:HTMLPanel table width=320px cellspacing=0 cellpadding=3 tr td colspan=3g:VerticalPanel ui:field=main width=100%// td /tr tr tdg:Label ui:field=emptyLabel width=140px//td tdg:Button ui:field=okButton styleName=dialogButton//td tdg:Button ui:field=cancelButton styleName=dialogButton// td /tr /table /g:HTMLPanel /ui:UiBinder LoginOptionDialog.java that extends AbstractDialog public class LoginOptionDialog extends AbstractDialogBox { private static LoginOptionDialogUiBinder uiBinder = GWT.create (LoginOptionDialogUiBinder.class); interface LoginOptionDialogUiBinder extends UiBinderWidget, LoginOptionDialog{} @UiField Image icon; @UiField Label descIp; @UiField TextBox ip; @UiField HTMLPanel content; public LoginOptionDialog() { super(); setText(Login options); descIp.setText(Server IP:); ip.setText(Enter ip); setContent(content); } @UiHandler(ip) public void press(KeyPressEvent event) { keyPress(event); } public void onCancel() { // restore ip text from application context hide(); } public void onOK() { // set ip in application context hide(); } } LoginOptionDialog.ui.xml !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:HTMLPanel ui:field=content table width=100% cellspacing=0 cellpadding=3 tr tdg:Image ui:field=icon url=gfx/ServerIp.png width=23px height=23px//td td align=centerg:Label ui:field=descIp styleName=dialogText wordWrap=false width=126px//td tdg:TextBox ui:field=ip styleName=dialogText width=165px/ /td /tr /table /g:HTMLPanel
Re: How to share classes between two different modules with two different pages
And you have in moduleB.gwt.xml ? source path=shared / El jueves 22 de marzo de 2012 14:46:07 UTC+1, Deepak Singh escribió: It did not work. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/9QKJU7YLmEwJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to share classes between two different modules with two different pages
I would create a base module from which A and B inherit. Or you can try in moduleB.gwt.xml source path=../moduleA/client / El miércoles 21 de marzo de 2012 16:16:46 UTC+1, Deepak Singh escribió: Yes i have two seperate *.gwt.xml for both the modules. And i inherit ModuleB into moduleA as follows: ModuleA.gwt.xml inherits com.pdstechi.modulenameB.ModuleB And then i use com.pdstechi.modulenameB.shared.AbcDto into com.pdstechi.modulenameA.client package, it fails compilation with message 'Source code for com.pdstechi.modulenameB.shared.AbcDto is not available'. Thanks Deepak -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Pchfn1wJN08J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: MVP and RPC: What makes sense?
why should the View tell the Presenter get the file and the Presenter the tell the view show this file. Because : 1) Error handling, this complicates the logic. 2) Display independence. Useful if you go mobile or more usual, while you create a new version of the interface, you can have a stable version to ship updates. 3) Testability. It is easy to test blind logic. Good luck testing a view. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/cZUvmRZ6_rIJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Is it bad practice to use links like #viewObject104 instead of eventBus.fireEvent(viewObjectEvent(id)) ?
I personally prefer links, because it also allows the user to open the link in another window or tab. And the history works -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/07ITHl41q5QJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Exit in this group
I would like to unsubscribe from this group and not receive any more messages. Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Cancel my account
Please remove my account in the group. Thank's Victor -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
How to intercept GWT RPC
Hi, I would like to encode information of the current session, such as the session Id, current user for each GWT RPC call, how can I add this in the RPC request and response? Thanks, Costa -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
TreeGrid
Hello good afternoon! Need help from you guys regarding a question / problem ... I have an XML like this webServices name ABC / name id 1 / id to 0 / to tag WAS / tag / Webservices webServices name DEF / name id 2 / id to 1 / to tag Method / tag / Webservices webServices name GHI / name id 3 / id to 2 / to tag Object / tag / Webservices webServices name JLM / name id 4 / id to 3 / to tag Object / tag / Webservices webServices name NOP / name id 5 / id to 4 / to tag Parameter / tag / Webservices webServices name QRS / name id 6 / id to 4 / to tag Parameter / tag / Webservices Xml This is populating a data source to a treegrid. What I needed was the following: 1 - the tree is the look of checkbox. This item I've ever done as the showcase but wanted to see if there's only the leaves (leafs) of parameters have the look of checkbox. 2 - need to have the same level of nodes / leaves to be checked the other one is how deslecionado a radiobutton. This parameter in the case of the leaves that are there and can occur over an object there that only allow one selection. 3 - I used the feature selection cascade but only wanted to work as follows when selecting a level below the root of this that would be just above that were selected in casacata and not those who are below the hierarchy, not to disrupt the Item 2. Is that possible? I am two days ago and found no examples or methods on the internet that can help me. 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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: !!!GWT-CONNECTORS PRINTING PROBLEMS!!!
I am trying to print a diagram done with the gwt-connectors (I use the gwt- connectors1.7.1) and when attempting to view or print the lines and connectors disappear ... I tried using css but the problem persists. At: code.google.com / p / gwt- connectors / has a practical example and error. I tested in Firefox 3.6.9 and print IE8. Even following the path file Print View is the problem. Thanks! 2011/1/19 Chris Conroy con...@google.com !!!POSTING LIKE THIS IS REALLY ANNOYING. PLEASE REFRAIN FROM DOING SO. THANK YOU!!! On Wed, Jan 19, 2011 at 6:55 PM, Victor Costa Santiago victor.costa.santi...@gmail.com wrote: Hello I am using 2.0.1 and gwt-smartgwt connectors and would like a way for the connectors and lines to be printed regardless of the browser. I was tested in Firefox 3.6.9 and IE8 and they do not print. I tried to handle the css did not work ... Thanks! Victor -- You received 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-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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
MenuBar-smartgwt
Good morning everyone! I work with smartgwt. Could someone help me on how to create a dynamic menu bar in GWT. I researched a lot about using the Internet but not the MenuItem.enableIf encountered examples.When trying to to use setEnabled ( true /false ) presents problems with the dynamism of css, is only updated if placing the cursor mouse over the item. And it only works if the initial status being css enabled to true and then I set a false otherwise not working (in the case placing the cursor over the item in question). In my research in internet forums said that the GWT has this same problem and should be used MenuItem.enableIf for the dynamic, but found no examples. Can anyone help me? Can someone help me with a simple code using a menubar like this: In the case menuitem1 already enabled, and is the only one, when clicked enables menuitem2 and disables the menuitem1. Clicking the menuitem2, enables menuitem1 and menuitem3, and disables menuitem2. In the case in the drawing below menuitem3 is part of menu2. |menu1 | menu2 | --- menuitem1 | menuitem3 menuitem2 | Thanks! Victor -- You received 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.
Problems with keyboard events+MenuItem+gwt-print-it
Good morning everyone! I'm having problems with updating the look of MenuItem smartgwt. I'm leaving the subitems disabled and enabled dynamically, but the look is not, has problems, only updates the look when the cursor is over the icon, but needs to be updated to access the menu, follow what I'm trying to do: 2 subitems begin disabled and are only able to access another sub-item, but in doing so enabled this subsection which sets should be disabled. They are disabled but the bigger problem is the question that is not dynamic visual ... How do I pose to fix it? The other problem is concerned a repetition of events from the keyboard, how can I do to run a command only while precione is the shortcut key that I generated? HandlerRegistration logHandler = Event.addNativePreviewHandler(new NativePreviewHandler() { @Override public void onPreviewNativeEvent(NativePreviewEvent event) { NativeEvent ne = event.getNativeEvent(); if (ne.getCtrlKey() (ne.getKeyCode()=='l' || ne.getKeyCode()=='L')) { ne.preventDefault(); DeferredCommand.addCommand(new Command() { @Override public void execute() { loggerWindow.show(); } }); } } }); And the last problem is with the gwt-print: cmo do I print full pages in firefox? They are coming out blank! package br.com.freller.tool.client; import com.google.gwt.user.client.Command; import com.google.gwt.user.client.DOM; import com.google.gwt.user.client.DeferredCommand; import com.google.gwt.user.client.Element; import com.google.gwt.user.client.Window; import com.google.gwt.user.client.ui.UIObject; import com.google.gwt.user.client.Timer; public class Print { /** * If true, use a Timer instead of DeferredCommand to print the internal fram */ public static boolean USE_TIMER = false; /** * Time in seconds to wait before printing the internal frame when using Timer */ public static int TIMER_DELAY = 2; public static native void it() /*-{ $wnd.print(); }-*/; public static void it(UIObject obj) { it(, obj); } public static void it(Element element) { it(, element); } public static void it(String style, UIObject obj) { it(style, obj.getElement()); } public static void it(String style, Element element) { it(, style, element); } public static void it(String docType, String style, Element element) { it(docType, style, DOM.toString(element)); } public static void it(String docType, String style, String it) { it(docType +html +head +meta http-equiv=\Content-Type\ content=\text/html; charset=utf-8\ +meta http-equiv=\Content-Style-Type\ content=\text/css\ +style +/head+body +it +/body+ /html); } public static void it(String html) { try { buildFrame(html); if (USE_TIMER) { Timer timer = new Timer() { public void run() { printFrame(); } }; timer.schedule(TIMER_DELAY * 1000); } else { DeferredCommand.addCommand(new Command() { public void execute() { printFrame(); } }); } } catch (Throwable exc) { Window.alert(exc.getMessage()); } } public static native void buildFrame(String html) /*-{ var frame = $doc.getElementById('__printingFrame'); if (!frame) { $wnd.alert(Error: Can't find printing frame.); return; } var doc = frame.contentWindow.document; doc.open(); doc.write(html); doc.close(); }-*/; public static native void printFrame() /*-{ var frame = $doc.getElementById('__printingFrame'); frame = frame.contentWindow; frame.focus(); frame.print(); }-*/; } 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.
GWT: problems with gwt-diagram-gwt, gwt-visualization and gwt-connectors
Hello good day! I am new to the group and my English is not very good (I am Brazilian and -.-),i'm new to GWT and java. Well, I need to implement the service system so that when you click a button to open one within the window and should have a diagram on the system screens. for example: index / \ printing services / \ \ I tried to use gwt-diagram-gwt gwt-visualization and gwt-connectors. But each of them have many problems to implement them in the system. In the case of gwt-visualization do not know how to use the command google.load (visualization, 1, {packages: [orgchart]}) on the button that will generate the window with the chart / diagram. But all three tried to use that had problems with an uncaught error, which seems not allow me to generate the connectors between the labels / canvas / etc. What I understand they all work with and in the case of absolutepanel gwt-diagram gwt-connectors in the examples of Internet use rootpanel to display them. And how I am implementing the application that already uses rrotpanel doubt the best practice how to call that window with this chart. Have even tried the idea of using other entry-point, but I'm learning how use use do not know if it would be feasible or how to implement it. Please excuse the errors of English, and even I am new to GWT and java ... But I would like to use or-gwt gwt-diagram or visualization, but not sure how ... Thanks all! Victor -- You received 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 WebGL
Well, Look what these guys did: http://code.google.com/p/quake2-gwt-port/ http://code.google.com/p/quake2-gwt-port/If they could... why don't you? El 18 de octubre de 2010 18:38, Matías Costa m.costac...@gmail.comescribió: I think you can't. It should be a massive work. I have no idea about how bullet works, but tricking it to use a webgl context must be hard, next to imposible. GWT is a Java to Javascript compiler. It is no magic java in a webpage. The java code must comply various constraint to be able to translate to javascript. Something as simple as awt.Color doesn't work. 2010/10/16 Alon Gubkin alon.gub...@gmail.com I'm planning on writing a 3D game for the Game On contesthttp://mozillalabs.com/gaming/2010/09/30/game-on-2010-is-here/with WebGL. Because of the huge third party libraries wrriten in Java (like JBullet http://jbullet.advel.cz/), I thought it'd be a good idea to write it with GWT and not in plain JavaScript. - What is the most active WebGL module for GWT? - Are there any graphics engine ported to WebGL/GWT? If not, should I port an existing graphics engine to GWT before writing the game? Is the WebGL API similar to the OpenGL API? 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.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 and WebGL
I think you can't. It should be a massive work. I have no idea about how bullet works, but tricking it to use a webgl context must be hard, next to imposible. GWT is a Java to Javascript compiler. It is no magic java in a webpage. The java code must comply various constraint to be able to translate to javascript. Something as simple as awt.Color doesn't work. 2010/10/16 Alon Gubkin alon.gub...@gmail.com I'm planning on writing a 3D game for the Game On contesthttp://mozillalabs.com/gaming/2010/09/30/game-on-2010-is-here/with WebGL. Because of the huge third party libraries wrriten in Java (like JBullet http://jbullet.advel.cz/), I thought it'd be a good idea to write it with GWT and not in plain JavaScript. - What is the most active WebGL module for GWT? - Are there any graphics engine ported to WebGL/GWT? If not, should I port an existing graphics engine to GWT before writing the game? Is the WebGL API similar to the OpenGL API? 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.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.
com.google.gwt.user.client.rpc.SerializationException
Please help with error below. Is this mean that the class com.voxbone.voxAPI.Country could not be serialize or it is just simple NoClassDefFoundError ? Exception while dispatching incoming RPC call com.google.gwt.user.client.rpc.SerializationException: Type 'org.dozer.MappingException' was not included in the set of types which can be serialized by this SerializationPolicy or its Class object could not be loaded. For security purposes, this type will not be serialized.: instance = org.dozer.MappingException: java.lang.NoClassDefFoundError: Could not initialize class com.voxbone.voxAPI.Country at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java: 610) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java: 129) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter $ValueWriter$8.write(ServerSerializationStreamWriter.java:152) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java: 534) at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java: 609) at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java: 383) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: 581) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java: 188) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java: 224) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java: 62) at javax.servlet.http.HttpServlet.service(HttpServlet.java: 710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) -- You received 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.
Error occurred in deployement on glassfish with GWT 2.0 and EJB 3
Hi, i have a big problem, when i try to deploy my EAR project (containing GWT and EJB project) on Glassfish V3 i have this error: Exception while loading the app : java.lang.RuntimeException: Unable to load EJB module. DeploymentContext does not contain any EJB Check archive to ensure correct packaging for C:\Dev\Server \GlassfishV3\glassfish\domains\domain1\applications\UMLVWave-EAR-0.0.1- SNAPSHOT\UMLVWave-GWT_war Please Help me. Thks -- You received 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.
JSONParser bug ?
I have attempted the following code snippet: String data = new $wnd.Date(2010,0,28,17,8,48,0); JSONValue value = JSONParser.parse(data); To my dismay it returns a JSONNumber !! Now I looked in the source code (JSONParser.java: parse, evaluate createObject) and I created the following test program. String data = new $wnd.Date(2010,0,28,17,8,48,0); myParser(data); ... private native void myParser(String data) /*-{ var x = eval('(' + data + ')'); $wnd.alert( typeof = + typeof x + , valueOf = + x.valueOf()); }-*/; The alert displays typeof = object and in valueOf = 1264727328000. Because typeof = object the execution flow calls createObject: private static native JSONValue createObject(Object o) /*-{ if (!o) { return @com.google.gwt.json.client.JSONNull::getInstance()(); } var v = o.valueOf ? o.valueOf() : o; if (v !== o) { // It was a primitive wrapper, unwrap it and try again. var func = @com.google.gwt.json.client.JSONParser::typeMap[typeof v]; return func ? func(v) : @com.google.gwt.json.client.JSONParser::throwUnknownTypeException(Ljava/ lang/String;)(typeof v); } else if (o instanceof Array || o instanceof $wnd.Array) { // Looks like an Array; wrap as JSONArray. // NOTE: this test can fail for objects coming from a different window, // but we know of no reliable tests to determine if something is an Array // in all cases. return @com.google.gwt.json.client.JSONArray::new(Lcom/google/ gwt/core/client/JavaScriptObject;)(o); } else { // This is a basic JavaScript object; wrap as JSONObject. // Subobjects will be created on demand. return @com.google.gwt.json.client.JSONObject::new(Lcom/google/ gwt/core/client/JavaScriptObject;)(o); } }-*/; Please note the line: var v = o.valueOf ? o.valueOf() : o; What is the reason for doing this? It changes the type of object to something that is not and that is a number. 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.
findResource(DynaTable/html.gwt.xml) -- Resource not found, returning null
Hi All I am trying to start hosted mode for DynaTable samples from GWT2.0.0 using command line(see below): This sample works very very in all previous gwt versions. [ERROR] Unable to find 'DynaTable.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source? @java -Xmx256M -cp %~dp0\src;%~dp0\bin;%~dp0\../../gwt-user.jar; %~dp0\../../gwt-dev.jar com.google.gwt.dev.GWTShell -out %~dp0\war - logdir logs -logLevel ALL DynaTable.html I found very strange name DynaTable/html.gwt.xml in debug information. The development shell servlet received a request to generate a host page for module 'DynaTable.html' getResource(DynaTable/html.gwt.xml) findResource(DynaTable/html.gwt.xml) -- Resource not found, returning null -- Resource not found, returning null Any ideas? 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: date incompatibility between GWT java.util.Date class and the javascript Date
Nobody there? Should I fill in a bug report? As it is right now I don't think using java.util.Date to pass dates to a remote service is reliable in the web mode and there can be very subtle bugs that are hard to track. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: date incompatibility between GWT java.util.Date class and the javascript Date
It turns out that the problems that I am having stem from the way the daylight savings time dates are calculated in the browser vs. java. Here is a link with the US Canada DST periods: http://www.timeanddate.com/news/time/us-daylight-saving-extended.html For instance in 2005 the daylight savings time in Vancouver BC started on Apr 3rd. In 2010 the DST will start on Mar 14th. Any java.util.Date object created in the browser (compiled code: java - javascript) that is between 14th of Mar 2005 and Apr 3rd 2005 will have the time portion on the java side 23:00:00 because the browser applies the next DST period to these dates. In the host mode the dates work as expected because probably java uses time zone tables but as soon as the code gets compiled to javascript things are not the same in IE7. I created a test remote service with the following method: public void displayDate(Date date) { log.error(My date is + date); } the Date object is a java.util.Date. I created this client function: private void displayDate(final Date date) { AsyncCallbackAdapterVoid o = new AsyncCallbackAdapterVoid() { @Override public void executeImpl() { TestService.App.getInstance().displayDate(date, this); } }; o.execute(); } Now the following code: displayDate(new Date(105, 2, 13)); displayDate(new Date(105, 2, 14)); displayDate(new Date(105, 3, 3)); displayDate(new Date(105, 3, 4)); produces (on the server) in hosted mode: My date is Sun Mar 13 00:00:00 PST 2005 My date is Mon Mar 14 00:00:00 PST 2005 My date is Sat Apr 02 00:00:00 PST 2005 My date is Sun Apr 03 00:00:00 PST 2005 and in web mode it produces: My date is Sun Mar 13 00:00:00 PST 2005 My date is Sun Mar 13 23:00:00 PST 2005 My date is Sat Apr 02 23:00:00 PST 2005 My date is Mon Apr 04 00:00:00 PDT 2005 Note the time portion. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: date incompatibility between GWT java.util.Date class and the javascript Date
I am using GWT 1.5 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
java to javascript code conversion question
I have two modules, module 1 module 2 with module 2 inheriting module 1. When the code in module 2 gets converted to JavaScript, is gwt converting only the classes in module 1 used by module 2 or does it convert everything in module 1? I have this common module that contains code used in several other modules. Some of the panels are used in one other module, other panels are used in more than one module. When one module loads up I do not want the browser to load javascript code that is never used in that module. I am using GWT 1.5. Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: How to send data to client in a regular interval?
On Mon, Jun 1, 2009 at 9:47 AM, Suren nsurendi...@gmail.com wrote: Hi all, Is it possible to send the updated data from DB to the client in a periodic interval and without any request or call from the client? No, it is not posible. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: How to send data to client in a regular interval?
Mail fail. Oops, very wrong post. My brain got a shortcircuit and I was thinking this was for the django list. Sorry. Almost everything apply to GWT except the jquery and djangosnippets statements. For coment exists various solutions with 3rd party modules. 2009/6/1 Matías Costa m.costac...@gmail.com: I use auto_increment primery keys, so new rows are greater than the last send to client. Each minute the client polls the server /example/path/new_objects?from=2353 (beware IE caching). JQuery in client, and json encoding in the server (search djangosnippets.com) makes this a joke, no more than a few hours to implement. If you want also notify modifications (my model is inmutable) you should store some kind of version indicator. If you need near real-time updates investigate comet. I have no experience with 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-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: How to send data to client in a regular interval?
Further reading: http://code.google.com/p/google-web-toolkit-incubator/wiki/ServerPushFAQ 2009/6/1 Matías Costa m.costac...@gmail.com: Mail fail. Oops, very wrong post. My brain got a shortcircuit and I was thinking this was for the django list. Sorry. Almost everything apply to GWT except the jquery and djangosnippets statements. For coment exists various solutions with 3rd party modules. 2009/6/1 Matías Costa m.costac...@gmail.com: I use auto_increment primery keys, so new rows are greater than the last send to client. Each minute the client polls the server /example/path/new_objects?from=2353 (beware IE caching). JQuery in client, and json encoding in the server (search djangosnippets.com) makes this a joke, no more than a few hours to implement. If you want also notify modifications (my model is inmutable) you should store some kind of version indicator. If you need near real-time updates investigate comet. I have no experience with 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-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT 1.6.4 on Linux amd64 architecture fails
On Mon, Apr 27, 2009 at 7:51 PM, marco m.massen...@googlemail.com wrote: This seems a similar issue as with GWT 1.5.3, in that both seem to require a 32bit JVM to run properly. The 32b JVM is needed for the hosted mode. In production we are using 64b pure server. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
GWT1.6 and annotations
Hello people. I am developing with 1.5/eclipse/cypal-plugin, with some custom annotations and all goes fine. But fails with gwt1.6 and the google plugin. Simple test case. In eclipse create a new gwt project, let's call it just 'g' Create annotation: package g.client; import java.lang.annotation.*; @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.FIELD) public @interface Foo { public String bar() default bar; } Create class using annotation: package g.client; import java.io.Serializable; public class Thing implements Serializable { @Foo(bar = ok) public double id; public Thing() { id = 25; } public double getId() { return id; } } GWT compile project output: Compiling module g.G Refreshing module from source Refreshing TypeOracle Processing types in compilation unit: file:/home/mati/eclipse/g/src/g/client/Thing.java Found type 'Thing' Resolving annotation '@Foo(bar = ok)' [ERROR] java.lang.ClassNotFoundException: g.client.Foo at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:242) at com.google.gwt.dev.javac.TypeOracleMediator.getClassLiteral(TypeOracleMediator.java:763) at com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotation(TypeOracleMediator.java:831) at com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotations(TypeOracleMediator.java:857) at com.google.gwt.dev.javac.TypeOracleMediator.resolveField(TypeOracleMediator.java:899) at com.google.gwt.dev.javac.TypeOracleMediator.resolveFields(TypeOracleMediator.java:943) at com.google.gwt.dev.javac.TypeOracleMediator.resolveTypeDeclaration(TypeOracleMediator.java:1428) at com.google.gwt.dev.javac.TypeOracleMediator.addNewUnits(TypeOracleMediator.java:389) at com.google.gwt.dev.javac.TypeOracleMediator.refresh(TypeOracleMediator.java:417) at com.google.gwt.dev.javac.CompilationState.refresh(CompilationState.java:179) at com.google.gwt.dev.javac.CompilationState.init(CompilationState.java:93) at com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:264) at com.google.gwt.dev.Precompile.precompile(Precompile.java:283) at com.google.gwt.dev.Compiler.run(Compiler.java:170) at com.google.gwt.dev.Compiler$1.run(Compiler.java:124) at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:84) at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:78) at com.google.gwt.dev.Compiler.main(Compiler.java:131) Compiling 5 permutations Permutation compile succeeded Linking into war Link succeeded Compilation succeeded -- 19,961s Should I just ignore the error? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: RPC Performance/Response Problem
On Thu, Mar 26, 2009 at 9:46 AM, -Lord-67 -lord...@web.de wrote: First of all: Hi to everyone! I'm new to GWT and just programming my first app. Since i've some experience in Java it's not a big problem, but in this case i am stuck and hopefully someone can help me. In my app i make a RPC: On server side i get some data out of a database and save it into an array of type String. Up to 10.000 Strings atm, later on maybe up to 50.000. It is no problem so far. The server is handling this really fast. I measured 5 RPCs with about 500 Strings each and it took less time than 200 milliseconds each (SQL Statement + creating the array). The problem now is: I have to wait 5 SECONDS to get the results of the RPC (the String[] created on the server) on the client side so i can do something with them. Regarding the overall time i measured, these 5 seconds are more than 75% of the time which my app needs. Is it possible that the serialization and deserialization takes that much time? I don't think so and i have no clue where this 5 seconds come from. If someone has any ideas, solutions, suggestions on this problem i would appreciate any help! Seems your bootleneck is in the browser. Javascript is not very fast. Try Chrome and if it is faster you can blame javascript . You can make chunks of 1000 Strings and update the UI in steps. The overwall performance (throughput) will be worse, but the speed perception will be much better (latency), --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Currency Formatting
On Wed, Mar 25, 2009 at 12:28 PM, fatjack1...@googlemail.com fatjack1...@googlemail.com wrote: When you say the currency code, do I just type in something like 'GB' (or equivilent) for the UK? British pounds = GBP Euro = EUR US Dollar = USD And so on... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Open Flash Charts and negative values
Hello people. I am using ofcgwt for charting, and it looks like you can't pass the y_min parameter supported by ofc to get proper negative values rendering. ¿Any idea of how to get a negative range Y axis? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT and charts
On Mon, Mar 23, 2009 at 7:02 AM, robinson jaisj...@gmail.com wrote: Hi there guys, I am developing a java based application and require a charting utility. But when i started using google visualizations for this I figured out that it has a dependency on internet. Is there any way for me to get charts using GWT, without depending on internet. I am using ofcgwt for charting. The main problem for me is, until you get OOPHM working (I haven't even tried, I am in a rush) watching the charts require full app compilation. The process , code - test - discover bug - code - test is slow. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: using of classes outside gwt's class list
On Mon, Mar 23, 2009 at 4:10 PM, ytbryan ytbr...@gmail.com wrote: thanks thomas. I wonder which method is better? thomas's or David's? I don't quite get how to emulate the java class... but if i simply put it at the server, it will slow down my system greatly. eg. if i want to fetch the geocode from google geocode, the data will go to my server and then transmitted to my client through RPC. is there a standard way of doing this? given that the classes needed are outside the JRE Emulation provided by gwt. Google provides a gwt bindings to his google maps api. Think again, your app runs inside a big HTTP client. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT and charts
On Mon, Mar 23, 2009 at 2:05 PM, JoeB joe.berm...@gmail.com wrote: The Fusion Charts are very good-looking, but they require the Adobe Flash Player plugin. My customer may be using the app from within a secure network that doesn't have access out to the Internet, so this could be a problem. It seems that at least some browsers come pre- installed with the Flash Player; does anybody have a sense as to how safe it is to assume that all modern browsers already have the Flash Player? Any browser comes with flash preinstalled. Anyway, flash is not a big dependency. May be you could host it in the app web server for the user to install it without internet connection. If user can't install flash, you have to go with gcharts. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT and charts
2009/3/23 Matías Costa m.costac...@gmail.com On Mon, Mar 23, 2009 at 2:05 PM, JoeB joe.berm...@gmail.com wrote: The Fusion Charts are very good-looking, but they require the Adobe Flash Player plugin. My customer may be using the app from within a secure network that doesn't have access out to the Internet, so this could be a problem. It seems that at least some browsers come pre- installed with the Flash Player; does anybody have a sense as to how safe it is to assume that all modern browsers already have the Flash Player? Any browser comes with flash preinstalled. Sorry, I mean NO browser comes with flash preinstalled --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Help Please : How to add my own jar file in Gwt Module
On Fri, Mar 13, 2009 at 8:08 AM, shashi shashikira...@gmail.com wrote: Loading inherited module 'com.span.gwt.client.widgets.events' [ERROR] Unable to find 'com/span/gwt/client/widgets/ events.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source? Please any body help me out from this issue? Remember that gwt is a java *source code* to javascript compiler. All classes used in client side must be available as source code when compiling. You must include the .java files in the jar. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Plugin based gwt web application
On Fri, Mar 13, 2009 at 6:39 AM, Vitali Lovich vlov...@gmail.com wrote: The obfuscated code is just javascript which I explained to you how to load. I disagree because: * Obfuscated, optimized code mangles the functions and classes names. If this mangling, is not deterministic and constant between compiler executions, the plugin method names are different. So, how the app and the plugin can invoke each other? * There are missing code paths never used by your app, but needed by the plugin. And the reverse. Oh, and inlining. * Gwt builds are self contained, we do not want the plugin to have its own copy of everything. With optimized, obfuscated code you need some way to tell the compiler what symbols preserve. The same as you tell a C++ compiler/linker when doing a library, the symbols to export. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Plugin based gwt web application
On Fri, Mar 13, 2009 at 4:31 PM, Andreas Karlsson spra...@gmail.com wrote: Therefor I don't think the dynamic addition of (at compile time unknown) modules is doable with the current (or future) versions of GWT. Yeah, you are right. I've talking with a colleague about the idea, its posible, with restrictions, with a JSNI interface in both sides, the plugin and the app. This is the way gwt-exporter works, you can see it in the timepedia blog: http://timepedia.blogspot.com/2009/03/gwt-exporter-205-released.html But the more simple solution, as you say, is compiling all plugins all at once, and activate them in runtime. I consider myself satisfied with this. Josh, are you done? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Plugin based gwt web application
On Thu, Mar 12, 2009 at 5:40 PM, Rosh PR open@gmail.com wrote: One of the problems I'm facing over here is how will i compile a small set of gwt code with out any EntryPoint and use the generated *javascript* from the framework. I know we can compile without the Entrypoint but the main problem I'm facing is compiling code to javascript instead of java classes and loading it to the framework which will have to use these JS and display the plugin widget on the framework console on runtime. Interesting problem. This is going to need some kind of infraestructure and policy. I am just thinking out loud waiting more experienced people point problems and what can work. To start you need two things: a) Know what plugins exists, a registry of plugins b) Attach them into a panel, listen events and useful stuff To install the plugins you can drop them in folder. To know what exists you can do it manually, setting up a file and fetching it from the client side. To do it automatically you can do it server side and rpc-serialize'it to client side. To load them the main problem is obfuscated code. I imagine you can't mix up source comming from different optimizer executions. Let's suposse we can. Then if we know the plugin main object name, we can construct a jsni method to forge a call to the pluing initializer function, with the panel id to be attached. native void initPlugin(String objectName, String panelId) /*-{ var method = @+objectName+::doInit(Ljava/lang/String;); eval( method+('+panelId+'); ); }-*/; That should give to the plugin the ability to put itself into the panel and call whatever container hooks needs. Another way is doing plugin static iniatilazation self injection: class CoolPlugin extends Plugin { static { Application.staticSomething.register(new CoolPlugin()); } So the application can take further actions... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Email Validator
On Wed, Mar 11, 2009 at 8:27 AM, raga p raga8...@gmail.com wrote: can any inform me how to implement validation controls for Email Validator.. or attach the sample code for using it.. http://groups.google.com/group/Google-Web-Toolkit/msg/579923157140e362 You're welcome --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: use getDeclaredMethods() ??
On Wed, Mar 11, 2009 at 10:38 AM, Josse josse.braye...@gmail.com wrote: There is no way to get round this problem?? Well, you have to create a generator that instrospect you classes in compile time. The simplest variation is to inspect your beans, and beanadapters generators are available on the net. This document was very usefull to me: http://blog.*zenika*.com/public/Billet_0006/tutorial-binding-en.pdf Full reflection is provided by more complex frameworks/systems/whatever-you-call-it as gwt-reflection. It's a project available in googlecode, but I have not used 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-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT 1.6 works on 64 bits?
On Sun, Feb 15, 2009 at 3:24 PM, anderson...@gmail.com anderson...@hotmail.com wrote: We all want to know, GWT 1.6 works on 64 bits? I'm developing on gwt 1.5 with eclipse running on java 1.6 64bits, with the gwt projects configured to run on java 1.5 32bits. I can debug in hosted mode perfectly. It's deployed on a tomcat 6 running java 1.6 64 without troubles. In my understanding of GWT 1.6 OOPHM, you should be able to debug with all-64bits and your normal firefox. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Synchornous GWT, how can i do that
On Tue, Mar 10, 2009 at 6:01 PM, mikedshaffer mikedshaf...@gmail.comwrote: Lothar's original suggestion Do the UI-update in a method called updateUI where you check if all necessary data (e.g. above lists) are present and call this method in every onSuccess-method of the different AsyncCallback-classes. is the way to go. I agree, 3 requests, 3 ui components fills, so the ui feels responsive and some kind of magic that impress users. 2 questions: 1) not only async is the way to go, but the only way to go? Due one-thread nature of javascript you can't do request.send(callbackObject); while (field == null) Timer.sleep(100); field.use() because javascript is really frozen doing that sleep, there is no way to process the response. You have no notify() (yeah, no threads), nor continuations and setTimeout is no better, but worse. 2) Is it feasible to do some kind of request chaingun?. Adding request to a list, process responses with a generic callback and calling custom callback when all finish: ListRequest chain = new ArrayListRequest(); chain.add(service.getData1(arg)); chain.add(service.getData2(arg)); chain.add(service.getData3(arg)); gun.fire(chain, new ChainGunCallback { onSuccess(ListObject results) { // do casts and stuff } onFailure(WhatEver cause) { // crash! } }); ... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: working with % for gwt/gwtext widget(Panel) height
I had to think twice to understand you want to set height in percentage. The size of any widget is affected by the layout is contained in. You can do setHeight(50%), add to the parent container setLayout(new FitLayout()), or just use any of the many layouts available and use panel.add(widget, layoutdata). ej: rowlayout / rowdata Have you tried setStyle, or a custom css? On Thu, Feb 19, 2009 at 5:31 AM, Manish Kumar man...@oakdeneindia.comwrote: Hi All, Could I please expect any talk on this? Every single contribution will be appreciated well as I am now on dead-end where I need to say yes or no. Regards, Manish - Original Message - *From:* Manish Kumar man...@oakdeneindia.com *To:* Google-Web-Toolkit@googlegroups.com *Sent:* Wednesday, February 18, 2009 2:19 PM *Subject:* working with % forgwt/gwtext widget(Panel) height Hi All, I am trying to use % with GWT/GWText widget(Panel). But this does not work.Could i know how to do or if any work around for this. Regards, Manish --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Question: How can I get login user from Windows in GWT?
Damien is 50% right. You can't get windows credentials from any internet user. But both IE and mozilla on windows support http auth negotiate. IE for same active directory hosts out of the box, and in both you can add exceptions. I know it, because I worked in a web single sign on project for a company intranet. The mechanism is called SPNEGO. Other guy in the project integrated it with jass and/or acegui, but I don't remember too much. On Fri, Feb 13, 2009 at 7:46 AM, Roger rogerhasem...@gmail.com wrote: Hi all, Greeting from Roger. I do not know how to get login user from Windows in GWT. I try solving this in the way below, unfortunately does not work. In RemoteServiceServlet, ... Principal principal = getThreadLocalRequest().getUserPrincipal () // principal is NULL!! String userName = principal.getName(); Is there anyone can help me on this ? Thanks a ton. BR, Roger --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: save as dialog
On Wed, Feb 11, 2009 at 4:53 PM, ytbryan ytbr...@gmail.com wrote: Hi all, i already created a servlet that make a csv file frommy Resultset and save it to a predetermined location. However, i would like the user to choose the location to be stored and the name of the csv file. can someone advice me what to do? Do you mean in the client? If so, you can use content-disposition header. See: http://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html Section 19.5.1 Content-Disposition --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Custom Field Serialization
Thanks, Your wiki explains everything I needed. Regards, Vitor. On Feb 9, 11:36 am, John Huss johnth...@gmail.com wrote: I put together some details about using aCustomFieldSerializerat this page: http://code.google.com/p/wogwt/wiki/CustomFieldSerializer If you still have more questions, ask again. John On Feb 3, 12:05 pm, Vitor Costa vitor.tco...@gmail.com wrote: Hi, I would like to know if it is possible to control the serialization of some fields of an object, so that when it's being deserialized in the client (when it comes from the server) I can apply some transformations to that field, and also when it's being serialized in the client (when it is being sent to the server) I can apply the reverse transformation to it. I've seen some discussions aboutCustomFieldSerializerbut I can't find any documentation or example on how to do that. Thanks in advance, Vitor. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Custom Field Serialization
Hi, I would like to know if it is possible to control the serialization of some fields of an object, so that when it's being deserialized in the client (when it comes from the server) I can apply some transformations to that field, and also when it's being serialized in the client (when it is being sent to the server) I can apply the reverse transformation to it. I've seen some discussions about CustomFieldSerializer but I can't find any documentation or example on how to do that. Thanks in advance, Vitor. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---