GWT on-the-fly compiler with soafaces
Wanted to point folks to the GWT on-the-fly compiler (JSP to servlet like compiler) that is used in the soafaces component framework. The Soafaces https://code.google.com/p/soafaces/framework allows building GWT components (mini GWT apps) that can be compiled on the fly, kind of like JSPs. Thanks Sam https://code.google.com/p/soafaces/ -- 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 cant get data from Spring REST
I wrote an Spring REST application.I tested it with curl command, it worked truly. And in another GWT Ajax applictaion i have an RequestBuilder object that it doesn't work with my Spring Rest . after calling sendRequest method , onResponseReceived event fired but getText method returns empty string :( , What should i do? -- 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/-/aIyc1AFKy08J. 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 CSS URL Problem
Try to move MyStyles.css file at projectroot/war/MyStyles.css Regards, Ibahim On Sat, Jul 30, 2011 at 12:05 AM, clay claytonw...@gmail.com wrote: I have a CSS stylesheet defined at projectroot/src/main/webapp/MyStyles.css In my module's .gwt.xml file I reference this with: stylesheet src='MyStyles.css'/ In dev mode, GWT generates the following CSS URL which results in a 404 not found error: http://127.0.0.1:/module/MyStyles.css The following URL works (when I try manually): http://127.0.0.1:/MyStyles.css In production mode, GWT generates the following CSS URL which results in a 404 not found error: http://localhost:8080/project/module/MyStyles.css The following URL works (when I try manually): http://localhost:8080/project/MyStyles.css I'm using: GWT 2.3 Project built with Maven archetype: mvn archetype:generate - DarchetypeRepository=repo1.maven.org - DarchetypeGroupId=org.codehaus.mojo -DarchetypeArtifactId=gwt-maven- plugin -DarchetypeVersion=2.3.0-1 IntelliJ 10.5.x What am I doing wrong? How can I resolve this? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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 add checkbox in header.
atul emailatulg@... writes: Hello, Thanks for showing how to add an checkbox in the celltable header. I have another question in this regard. I am showing this celltable data with checkbox header as above as first column and other columns as Name, Address, etc. Also I am using SimplePager to show the data in celltable in paginated format with pagesize 5. Question: The first 5 records are shown in first page and when the uses clicks the checkbox header cell all the first 5 records in the celltable are selected alongwith the checkbox header cell itself. On paging to next page by clicking the next page image(or icon) on the SimplePager, the next 5 records from the celltable are shown but the checkbox header cell remains selected (true) as I had clicked it in the first page. I need the checkbox header as unchecked again (false) when the user clicks on the next page and new records are shown. SimplePager does on raise any event on clickcing the next page image(or icon). Please Help Thanks and Regards, atul gaikwad atul- I used the MyHeader class from http://snipt.net/araujo921/checkbox-in-gwt-celltable-header/ and added one more method to it: public void setValue(int column, boolean value) { this.value = value; changeValue.changedValue(column, value); } for the celltable, add loading state change handler; this way you don't have to worry about what happens on sort (if you are doing server-side sorting), pagination etc. table.addLoadingStateChangeHandler(new LoadingStateChangeEvent.Handler() { @Override public void onLoadingStateChanged(LoadingStateChangeEvent event) { if (event.getLoadingState().equals(LoadingState.LOADING)) { checkBoxHeader.setValue(false); } }); taha -- You received 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: Anyone using soafaces for client server communication ?
the UniversalClient send method to call remote service //This service endpoint takes not arguments and returns a String getUniversalClient().send(stEndpoint1, oMulePOJOCallback); } private UniversalClient getUniversalClient() { if(_oClient == null) { _oClient = UniversalClientFactory.getInstance ().getUniversalClient(UNIVERSAL_CLIENT_SERVLET); } return _oClient; } package gwtMulePoc.services; import org.soafaces.services.annotation.ServiceEndpoint; public class HelloWorldService { @ServiceEndpoint (name=helloThereEndpoint) public String helloThere() { return You got it; } } On Nov 6, 1:25 am, Sam Taha taha...@gmail.com wrote: Hi Mike, I think I see the problem. In Hosted mode, java is evaluating the Object[] as instanceof Serializable since per java spec every java array implements Serializable interface. Production mode must be letting this slip by. So actually looks like an inconsistency between compiled javascript mode and java spec. I will verify, but the fix should be easy insoafacesto move the the check for instanceof Object[] earlier in the if else chain. I will work on a bug fix forsoafaces. Thanks, Sam On Oct 30, 4:12 pm, mike_mac michael.mac...@gmail.com wrote: On further investigation this seems to be a hosted mode issue and different behaviour of instanceof between hosted mode and complied versions of the code. Passing an Object[] called obj that has two objects that implement IsSerializable results in obj instanceof Serializable returning true in hosted mode but false in the compiled Javascript. See org.soafaces.services.client.rpcGenericDataUtil.createGenericDataWrapper (Object obj) insoafacessource. Anyone have a logical explanation why hosted mode thinks its a Serializable object ? Object is not Serializable right so neither should Object[] right ? On Oct 30, 7:04 pm, mike_mac michael.mac...@gmail.com wrote: http://code.google.com/p/soafaces/ I've tried to get it working but it seems to be broken ... it claims to allow passing of Object[] but when I try to use it (Object[] objs = new Object[2]) I get a Serialization exception which seems to be from generated code ... com.google.gwt.user.client.rpc.SerializationException: [Ljava.lang.Object; at org.soafaces.services.client.rpc.UniversalClientRPC_TypeSerializer.raiseSerializationException (transient source for soafaces.services.client.rpc.UniversalClientRPC_TypeSerializer:3133) at soafaces.services.client.rpc.UniversalClientRPC_TypeSerializer.serialize (Native Method) It does work if I pass a single argument, anyone have any experience using this ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=.
Re: Anyone using soafaces for client server communication ?
Hi Mike, I think I see the problem. In Hosted mode, java is evaluating the Object[] as instanceof Serializable since per java spec every java array implements Serializable interface. Production mode must be letting this slip by. So actually looks like an inconsistency between compiled javascript mode and java spec. I will verify, but the fix should be easy in soafaces to move the the check for instanceof Object[] earlier in the if else chain. I will work on a bug fix for soafaces. Thanks, Sam On Oct 30, 4:12 pm, mike_mac michael.mac...@gmail.com wrote: On further investigation this seems to be a hosted mode issue and different behaviour of instanceof between hosted mode and complied versions of the code. Passing an Object[] called obj that has two objects that implement IsSerializable results in obj instanceof Serializable returning true in hosted mode but false in the compiled Javascript. See org.soafaces.services.client.rpcGenericDataUtil.createGenericDataWrapper (Object obj) in soafaces source. Anyone have a logical explanation why hosted mode thinks its a Serializable object ? Object is not Serializable right so neither should Object[] right ? On Oct 30, 7:04 pm, mike_mac michael.mac...@gmail.com wrote: http://code.google.com/p/soafaces/ I've tried to get it working but it seems to be broken ... it claims to allow passing of Object[] but when I try to use it (Object[] objs = new Object[2]) I get a Serialization exception which seems to be from generated code ... com.google.gwt.user.client.rpc.SerializationException: [Ljava.lang.Object; at org.soafaces.services.client.rpc.UniversalClientRPC_TypeSerializer.raiseSerializationException (transient source for soafaces.services.client.rpc.UniversalClientRPC_TypeSerializer:3133) at soafaces.services.client.rpc.UniversalClientRPC_TypeSerializer.serialize (Native Method) It does work if I pass a single argument, anyone have any experience using this ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Direction RTL and some problem in view
DecoratorPanel myPanel = new DecoratorPanel(); myPanel.getElement().setDir(rtl); ... Result: the Images that shows on border of DecoratorPanel to be Interchanged (dislocation) --~--~-~--~~~---~--~~ You received 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: i cant run Web Application Project in eclipse
Thank you very much Alex Rudnick wrote: Hey Taha, It sounds like the problem is that, while GWT comes with a 32-bit version of SWT, you're using a 64-bit JVM. If you switch to a 32-bit JVM, then you'll be set! (and in future versions of GWT, once we have the OOPHM feature, it won't be an issue) We should probably document this better for GWT. Hope this helps! On Wed, May 20, 2009 at 2:42 PM, taha taha...@gmail.com wrote: i want to create an application with gwt+eclipse+googleAppEngine i create new project with Web Application Project button in the toolbar whene i try to run or debug it i recive this messages Exception in thread main java.lang.UnsatisfiedLinkError: /media/sdb8/ Install/gwt-linux-1.6.4/libswt-pi-gtk-3235.so: /media/sdb8/Install/gwt- linux-1.6.4/libswt-pi-gtk-3235.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch) at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1778) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1674) at java.lang.Runtime.load0(Runtime.java:770) at java.lang.System.load(System.java:1005) at org.eclipse.swt.internal.Library.loadLibrary(Library.java:132) at org.eclipse.swt.internal.gtk.OS.clinit(OS.java:22) at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63) at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:54) at org.eclipse.swt.widgets.Display.clinit(Display.java:126) at com.google.gwt.dev.SwtHostedModeBase.clinit (SwtHostedModeBase.java:82) Could not find the main class: com.google.gwt.dev.HostedMode. Program will exit. -- Alex Rudnick swe, gwt, atl --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
i cant run Web Application Project in eclipse
i want to create an application with gwt+eclipse+googleAppEngine i create new project with Web Application Project button in the toolbar whene i try to run or debug it i recive this messages Exception in thread main java.lang.UnsatisfiedLinkError: /media/sdb8/ Install/gwt-linux-1.6.4/libswt-pi-gtk-3235.so: /media/sdb8/Install/gwt- linux-1.6.4/libswt-pi-gtk-3235.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch) at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1778) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1674) at java.lang.Runtime.load0(Runtime.java:770) at java.lang.System.load(System.java:1005) at org.eclipse.swt.internal.Library.loadLibrary(Library.java:132) at org.eclipse.swt.internal.gtk.OS.clinit(OS.java:22) at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63) at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:54) at org.eclipse.swt.widgets.Display.clinit(Display.java:126) at com.google.gwt.dev.SwtHostedModeBase.clinit (SwtHostedModeBase.java:82) Could not find the main class: com.google.gwt.dev.HostedMode. Program will exit. --~--~-~--~~~---~--~~ You received 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: store xml
tnx, i elect second way (Google Gears) On 8 فور, 09:28, Damien Picard picard.dam...@gmail.com wrote: Hi, I think you could do that by two ways : - Send XML to the server, and invite the user to download it from the server to local. This solution needs the user to be done. or - Use Google Gears (needs plugin) to store directly on local disk. Regards, Damien Picard 2009/2/8 taha taha...@gmail.com how can i store XML that created by gwt library into local disk --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
store xml
how can i store XML that created by gwt library into local disk --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
No source code is available for type com.google.gwt.xml.client.XMLParser Erorr
i wanna use XMLParser class in my project but i've faced below error message No source code is available for type com.google.gwt.xml.client.XMLParser; did you forget to inherit a required module? my code is package org.nts.client; import com.google.gwt.user.client.ui.DecoratorPanel; import com.google.gwt.user.client.ui.VerticalPanel; import com.google.gwt.user.client.ui.ListBox; import com.google.gwt.user.client.HTTPRequest; import com.google.gwt.user.client.ResponseTextHandler; import com.google.gwt.xml.client.*; public class IntroPanel extends DecoratorPanel { static final String TERM_PATH = term.xml; static final String TERM_TAG = term; static final String ATTRIBUTE_ID= id; static final String ATTRIBUTE_NAME = name; private VerticalPanel panel = new VerticalPanel(); private ListBox termList = new ListBox(false); public IntroPanel() { setWidth(900px); HTTPRequest.asyncGet(TERM_PATH, new ResponseTextHandler() { public void onCompletion(String responseText) { XMLParser.parse(responseText); NodeList terms = document.getElementsByTagName(TERM_TAG); for (int i=0; i terms.getLength(); i++) { Element currentElement = (Element)terms.item(i); String item = currentElement.getAttribute(ATTRIBUTE_ID); String value = currentElement.getAttribute(ATTRIBUTE_NAME); termList.addItem(item, value); } } }); panel.add(termList); } } --~--~-~--~~~---~--~~ You received 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: No source code is available for type com.google.gwt.xml.client.XMLParser Erorr
hazy1 wrote: Add the xml module to your gwt.xml. On Jan 31, 11:03 am, taha taha...@gmail.com wrote: i wanna use XMLParser class in my project but i've faced below error message No source code is available for type com.google.gwt.xml.client.XMLParser; did you forget to inherit a required module? my code is package org.nts.client; import com.google.gwt.user.client.ui.DecoratorPanel; import com.google.gwt.user.client.ui.VerticalPanel; import com.google.gwt.user.client.ui.ListBox; import com.google.gwt.user.client.HTTPRequest; import com.google.gwt.user.client.ResponseTextHandler; import com.google.gwt.xml.client.*; public class IntroPanel extends DecoratorPanel { static final String TERM_PATH = term.xml; static final String TERM_TAG = term; static final String ATTRIBUTE_ID= id; static final String ATTRIBUTE_NAME = name; private VerticalPanel panel = new VerticalPanel(); private ListBox termList = new ListBox(false); public IntroPanel() { setWidth(900px); HTTPRequest.asyncGet(TERM_PATH, new ResponseTextHandler() { public void onCompletion(String responseText) { XMLParser.parse(responseText); NodeList terms = document.getElementsByTagName(TERM_TAG); for (int i=0; i terms.getLength(); i++) { Element currentElement = (Element)terms.item(i); String item = currentElement.getAttribute(ATTRIBUTE_ID); String value = currentElement.getAttribute(ATTRIBUTE_NAME); termList.addItem(item, value); } } }); panel.add(termList); } } thank you for instruction problem solved by adding gwt.xml modul inherits name =com.google.gwt.xml.XML/ --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~--- begin:vcard fn;quoted-printable:=D8=A7=D8=AD=D9=85=D8=AF =D9=85=D9=88=D8=B0=D9=86 n;quoted-printable;quoted-printable:=D9=85=D9=88=D8=B0=D9=86;=D8=A7=D8=AD=D9=85=D8=AF email;internet:taha...@gmail.com note:taha.myvidoop.com version:2.1 end:vcard
GWT.create problem with GWT 1.5
I am doing some reflection on GWT client UI code. I do the reflection (like checking if a client class is of an isAssignableForm on the server side. I do not want to instantiate the GWT client UI classes on the server I only want to check some meta/reflection information about the superclass ...etc and I get this exception: Caused by: java.lang.UnsupportedOperationException: ERROR: GWT.create() is only usable in client code! It cannot be called, for example, from server code. If you are running a unit test, check that your test case extends GWTTestCase and that GWT.create() is not called from within an initializer or constructor. at com.google.gwt.core.client.GWT.create(GWT.java:91) at com.google.gwt.user.client.ui.UIObject.clinit(UIObject.java: 139) This used to work just fine with GWT 1.4. Why is it necessary to prevent any reflection calls of client code on the server side. Seems like overkill. I can see the need to prevent the client UI classes from being accidentally used on the server side but this prevents my ability to do reflection. -Sam --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---