Re: Help
I usually work with google chrome and any other browse Em 16/02/2017 09:15, 114joan escreveu: I will like to know way is GWT not working in Google Chrom, and how can i resolve this problem. Can eny one Help Me? Thanks -- You received this message because you are subscribed to the Google Groups "GWT Users" 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 https://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "GWT Users" 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 https://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Re: GST 2.8 Keyboard Handler Question
I have addKeyDownHandler. Follows model i have used this.addKeyDownHandler(new KeyDownHandler() { public void onKeyDown(KeyDownEvent event) { int teclado = event.getNativeEvent().getKeyCode(); int limite = 0; if (getValorAtual() != null) { limite = getValorAtual().length(); } if ((teclado == KeyCodes.KEY_DELETE)) { getValorAtual().delete(0, limite); clearValor(null); formataConteudo(); } else if (teclado == KeyCodes.KEY_BACKSPACE) { ((TextBox) event.getSource()).cancelKey(); if (limite > 0) { getValorAtual().delete((limite - 1), limite); // senão é negativo, então segue o antigo if (getValorAtual().indexOf("-") < 0) { if (getValorAtual().length() == getScala()) { getValorAtual().insert(0, "0"); } } else { if (getValorAtual().length() == getScala() || getValorAtual().length() == (getScala() + 1)) { getValorAtual().insert(1, "0"); } if (getValorAtual().toString() .equals("-" + zeroDecimal(getScala() + 1))) { getValorAtual().deleteCharAt(0); } } } formataConteudo(); } } }); Em 01/02/2017 13:25, Ed escreveu: GWT 2.8 I have the following code. It is used in a application where the input device is a usb keypad with numbers and # key. I am trying to use the # key as deliminator to obtains the numerics from the text box. Everything works except the # (Delimiter) key gets placed in the textbox after processing and I do not know how to remove it to prepare for next input. It needs to be removed because there is no backspace key. Code snippet follows: gameInput.addKeyPressHandler(new KeyPressHandler() { @Override public void onKeyPress(KeyPressEvent event) { int keycode = event.getCharCode(); if (keycode == '#') { String gamecode = gameInput.getText(); gameInput.clear(); gameInput.setText(""); . Any help would be appreciated. Best -- You received this message because you are subscribed to the Google Groups "GWT Users" 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 https://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "GWT Users" 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 https://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Re: How to simulate a click for a GWT button using fireEvent
I have use this. this.getComo().addKeyPressHandler(new KeyPressHandler() { @Override public void onKeyPress(KeyPressEvent event) { int teclado = event.getNativeEvent().getKeyCode(); if ((teclado == KeyCodes.KEY_ENTER)) { getEntrar().fireEvent(new GwtEvent() { @Override protected void dispatch(ClickHandler handler) { handler.onClick(null); } @Override public com.google.gwt.event.shared.GwtEvent.Type getAssociatedType() { return ClickEvent.getType(); } }); } } }); Em 26/01/2017 16:59, Privat escreveu: I am trying to simulate a mouse click event on GWT (Google Web Toolkit) Application in <=IE8 (using fireEvent, not dispatchEvent) A sample custom button can be found here: http://samples.gwtproject.org/samples/Showcase/Showcase.html#!CwCustomButton (The toggle button is easiest to see if the click was processed) The major boilerplate for simulating the click can be found here: http://stackoverflow.com/a/6158050 (This is where I got the simulate function used below) I have been able to successfully simulate the click event by using the following commands for IE9+ (in this case simulate used dispatchEvent) simulate(document.getElementById("gwt-debug-cwCustomButton-toggle-normal"), "mouseover"); simulate(document.getElementById("gwt-debug-cwCustomButton-toggle-normal"), "mousedown"); simulate(document.getElementById("gwt-debug-cwCustomButton-toggle-normal"), "mouseup"); In my application the fireEvent fails, because GWT's $wnd.event is null. (Line: 117, https://github.com/stephenh/google-web-toolkit/blob/master/user/src/com/google/gwt/user/client/impl/DOMImplTrident.java) If there is no way to simulate the click with plain JS, then is there a way to use GWT's EventDispatcher to simulate the click? -- You received this message because you are subscribed to the Google Groups "GWT Users" 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 https://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "GWT Users" 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 https://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Re: Update conversation by displaying new messages when they are sent
Make a timer that fires every X seconds. Button refresh = new Button(); Time temporizador = new Timer() { @Override public void run() { dispara(); } }; // 2 seconds temporizador.scheduleRepeating(2000); private final void dispara() { refresh.setFocus(true); refresh.fireEvent(new GwtEvent() { @Override protected void dispatch(ClickHandler handler) { handler.onClick(null); } @Override public com.google.gwt.event.shared.GwtEvent.Type getAssociatedType() { return ClickEvent.getType(); } }); } Natan. Em 20/09/2016 07:40, David escreveu: If you only need to support modern browsers then I really would go the WebSockets way. Its really simple to implement with JSInterop. I did so in combination with GWT Jackson and RequestBuilder. On the server side I used Jersey. Unfortunately I cannot publish this code since it is closed source. On Tue, Sep 20, 2016 at 12:16 PM Frankwrote: I do this using signalR (for which I built a GWT wrapper (not opensource). But maybe you should look into websockets or atmosphere (which uses websockets). -- You received this message because you are subscribed to the Google Groups "GWT Users" 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 https://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "GWT Users" 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 https://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "GWT Users" 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 https://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Re: [gwt-contrib] GWT 2.8 RC1 Help with testing
Hi, We have interest in Linux / Chrome. Natan. Em 20/07/2016 09:31, Michael Joyner escreveu: (I'm cross posting this here from google-web-toolkit-contribut...@googlegroups.com as being highly relevant) Hi all, we have build the preliminary GWT 2.8.0-rc1 version and now need help with DOA testing (making sure its not dead on arrival). We are currently missing testers for: Linux / Chrome Windows 7 / IE8/IE9 Windows 7 / IE 10 Windows 7 / IE 11 If you are interested in spending ~1h in testing the new GWT release, please reach out to me. -Daniel Discussion link: https://groups.google.com/d/msgid/google-web-toolkit-contributors/CALLujipOWx590QLZs0OKED12%2BW5jKmNsnY1zQw0XshxyY5yM6w%40mail.gmail.com. -- You received this message because you are subscribed to the Google Groups "GWT Users" 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 https://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "GWT Users" 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 https://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Re: “No source code is available for type”
Don't exclude *.java. It's need compile in gwt. Em 18/07/2016 15:03, Thomas Broyer escreveu: Why are you excluding *.java files from your JAR? -- You received this message because you are subscribed to the Google Groups "GWT Users" 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 https://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Re: “No source code is available for type”
Hi, You need to add the package in .gwt.xml file. Sample. natan. Em 18/07/2016 14:57, あああいいい escreveu: You need to add your project .xml inherit lib name . 2016年7月19日火曜日、zakaria amineさんは書きました: Hi GWT users, I am need your help with an issue that have been bugging me for days now. I created a gwt library(https://github.com/gwidgets/gwty-leaflet) which works and compiles fine. When I create an entry point from inside the project, everything is o.k. However, when I package the project, install it, and try to import it into another GWT project, the compiler complains. I tried eveything from changing packages names, depth, tried another GWT version, etc,... This does not seem to fix it. Any help would be much appreciated. Tracing compile failure path for type 'com.test.client.test' [INFO] [ERROR] Errors in 'file:/C:/Users/zakaria/Desktop/myWork/GWidgets/workspace/testing/src/main/java/com/test/client/test.java' [INFO] [ERROR] Line 23: No source code is available for type com.gwidgets.leaflet.options.MapOptions; did you forget to inherit a required module? [INFO] [ERROR] Line 23: No source code is available for type com.gwidgets.leaflet.options.ZoomPanOptions; did you forget to inherit a required module? [INFO] [ERROR] Line 23: No source code is available for type com.gwidgets.leaflet.L; did you forget to inherit a required module? [INFO] [ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly -- You received this message because you are subscribed to the Google Groups "GWT Users" 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 https://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "GWT Users" 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 https://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "GWT Users" 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 https://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Re: How to sort a list of objects from the shared folder on server-side?
There is something strictly gwt / js is easily possible. Being only be required to have "extends IsSerializable" Em 19/05/2016 12:39, Kirill Prazdnikov escreveu: Is it possible to move the compareTo-code to server-side somehow and still use Collections.sort? I think you can move any part of you project to another part. For example it is possible to move or copy-paste a class from the client code to the serve code. Isn`t it ? -- You received this message because you are subscribed to the Google Groups "GWT Users" 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 https://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "GWT Users" 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 https://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Re: GWT can not run on Tomcat
Hi, Change facet for webdinamic. Choice run tomcat and change class directory to webContent/WEB-INF/classes. Natan. Em 29/03/2016 09:23, fenyoapa escreveu: I'm running gwt under tomcat in MyEclipse. Maybe you did not set the "output folder": -- You received this message because you are subscribed to the Google Groups "GWT Users" 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 https://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "GWT Users" 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 https://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Re: Creation of Dynamic frontend screens for data entry
You can dynamically assemble the query, using the metadata, however, I abandoned this procedure because of the work it takes. Currently I have an array object and through it I take and bring the Oracle tables information. Em 15/03/2016 13:32, Praveen Chakka escreveu: I am new to GWT and exploring if there are any options for the following: 1) We have an oracle database with 15 tables. Each table has about 10 fields 2) We want to develop front-end data entry screens for these 15 tables 3) Is there any way with GWT to dynamically design a front end screen for each of these tables(with ability to pick and choose fields that are needed on the screen) for data entry? -> User/Designer should be able to pick and choose which fields from database table should be presented on frontend screen Appreciate any suggestions. If GWT cannt do this feature, are there any other softwares using which front end screens can bebuilt dynamically? Thanks -- You received this message because you are subscribed to the Google Groups "GWT Users" 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 https://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "GWT Users" 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 https://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Re: Regarding RpcService,HybridServiceServlet and ClientOracle
Hi Thomas, As my English is bad, I do not know if I understand your problem, however, I use GWT from version 1.x and never had a problem with the relationship between and the oracle. Here's how to work: public class Cadastro extends XsrfProtectedServiceServlet implements DBService { public void SQLDireto(){ OracleResultSet result = null; OracleCallableStatement executarOC = null; OraclePreparedStatement executarOP = null; ds = new ConexaoDS(); executarOC = (OracleCallableStatement) ds.getComunicacao() .prepareCall("operation DML"); executarOC.registerOutParameter(1, OracleTypes.CURSOR); executarOC.execute(); result = (OracleResultSet) executarOC.getObject(1); // read result and return } public final class ConexaoDS { private Connection conexao; public ConexaoDS(String conexao) throws NamingException, SQLException { Context lContext = new InitialContext(); Context envCtx = (Context) lContext.lookup("java:/comp/env"); OracleDataSource ds = (OracleDataSource) envCtx.lookup(conexao); this.conexao = ds.getConnection(); this.conexao.setAutoCommit(false); } public Connection getComunicacao() { return this.conexao; } } Natan. Em 03/03/2016 13:06, MANTU KUMAR escreveu: Hi Thomas, I want to ask one thing that ClientOracle is in deRPC and deRPC has been removed from 2.7 then instead of ClientOracle what is using in GWT 2.7 and What is the use of ClientOracle?. and in my existing application which is GWT 2.0.3, i have used two method processCall(ClientOracle clientOracle,String payload,OutputStream stream) and processCall(String payload) so, what is use of two methods in GWT 2.0.3? On Thu, Feb 25, 2016 at 4:08 PM, Thomas Broyerwrote: On Thursday, February 25, 2016 at 8:19:16 AM UTC+1, mant...@gmail.com wrote: Hi Thomas, I am new in GWT and I have to migrate version GWT 2.0.3 to GWT 2.7 but In GWT 2.0.3 , GWT-RPC is there and in GWT 2.7,GWT-RPC is not there. So,How can I resolve the RPC Related issue in GWT 2.7. When I migrated older version(2.0.3) to Higher version(2.7) then I am getting error like RpcService,HybridServiceServlet and ClientOracle. In my existing Project RPC has used that's why I am migrating GWT 2.7 then These errors are coming like RpcService,HybridServiceServlet and ClientOracle. So,If RPC is not there in GWT 2.7 then what is present in GWT 2.7 which resolve the Rpc related issue and also confirm me that RPC is available in GWT 2.7 or not. Please re-read my previous mail, and possibly go read the documentation at http://www.gwtproject.org/doc/latest/DevGuideServerCommunication.html RpcService, HybridServiceServlet and ClientOracle were part of "Direct-Eval RPC" (aka deRPC), which was experimental and discouraged for use in production. deRPC has been removed in 2.7, but GWT-RPC is still there. deRPC and GWT-RPC are (were) two different things; deRPC aimed at being a "better GWT-RPC" and replacing it, but it failed, so GWT-RPC is still there and deRPC has been retired. Migrating (back) to GWT-RPC should hopefully be as easy as switching RpcService and HybridServiceServlet (and/or RpcServlet) to RemoteService and RemoteServiceServlet respectively; and remove the from your gwt.xml. You're talking about ClientOracle though, which means you possibly had some customization on top of the "out-of-the-box" deRPC, so migration *might* not be that easy (depending on the kind of customization you have). Last, but not least, there must have been a reason to use the experimental deRPC over standard GWT-RPC, so