Errai Experience?
What is your experience with RedHat Errai ( http://www.jboss.org/errai/) It uses GWT to build rich web app's. Is it mature?..., too early to jump in, ... ? anybody used it in real projects?... JS output overhead ?... - Ed -- 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/-/H_99kCt9fUkJ. 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: Hibernate session in RequestFactory
Hi Thomas, I know that a session is different from a transaction. But in my case I need also a single transaction per request in order to manage correctly the lazy entity with hibernate. The problem is that I can't send error message to the client when the error is on PersistenceFilter. Any ideas? Thanks Il giorno lunedì 13 agosto 2012 23:53:42 UTC+2, Thomas Broyer ha scritto: Session != transaction. You're supposed to use a single session per request but one transaction per service method. -- 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/-/rhMjVikyG-YJ. 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 PORTLET
I want to know more about step 3 and 4, could you provide more detail? what is the GWT sample project's files (the folder containing files *.nocache.js ,*.gwt.rpc ,cache.html and *.cahce.png?) copy to sample portlet which folder? (webapp folder, where view.jsp is placed?) On Tuesday, March 13, 2012 1:33:52 AM UTC+8, Sebastián Gurin wrote: I have done GWT portlets successfully for liferay. You can use some liferay specific options for including your portlet javascript. But basically, I would start with the following. 1) create a sample GWT application and compile it. You should have a index.html page that loads your GWT javascript 2) create a sample portlet (using technologies of your choise, could be jsp for example). 3) in your portlet's markup, copy your GWT sample project's files. 4) in your view.jsp (or whatever main portlet VIEW page), include the GWT script and neccesary markup. P/d: searching in google GWT portlet there are some suggestions about calling the gwt compiler inside your portlet's project, for example with eclipse or ant. For example liferay gwt portlet will give you a lot of specific step by step tutorials regards On Fri, 9 Mar 2012 23:43:19 -0800 (PST) Nitheesh Chandran nith...@dotentreprise.com javascript: wrote: Can you tell me more specifically ? I want to create a portlet then integrate that with GWT app. How to create portlet ,then how to integrate it with gwt app ? On Mar 9, 3:26 pm, Nitheesh Chandran nithe...@dotentreprise.com wrote: Sorry gwt-portlet.jar On Mar 9, 3:20 pm, Nitheesh Chandran nithe...@dotentreprise.com wrote: Hello , I want to create portlet using GWT. I searched in the Internet and downloaded get-portlet.jar. But the hello world app failed. Is there any other way for creating portlet in GWT. ? Helps will be appreciated. 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-we...@googlegroups.comjavascript: . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com javascript:. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Sebastian Gurin sgu...@softpoint.org javascript: -- 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/-/MKoKf1yTs6EJ. 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 PORTLET
the link is dead. http 404 *The requested resource (/examples/pages/portal/portal.html) is not available. *I really want to find some step by step example for integration of gwt with portlet. On Wednesday, March 14, 2012 12:18:31 AM UTC+8, Joseph Lust wrote: You could also use Ext GWT. It has out of the box working examples of portlets in GWT. I found it quite simple to implement. http://www.sencha.com/examples/pages/portal/portal.html Sincerely, Joe -- 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/-/wVb1-6JihRYJ. 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.
Anyone used GWT with Require.js?
Hi, The project I'm working on is seeing a lot of native Javascript creeping in, largely as a result of the requirement to incorporate UI features developed by other teams that specialise in Javascript. I am hoping to manage the Javascript dependencies using require.js (http://requirejs.org/). Correctly used, require.js will remove the problem where a script loads, executes, and fails because of a reference to another script that hasn't finished loading yet. But I still have problems when JSNI code calls into a Javascript library before it's finished loading. The solution would appear to be to use require.js to load the nocache script that boots the application, so that it won't start executing until all its dependencies have loaded. Does anyone know if this is possible? Any advice? Thanks, Chris -- 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/-/mMW8aYqdclAJ. 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: Errai Experience?
We are using it in some of our stuff and we love it so faar. After using this you wont write any GWT RPC anymore. I can def recommend to give it a try. 2012/8/14 Ed post2edb...@gmail.com What is your experience with RedHat Errai ( http://www.jboss.org/errai/) It uses GWT to build rich web app's. Is it mature?..., too early to jump in, ... ? anybody used it in real projects?... JS output overhead ?... - Ed -- 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/-/H_99kCt9fUkJ. 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: DevMode not working in Chrome after update
Please how exactly did you install it. Did you drag the already downloaded plugin file to the extendions page or did you drag it from the GWT dev mode page where it usually prompts for download and installation. On Saturday, 11 August 2012 23:17:02 UTC+1, Piotr Swietoslawski wrote: I have the same issue on OSX with Chrome 21 and Eclipse Juno. However I was able to install the plugin by drag and dropping it on Chrome's Extension page: - chrome://chrome/extensions/ You can also try to run Chrome with * –enable-easy-off-store-extension-install* flag though this is not recommended (http://peter.sh/experiments/chromium-command-line-switches/) On Thursday, August 9, 2012 10:57:48 AM UTC-7, Jason E wrote: Same here with Version 21.0.1180.57 Come on, Google! On Tuesday, July 17, 2012 7:16:03 AM UTC-7, Andy wrote: I updated Chrome this morning and now when I try to use DevMode I get an error Could not load GWT DevMode Plugin and an offer to Download the GWT Developer Plugin. When I try to download it (it's already installed), it says Extensions, apps, and user scripts can only be added from the Chrome Web Store. and there's no GWT plugin in the store. -- 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/-/-7cBy2crYKMJ. 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: Errai Experience?
Used in a number of real projects. API is very good and straight forward, dev team support also great. I was able to employ web sockets on one project which really made it fly. Real-time financial price distribution. The server side is wired up using Guice, which we struggled to sensibly(ended up statically accessing stuff) make work with Spring, so could do with a bridge there. I wouldn't necessarily recommend the GWT RPC substitute. While it works, it synthesis's subscription requests under the hood, so one simple call results in a number of http requests. (subscribing and unsubscribing) to a GWT RPC single call. Played havoc with ntlm and IE, re-authenticating every post requests. Firebug/Chrome dev tools very handy to see what's going on. On Tuesday, 14 August 2012 16:50:47 UTC+10, Ed wrote: What is your experience with RedHat Errai ( http://www.jboss.org/errai/) It uses GWT to build rich web app's. Is it mature?..., too early to jump in, ... ? anybody used it in real projects?... JS output overhead ?... - Ed -- 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/-/Ea-fhyCMlDwJ. 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.
CellBrowser EditTextCell (not refreshing the cell)
Hi, I have changed the CellBrowser sample in showcase to render an EditTextCell for one of the columns. I would like to ignore the value change in EditTextCell in certain occasions. If the value entered by user in the EditTextCell is not acceptable, I would like to revert back to the original value that it was already rendering. I have read multiple posts about refreshing the cell table but none of them prevents the EditTextCell to change its value or at least set it to its original content. Note that the backed data provider has not changed, in fact if you click on the EditTextCell two times, it automatically reverts back to the original value but refreshing the EditTextCell data provider or it's parent data provider or closing / reopening the cellBrowser has no affect. I tried to extend the EditTextCell and override onBrowserEvent method but I can't seem to find a way to set the content of the cell to it's original value. Any help would be greatly appreciated. These are similar posts that I have followed: https://groups.google.com/forum/?fromgroups#!searchin/google-web-toolkit/Cellbrowser$20refresh/google-web-toolkit/Jv8cz3ynwEI/FwJLyAS2fdcJ%5B1-25%5D http://stackoverflow.com/questions/4702102/gwt-how-to-programmatically-reload-cellbrowser EditTextCell but related matter. http://stackoverflow.com/questions/5171254/how-can-i-disable-edittextcell-and-enable-it-with-editbutton-click-in-gwt https://groups.google.com/forum/?fromgroups#!searchin/google-web-toolkit/Cellbrowser$20refresh/google-web-toolkit/ymSNiH5VtM4/ZkFo-pCc9hMJ%5B1-25%5D Thanks, Arash -- 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/-/YUb68_TJYxkJ. 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: Drag and Drop UI using GWT with Connectors
Sorry for the late reply. Thanks for your inputs. Unfortunately, we do not have the privilege to use HTML5 and CSS3. As we may also have to support IE8... @Rob: I have looked into few of those sites. Mostly it is about integrating drawing tools into our application. I am not sure, how we can use it in our applilcation. First, can we integrate them along with GWT. Second, programmatically draw the diagrams, give a Drag and Drop feature for the diagram, handle connectors..etc. It would be really great if we have suggestion with this design. Now, I have looked into lib-gwt-svg API. But, using which we can draw diagrams. But still, not enough documentation on how to make use of api. If anybody has any resources or links which they can share would be great. On Aug 11, 11:38 pm, ashwin.desi...@gmail.com ashwin.desi...@gmail.com wrote: Santosh, If you have the privilege (depending on your app) to use html5 and css3 as the min browser requirement, then I would suggest draw the process as as div and style them as circle using border-radius CSS style. to draw the connectors, use HTML5 canvas. GWT supports canvas on browsers which are html5, chrome, opera, firefox (3.6 and above) and IE (9 and above). This is the technique yahoo also uses with its pipes project You can implement drag and drop using techniques provided for any gwt widget. I have implemented connectors in my project. All you have to do is place your widgets using absolute positioning on a panel (call it the editor), draw the connector to a canvas between the widgets and add the canvas to the editor. You will have to update the position of the widgets respective canvas when you drag any of your process widgets. Regards Ashwin On Fri, Aug 10, 2012 at 6:03 PM, Santosh santosh.ku...@darkhorseboa.comwrote: We have a requirement to create a diagram which shows a sequence of process in circular manner with Connectors. UI should be flexible enough so that user can drag and drop any process between any of the other two process in the diagram. Automatically connectors should get re-arranged with new sequence. All examples what I saw using GWT-DND are drag and drop components, but no examples with Connector arrows concepts. We have also heard about SVG and YUI. But I am not sure how far we can use that within GWT. Do we have any suggestion on what to choose and how we can design 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.
PopupPanel scrolling on touch screen tablet
I have a GWT 2.4 application and I am using PopupPanel. I have a problem with the PopupPanel scrolling when opened from a touch screen tablet (iOS and Android ). After opening the PopupPanel and scrolling till the end of its content the RootPanel page in the back starts scrolling. Also the PopupPanel Glass layer scroll up as well. As if the main page (RootPanel) scroll is notified with the TouchMove event when fired from the PopupPanel object. Any idea for a fix or workaround? -- 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/-/hYV1yDhn4pcJ. 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: where is Elemental package?
ah!yes. I found it now. Thanks. 2012/8/13 Thomas Broyer t.bro...@gmail.com In the gwt-elemental.jar that comes with the GWT SDK (or the gwt-elemental Maven artifact), 2.5-rc1 only. -- 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/-/o2vn67BWxPMJ. 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. -- Gong Min gongmin...@gmail.com -- You received 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: where is Elemental package?
I have a problem with addEventListener with GWT 2.5-rc1 Also I found the following problem: I wanted to test whether the problem was fixed in the trunk, but the Window interface in the package elemental.html in the trunk, does not contain the method newAudioContext(), this method is in version 2.5-rc1 gwt. Any ideas? A.U.S Cristian Rinaldi Logikas - Conectando Ideas www.logikas.com 2012/8/14 gong min gongmin...@gmail.com ah!yes. I found it now. Thanks. 2012/8/13 Thomas Broyer t.bro...@gmail.com In the gwt-elemental.jar that comes with the GWT SDK (or the gwt-elemental Maven artifact), 2.5-rc1 only. -- 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/-/o2vn67BWxPMJ. 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. -- Gong Min gongmin...@gmail.com -- You received 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: Anyone used GWT with Require.js?
Chris, But I still have problems when JSNI code calls into a Javascript library before it's finished loading. The solution would appear to be to use require.js to load the nocache script that boots the application, so that it won't start executing until all its dependencies have loaded. Have you considered adding some JSNI methods published to the DOM so that your require.js code can call into your GWT code and start processes as needed, once it has loaded the needed resources? Sincerely, Joseph -- 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/-/a91OdrfnD6sJ. 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.
Paging HTML viewer
I'm using the HTML widget to render some dynamic conversation logs. The problem is these logs can grow over time and add lots of DOM Nodes. I'm wondering if someone has made some sort of a paging HTML viewer? Currently I wrap the HTML widget in a GXT VerticalLayoutContainer with vertical scrolling, but could have used GWT ScrollPanel I presume. So I'm only showing a portion of the HTML at a time anyway so seems like paging would be an ideal solution. One trick, it seems, is that you have to calculate how big (tall) each portion of the HTML is so you know what portion to show when scrolling. This seems like it would be very useful general purpose GWT widget so I'm wondering if someone has made something like this already. Thanks, -Dave -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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: display GWT dialog when a link is clicked in jsp
there are a lot of links that represent records Option 1) Have GWT consume this section - i.e. the jsp page contains an empty div with an id that can be picked up during GWT module load ( RootPanel.get(theId) ). The records would then be rendered via a gwt-rpc call into a gwt grid or table component. You can then use the anchor handlers for the Dialog that you already built. Option 2) Have gwt bootstrap from the jsp but without consuming any section. Add a javascript onclick to your jsp record to call a native javascript function which performs a jsni call for your loaded gwt module to open your dialog. Option 3) Have gwt consume a div with a hidden overlay (a dialog) . Add a javascript onclick to your jsp record to call a native javascript function which performs a jsni call to the loaded gwt module to provide context and reveal the dialog I prefer Option 1 as it leaves the page much more extensible for java developers to provide additional RIA capabilities. ( i.e. paging the records without re-loading the main page). On Wednesday, August 8, 2012 5:32:32 PM UTC-4, James wrote: I have already used GWT to develop a dialog. From a gwt application, I can open this dialog from Anchor. I have a struts 2 application. I want to integrate this GWT dialog to a dynamic jsp page. On this jsp page, there are a lot of links that represent records. I want to open a GWT dialog once a link is clicked from this jsp page. I also pass a value from a link in jsp page to GWT dialog. How do I implement this feature? James -- 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/-/H7jwDTzzFkgJ. 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 let this Map be transferred by GWT-RPC correctly?
I want to return a Map with 2 members to web client: One member is a list of Post, and the other is a Map of User. Of course, I can define a class with these 2 members, and it realy works. But I want to try a more general solution for GWT-RPC parameters/results transferring. So far, I tried this solution on 2.5rc1. It works but with warning like below,anybody knows how to resolve it, or I really should forget this way to transfer objects between client and server if you know the reason. Thanks. [DEBUG] [ gwtLearning ] - Rebinding com.learn.client.GreetingService [DEBUG] [ gwtLearning ] - Invoking generator com.google.gwt.user.rebind.rpc.ServiceInterfaceProxyGenerator [DEBUG] [ gwtLearning ] - Generating client proxy for remote service interface 'com.learn.client.GreetingService' [DEBUG] [ gwtLearning ] - Analyzing 'com.learn.client.GreetingService' for serializable types [DEBUG] [ gwtLearning ] - Analyzing methods: [DEBUG] [ gwtLearning ] - public abstract java.util.Map postWithUserServer() throws java.lang.IllegalArgumentException [DEBUG] [ gwtLearning ] - Return type: java.util.Map [DEBUG] [ gwtLearning ] - java.util.Map [DEBUG] [ gwtLearning ] - Verifying instantiability [DEBUG] [ gwtLearning ] - java.util.HashMap? extends java.lang.Object, ? extends java.lang.Object [WARN] [ gwtLearning ] - Checking all subtypes of Object which qualify for serialization [DEBUG] [ gwtLearning ] - com.google.gwt.validation.client.impl.PathImpl [DEBUG] [ gwtLearning ] - Verifying instantiability [DEBUG] [ gwtLearning ] - com.google.gwt.validation.client.impl.PathImpl [DEBUG] [ gwtLearning ] - Analyzing the fields of type 'com.google.gwt.validation.client.impl.PathImpl' that qualify for serialization [WARN] [ gwtLearning ] - Field 'private final java.util.Listjavax.validation.Path.Node nodes' will not be serialized because it is final = public interface GreetingService extends RemoteService { Map postWithUserServer() throws IllegalArgumentException; } public interface GreetingServiceAsync { void postWithUserServer(AsyncCallbackMap callback) throws IllegalArgumentException; } public class GreetingServiceImpl extends RemoteServiceServlet implements GreetingService { @Override public Map postWithUserServer() throws IllegalArgumentException { *ListPost lPos*t=Arrays.asList(new Post(2),new Post(3),new Post(4),new Post(5),new Post(6),new Post(7) ,new Post(8),new Post(9),new Post(10),new Post(11),new Post(12),new Post(13)); *MapInteger,User mUser*=new TreeMapInteger,User(); mUser.put(1, new User(1)); mUser.put(2, new User(2)); mUser.put(3, new User(3)); *Map mResult* = new TreeMap(); mResult.put(posts, lPost); mResult.put(users, mUser); return mResult; } } public class GwtImage implements EntryPoint { private final GreetingServiceAsync greetingService = GWT.create(GreetingService.class); public void onModuleLoad() { final CellListString clPostWithUser = new CellListString(new TextCell()); Button btnShowPostWithUser = new Button(Show Post With User,new ClickHandler(){ @Override public void onClick(ClickEvent event) { greetingService.postWithUserServer(new AsyncCallbackMap(){ @Override public void onFailure(Throwable caught) { Window.alert(get result failed!); } @Override public void onSuccess(Map mResult) { ListPost lShowPosts =(ListPost) mResult.get(posts); MapInteger,User mShowUsers = (TreeMapInteger,User) mResult.get(users); ListString lShowResult = new ArrayListString(); User uShow; for(Post pShow:lShowPosts){ uShow=mShowUsers.get(pShow.pid%3+1); lShowResult.add(pShow.pid+:+pShow.title+:+pShow.body+ from + uShow.uid +/ + uShow.name + / + uShow.nickName); } clPostWithUser.setRowData(lShowResult); } }); } }); RootPanel.get().add(btnShowPostWithUser); RootPanel.get().add(clPostWithUser); } } public class User implements Serializable{ private static final long serialVersionUID = 1L; public int uid; public String name; public String nickName; public User(){} public User(int i){ uid=i; name=name +String.valueOf(i); nickName=nickName +String.valueOf(i); } } public class Post implements Serializable{ private static final long serialVersionUID = 1L; public int pid; public String title; public String body; public Post() {} public Post(int i) { pid=i; title=title +String.valueOf(i); body=body +String.valueOf(i); } } -- Gong Min gongmin...@gmail.com -- You received 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: Hibernate session in RequestFactory
You're trying to solve the wrong problem. If you have an issue with lazy loading, then load eagerly, do not extend your transaction lifetime. -- 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/-/FvQoeqsXS9QJ. 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: Paging HTML viewer
You don't have to know how tall each HTML portion is. You just need to know when to load the next page of data and that would be if your scroll position nearly reaches the bottom of ScrollPanel. Its pretty similar to what you can see here (see ShowMorePagerPanel.java): http://gwt.google.com/samples/Showcase/Showcase.html?locale=en#!CwCellList So you just need a ScrollPanel with a ScrollHandler attached that notifies you when to load/render the next page of log entries because the user has nearly scrolled to the end of the displayed widget. I have implemented a list some time ago (before cell widgets) that required fixed height list entries and only rendered the list entry widgets when they are actually visible to the user. So at any time during scrolling the DOM only contained that much elements needed to fill the visible area. Scrolled out items were removed from DOM while scrolled in items were attached constantly while scrolling. The math wasn't that complicated and it works pretty well but because of the constantly deleting and adding of DOM elements while scrolling we had some hiccups in older IE's when scrolling fast through the list. But we could easily scroll through thousands of list entries while only having ~40 DIVs (depending on list height and fixed list entry height) to represent them. Although it worked I think I wouldn't do it again that way unless you have some memory constraints (mobile devices) and don't want to have that many invisible DOM elements laying around (on the other hand constantly updating the DOM can cost more battery power on mobile devices). Having a ScrollHandler that notifies you when reaching the end of the list is a simpler solution. -- 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/-/l83xEjeg6U4J. 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 let this Map be transferred by GWT-RPC correctly?
I guess the reason is that you return a raw Map. A raw Map means Map? extends Object, ? extends Object and GWT now has to check all possible sub classes of Object (= all classes) to see if they can be safely serialized. GWT then finds the serializable class PathImpl on the classpath and complaints about a final List variable inside that class (GWT-RPC can't serialize final fields yet I think). Also because you have used Map/List GWT has to generate JavaScript code to support serializing all implementation classes of Map/List even if you never use them. When you use GWT-RPC there is a rule very different from what you know from Java: Be as explicit as possible *(as long as it makes sense)* while defining your GWT-RPC methods. So instead of a raw Map use a parametrized HashMap or TreeMap. In your example its probably best to create a DTO class, e.g. class MyResult implements Serializable { ArrayListPost posts; TreeMapInteger, User users; } Now GWT will only validate MyResult, ArrayList, TreeMap, Integer, Post and User instead of every class on the classpath and the warning should disappear. Also only JS serialization code for ArrayList and TreeMap will be generated instead of code for all List and Map implementations. Being explicit only counts on GWT-RPC, so for everything else in your app you should use Map/List/Set. If your app grows and you plan to have RPC methods with all kinds of List/Map/Set implementations then you can of course use the Map/List/Set interface (because then you need serialization code for every implementation anyways) but you should still parametrize them. -- 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/-/s7IRJutPAVcJ. 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.
querying binary data
There is service that gets and responses binary data and Java SWING client application that works with that service. I wish to replace Java SWING with GWT app. Is there GWT API to query binary data? It is unlikely to encode binary data on server. I need that to work at least on WebKit as app must work on iOS. Thanks -- 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/-/UgIMYuF-GhYJ. 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 handler CellTable's CellPreviewEvent in @UiHandler way?
Did you ever get an answer to this? Thanks! On Monday, August 1, 2011 6:56:39 AM UTC-6, Senyuan, Wang wrote: HI, I have a problem to handler CellPreviewEvent in a UiBinder file, just like the following way: @UiHandler(cellTable) void onCellTableCellPreview(CellPreviewEventPerson event) { GWT.log(event.toDebugString()); } When I try to load the module, I got the following error: Field 'cellTable' does not have an 'addCellPreviewEvent.Handler' method associated. Is there something wrong what I did? or missed? I will appreciate any ideas on this problem. Thanks. -- 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/-/EvYm7zIecxwJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: window scrolls to top afte closing PaopupPanel
Hi, I use following code : int left = eachHotel.getAbsoluteLeft(); int top = eachHotel.getAbsoluteTop(); final DialogBox dialog = new DialogBox(true, true); dialog.getElement().getStyle().setHeight(Window.getClientHeight() - 255, Unit.PX); dialog.setPopupPosition(left, top); $(dialog).as(Effects).fadeIn(100, new Function() { @Override public void f() { dialog.show(); } }); dialog.addCloseHandler(new CloseHandlerPopupPanel() { @Override public void onClose(CloseEventPopupPanel event) { $(dialog).as(Effects).fadeOut(300, new Function() { @Override public void f() { dialog.removeFromParent(); } }); } }); I am setting the position relative to some object(eachhotel). Once the dialog closes, the Window scrolls to top. Regards Deepak On Tue, Aug 14, 2012 at 3:19 AM, Thad thad.humphr...@gmail.com wrote: I've not seen this behavior. Perhaps if you provided more information or a code snippet? What version of GWT? In which browsers? What are the autoHide and modal settings for the panel? On Sunday, August 12, 2012 12:44:13 PM UTC-4, Deepak Singh wrote: Hi All, I have a popup panel and am showing some content inside it with scrolling enabled inside popupPanel. Now the problem i am facing is that, after closing popupPanel(once it hides), the current Window automatically scrolls to top. I want the window should remain as it is even after closing popupPanel. Thanks Deepak Singh -- 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/-/Uc8RqUBAHb0J. 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. -- Deepak Singh -- You received 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 Multi-Module Server Classpath Problem
On Friday, 10 August, 2012 at 10:34 AM, Thomas Broyer wrote: Are the JARs exported by the common Eclipse project? They aren't -- both M2E or eclipse:eclipse handles transitive dependencies by adding the JARs to the class path of the 'child' project, so you don't need the 'parent' to export, AFAICS. Over the weekend, I discovered that the child project was showing up as a WST project; I haven't done much with WST so I don't know what its builders and natures do, and the Deployment Assembly seemed like it might be getting in the way. When I took those natures and builders out of my .project so that it more closely matched the single-project version I'd been using previously the SLF4J errors went away, but only because my problems got more severe. Now a launch configuration (even a completely new one) starts up without errors or warnings, but then 404s on all requests, including for the project's simple HTML page, e.g.: [WARN] 404 - GET /Project.html?gwt.codesvr=127.0.0.1:9997 (127.0.0.1) 1395 bytes I still don't feel like I have much of a sense of why this would be happening and in what way this project is different from other GWT projects that I can still launch from Eclipse, which is frustrating. The multi-project nature of this doesn't seem to explain all my problems (although perhaps it does). The same project still launches successfully from a mvn gwt:run, so it's not entirely a lost cause, but I'd prefer the Google Plugin for Eclipse to work with it too. - Geoffrey-- Geoffrey Wiseman http://www.geoffreywiseman.ca/ -- 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/-/xZ4Ve-ZuQdAJ. To post to this group, send email to google-web-toolkit@googlegroups.com (mailto:google-web-toolkit@googlegroups.com). To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com (mailto: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: GWT-Bootstrap 2.0.4.0 was released
Hi all, i compile the project with mvn clean install -Pshocase. How do I start the application in hosted mode? Regards Giuseppe 2012/8/14 Juan Pablo Gardella gardellajuanpa...@gmail.com Thanks Great Work Ohashi 2012/8/13 Ohashi, Keisuke k-oha...@bfts.co.jp Hi all. Additional Information. gwt-bootstrap come on the maven central repository now. :-) http://search.maven.org/#artifactdetails%7Ccom.github.gwtbootstrap%7Cgwt-bootstrap%7C2.0.4.0%7Cjar Regards. -- keisuke oohashi -- You received 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. -- Giuseppe La Scaleia CNR - IMAA geoSDI Sviluppo Software C.da S. Loja 85050 Tito Scalo - POTENZA (PZ) Italia phone: +39 0971427305 fax: +39 0971 427271 mob:+39 3666373220 mail: giuseppe.lascal...@geosdi.org skype: glascaleia web: http://www.geosdi.org -- You received 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 let this Map be transferred by GWT-RPC correctly?
Thanks. I will follow the DTO way. It seems more safe for coding. 2012/8/15 Jens jens.nehlme...@gmail.com I guess the reason is that you return a raw Map. A raw Map means Map? extends Object, ? extends Object and GWT now has to check all possible sub classes of Object (= all classes) to see if they can be safely serialized. GWT then finds the serializable class PathImpl on the classpath and complaints about a final List variable inside that class (GWT-RPC can't serialize final fields yet I think). Also because you have used Map/List GWT has to generate JavaScript code to support serializing all implementation classes of Map/List even if you never use them. When you use GWT-RPC there is a rule very different from what you know from Java: Be as explicit as possible *(as long as it makes sense)* while defining your GWT-RPC methods. So instead of a raw Map use a parametrized HashMap or TreeMap. In your example its probably best to create a DTO class, e.g. class MyResult implements Serializable { ArrayListPost posts; TreeMapInteger, User users; } Now GWT will only validate MyResult, ArrayList, TreeMap, Integer, Post and User instead of every class on the classpath and the warning should disappear. Also only JS serialization code for ArrayList and TreeMap will be generated instead of code for all List and Map implementations. Being explicit only counts on GWT-RPC, so for everything else in your app you should use Map/List/Set. If your app grows and you plan to have RPC methods with all kinds of List/Map/Set implementations then you can of course use the Map/List/Set interface (because then you need serialization code for every implementation anyways) but you should still parametrize them. -- 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/-/s7IRJutPAVcJ. 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. -- Gong Min gongmin...@gmail.com -- You received 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-Bootstrap 2.0.4.0 was released
Hi Giuseppe. :) You can import project to ecilpse by running mvn clean eclipse:clean eclipse:eclipse -Pshowcase, if you use eclipse. or you can run hosted mode mvn gwt:run -Pshowcase, if you don't need use eclipse. -- keisuke oohashi a.k.a soundTricker -- You received 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.
[gwt-contrib] Re: Move GAE Auth functionality from Expenses over the MobileWebApp sample. (issue1806803)
When I patch this in and configure Eclipse as instructed in the README, I still get The RequestFactory ValidationTool must be run... error when I launch from Eclipse or mvn gwt:run. http://gwt-code-reviews.appspot.com/1806803/diff/1/samples/mobilewebapp/pom.xml File samples/mobilewebapp/pom.xml (right): http://gwt-code-reviews.appspot.com/1806803/diff/1/samples/mobilewebapp/pom.xml#newcode21 samples/mobilewebapp/pom.xml:21: gae.version1.5.3/gae.version Update to 1.7.0 to avoid GAE timezone error in earlier release http://gwt-code-reviews.appspot.com/1806803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fix a problem that popups don't close on iPads. (issue1810803)
Okay, you fixed autohide. They also mentioned that DialogBox can't be dragged. Does this change fix that problem too? http://gwt-code-reviews.appspot.com/1810803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Add role=presentation into textbox of FocusPanel. (issue1803804)
I'm not familiar with FocusPanel, but it looks like it's used by a variety of subclasses that need to accept keyboard input for various reasons. So I don't think this is a good idea in all cases. Perhaps FocusPanel needs a way to set the ARIA role and you should do this only for your app? http://gwt-code-reviews.appspot.com/1803804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fix a problem that popups don't close on iPads. (issue1810803)
LGTM http://gwt-code-reviews.appspot.com/1810803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Add role=presentation into textbox of FocusPanel. (issue1803804)
LGTM http://gwt-code-reviews.appspot.com/1803804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Add setComparator to allow custom sorting of candidates from search. (issue1807805)
On 2012/08/15 00:27:19, skybrian wrote: Looks good. I was wondering whether the sort would be slower, but I looked at the implementation and it's not using native sort() in any case. Let's wait until tomorrow to submit, to give people a chance to respond. LGTM Just adding a comparator shouldn't change whether it uses native sort, since the JS sort allows a comparator. I originally used a native sort + stability fixup pass, but it was a lot slower on IE than a merge sort which was already stable. This was before we had browser-specific implementations in the JRE (StringBuffer), so at some point it might be worth revisiting that and having the current implementation just for IE. Anyway, not really relevant to this change, since it would behave the same in either case. http://gwt-code-reviews.appspot.com/1807805/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors