Re: Develop UiBinder widgets??
Ok, that's it, my widget didn't implement HasWidgets. Thanks for your help! On Apr 18, 8:36 am, jocke eriksson jock...@gmail.com wrote: Some questions: Do you import the namespace where the widget is. Is your widget a container meaning does it implement has widgets. 2010/4/16 Toni tonin...@gmail.com Hi there, I'm trying to make my new composite widget work with UiBinder. It is a widget intended to contain, for instance, a label and an input field. I'd like to be able to add the input field of my choice via UiBinder: ... my:MyWidget g:TextBoxHey!/g:TextBox /my:MyWidget ... It throws unexpected widget: TextBox error. I've been looking the web for a UiBinder developer tutorial or so with no luck. Does it exist? Can anyone point out the basic steps to create a UiBinder widget? Cheers -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
How to add an image in a row of a PagingScrollTable
Hi, I implemented a PagingScrollTable in my project (I found a very good example here http://zenoconsulting.wikidot.com/blog:17) but now I have a problem which I do not know how to solve. My table is working as expected, but I want to add a new column which contains an delete icon, so that I can delete a table row. Does somebody know how to do that? Thanks for your help Here the code of my Table: public class ReceiverIfTrueTable extends Composite{ private static final int DEFAULT_PAGE_SIZE = 10; private CachedTableModelReceiverIfTrueWrapper cachedTableModel = null; private DefaultTableDefinitionReceiverIfTrueWrapper tableDefinition = null; private PagingScrollTableReceiverIfTrueWrapper pagingScrollTable = null; private Label countLabel = new Label(There are no messages to display.); private DataSourceTableModel tableModel = null; private VerticalPanel vPanel = new VerticalPanel(); private FlexTable flexTable = new FlexTable(); private Button addNewButton = new Button(add new); public ReceiverIfTrueTable() { pagingScrollTable = createScrollTable(); pagingScrollTable.setHeight(100%); PagingOptions pagingOptions = new PagingOptions(pagingScrollTable); flexTable.setWidget(0, 0, pagingScrollTable); flexTable.getFlexCellFormatter().setColSpan(0, 0, 2); flexTable.setWidget(1, 0, pagingOptions); flexTable.setWidget(2, 0, addNewButton); countLabel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER); vPanel.add(countLabel); vPanel.add(flexTable); vPanel.setWidth(100%); flexTable.setWidth(100%); super.initWidget(vPanel); } private PagingScrollTableReceiverIfTrueWrapper createScrollTable() { tableModel = new DataSourceTableModel(); cachedTableModel = createCachedTableModel(tableModel); TableDefinitionReceiverIfTrueWrapper tableDef = createTableDefinition(); PagingScrollTableReceiverIfTrueWrapper pagingScrollTable = new PagingScrollTableReceiverIfTrueWrapper(cachedTableModel, tableDef); pagingScrollTable.setPageSize(DEFAULT_PAGE_SIZE); pagingScrollTable.setScrollPolicy(ScrollPolicy.DISABLED); pagingScrollTable.setEmptyTableWidget(new HTML(There is no data to display)); pagingScrollTable.getDataTable().setSelectionPolicy(SelectionPolicy.ONE_ROW); FixedWidthGridBulkRendererReceiverIfTrueWrapper bulkRenderer = new FixedWidthGridBulkRendererReceiverIfTrueWrapper(pagingScrollTable.getDataTable(), pagingScrollTable); pagingScrollTable.setBulkRenderer(bulkRenderer); // setup the formatting pagingScrollTable.setCellPadding(3); pagingScrollTable.setCellSpacing(0); pagingScrollTable.setResizePolicy(ScrollTable.ResizePolicy.FILL_WIDTH); pagingScrollTable.setSortPolicy(SortPolicy.SINGLE_CELL); return pagingScrollTable; } private TableDefinitionReceiverIfTrueWrapper createTableDefinition() { tableDefinition = new DefaultTableDefinitionReceiverIfTrueWrapper(); // set the row renderer final String[] rowColors = new String[] { #DD, EE }; tableDefinition.setRowRenderer(new DefaultRowRendererReceiverIfTrueWrapper(rowColors)); //NumberId { NumberColumnDefinition columnDef = new NumberColumnDefinition(); columnDef.setColumnSortable(true); columnDef.setColumnTruncatable(false); columnDef.setPreferredColumnWidth(35); columnDef.setHeader(0, new HTML(Number)); columnDef.setHeaderCount(1); columnDef.setHeaderTruncatable(false); tableDefinition.addColumnDefinition(columnDef); } //Condition { ConditionColumnDefinition columnDef = new ConditionColumnDefinition(); columnDef.setColumnSortable(true); columnDef.setColumnTruncatable(false); columnDef.setPreferredColumnWidth(35); columnDef.setHeader(0, new HTML(Condition)); columnDef.setHeaderCount(1); columnDef.setHeaderTruncatable(false); tableDefinition.addColumnDefinition(columnDef); } //ReceiverId { ReceiversColumnDefinition columnDef = new ReceiversColumnDefinition();
Re: GWT useful for HTML Parsing? Is it fast enough
On Apr 19, 2:09 am, Chris Lercher cl_for_mail...@gmx.net wrote: Hi Thomas, I agree. I just don't see any advantage for GWT in this case. So I'd say, that using it only makes sense, if there are other reasons, which weren't expressed in the question. By the way, GWT uses NekoHTML, too (it's in gwt-dev.jar). Why do you prefer the HTML parser you mentioned? Because it implements the HTML5 parsing rules, algorithm that has been written to predictably parse web pages as found in the wild, with results that are as close as possible as what browsers do today (when they disagree, a choice had to be done obviously), and which browsers are implementing today for their next version. Moreover, this particular implementation is AFAIK the on that ships in Firefox (not as the default parser for now, but will be soon), after being translated to C++ (by a script); it is also the one used to back the HTML5 validator at validator.nu and validator.w3.org. So I tend to believe its results more than any other tag soup parser. (oh, and for the story htmlparser.validator.nu has successfully been compiled with GWT! ;-) ) BTW, GWT doesn't use neko, it uses HTMLUnit (which happens to use NekoHTML as its parser). -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
JSNI: No-body native methods to refer to existing methods in JavaScript object
Hi, I am trying to map existing JavaScript 'classes' in the document to client-side Java classes. Take this example JS 'class': Alerter = function() { this.alert = function(msg) { alert(msg); }; }; Mapping this to a client-side Java class currently means: class Alerter extends JavaScriptObject { public static final native Alerter create() /*-{ return { impl: new Alerter() }; }-*/ public final native void alert(String msg) { this.impl.alert(msg); // or for repeatability: return this.impl.alert.apply(this, arguments); } } I feel it should be possible to do this in Java: (...) public static final native Alerter create() /*-{ return new Alerter(); }-*/ public final native void alert(String msg); (...) This directly maps the Java declaration to the JavaScript implementation. I hope this example made sense. If you think my abstraction attempt is ridiculous or I could approach this in another way or this is the single most awesome idea ever, please respond. Reinier -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Paging Scroll Table in GWT 2.0.x?
Hi, I basically thave the same question as already asked here, but for the current version of gwt: http://groups.google.com/group/google-web-toolkit/browse_thread/thread/610a20088c153898/c083bb973cf44f32 Is the PST still maintained for gwt 2.0.x? Would you recommend to use it or are there other alternatives you'd suggest? thanks a lot, Dennis -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT useful for HTML Parsing? Is it fast enough
Thanks, very interesting. I set a bookmark. On Apr 19, 11:05 am, Thomas Broyer t.bro...@gmail.com wrote: Because it implements the HTML5 parsing rules, algorithm that has been written to predictably parse web pages as found in the wild, with results that are as close as possible as what browsers do today (when they disagree, a choice had to be done obviously), and which browsers are implementing today for their next version. Moreover, this particular implementation is AFAIK the on that ships in Firefox (not as the default parser for now, but will be soon), after being translated to C++ (by a script); it is also the one used to back the HTML5 validator at validator.nu and validator.w3.org. So I tend to believe its results more than any other tag soup parser. (oh, and for the story htmlparser.validator.nu has successfully been compiled with GWT! ;-) ) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT presentation/workshop
Hi All, If you really have nothing to do, have a look at this GWT presentation: http://www.slideshare.net/edbras/all-about-gwt I made it to give GWT presentations/workshops here in Holland (it's in English). Maybe it can be useful to you, Ed -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Help me in understanding Binding Concept
Hi All, Can some one please help me in understanding the concept of Binding and how is it related to GWT. Please provide me some links in this regard. and why is it required what are differnt types of binding. Thanks Sri -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Maven, again
I'm currently working on a sample app for my GWT logging framework and it uses Maven. http://github.com/derjan1982/slf4gwt/tree/master/samples/ It might be an example setup for you, allthough it's not finished yet. I'm using m2eclipse for development and everything works, except I've to enable GWT support on my projects ( http://www.ducktools.org/2010/04/gwt-eclipse-tomcat.html) manually. Regards Jan Ehrhardt 2010/4/19 Subhrajyoti Moitra subhrajyo...@gmail.com try this http://mojo.codehaus.org/gwt-maven-plugin/ On Sun, Apr 18, 2010 at 11:25 PM, Steve steveahlst...@gmail.com wrote: I'm getting very frustrated -- reading dozens of messages, faqs, whatever I can find on the subject, but I haven't found all the info I need in one place and haven't been able to piece it all together ... maybe I just missed it, but hopefully someone here can help. What I'd like to do ... Create a GWT project, use Maven instead of Ant to build. Be able to debug in DevMode, be able to mvn package and manually deploy my war to a container. Using Eclipse (3.5.2), m2eclipse, GPE 1.3.2 -- what do I need to do? What is the directory structure I need? Is there a maven archetype to create the directory structure? I tried the MavenAppRpc project. I was successful in building it and deploying the war to Tomcat. However, I could never get it to work in DevMode. Is there a 1-2-3 type tutorial available that can get me started? Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Maven, again
I'm using gwt-maven-plugin and I works very well. To add the Google project nature to the project you need to configure your maven-eclipse-plugin like this: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-eclipse-plugin/artifactId version${maven.eclipse.plugin.version}/version configuration /additionalConfig additionalProjectnatures projectnaturecom.google.gwt.eclipse.core.gwtNature/ projectnature /additionalProjectnatures additionalBuildcommands buildcommandcom.google.gwt.eclipse.core.gwtProjectValidator/ buildcommand /additionalBuildcommands /configuration /plugin Regards, Michael On 19 avr, 12:45, Jan Ehrhardt jan.ehrha...@googlemail.com wrote: I'm currently working on a sample app for my GWT logging framework and it uses Maven. http://github.com/derjan1982/slf4gwt/tree/master/samples/ It might be an example setup for you, allthough it's not finished yet. I'm using m2eclipse for development and everything works, except I've to enable GWT support on my projects (http://www.ducktools.org/2010/04/gwt-eclipse-tomcat.html) manually. Regards Jan Ehrhardt 2010/4/19 Subhrajyoti Moitra subhrajyo...@gmail.com try this http://mojo.codehaus.org/gwt-maven-plugin/ On Sun, Apr 18, 2010 at 11:25 PM, Steve steveahlst...@gmail.com wrote: I'm getting very frustrated -- reading dozens of messages, faqs, whatever I can find on the subject, but I haven't found all the info I need in one place and haven't been able to piece it all together ... maybe I just missed it, but hopefully someone here can help. What I'd like to do ... Create a GWT project, use Maven instead of Ant to build. Be able to debug in DevMode, be able to mvn package and manually deploy my war to a container. Using Eclipse (3.5.2), m2eclipse, GPE 1.3.2 -- what do I need to do? What is the directory structure I need? Is there a maven archetype to create the directory structure? I tried the MavenAppRpc project. I was successful in building it and deploying the war to Tomcat. However, I could never get it to work in DevMode. Is there a 1-2-3 type tutorial available that can get me started? Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Image.setUrl / load event / onLoad / LoadHandler / LoadEvent
Hi, I've got a question about the Image onLoad mechanism in GWT 2.0.3 - I was setting the url of the Image with setUrl(String) call and no LoadEvent was being fired, which confused me as, according to the javadoc the setUrl method... Sets the URL of the image to be displayed. If the image is in the clipped state, a call to this method will cause a transition of the image to the unclipped state. Regardless of whether or not the image is in the clipped or unclipped state, a load event will be fired. After a while I worked out that because the Image wasn't actually displayed on the screen (I wanted to load it first to work out its dimensions and then display it), the call to setUrl - although it did retrieve the image from the server (according to the net panel in firebug) - didn't fire the LoadEvent. My question is this, is this a bug in GWT or should the documentation be a bit more explicit about when the LoadEvent is fired? Or... am I just being unreasonably fastidious. Cheers Simon -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Using Oracle and Hibernate in Google Web Toolkit's Hosted Mode.
Hello, I need to know if anyone is able to query the database for fetching data. This is a common requirement for most of the applications to use database.If Hosted Mode doesnt support it then how are the users of GWT developing ? Do let me know !! I get an exception while connecting to database using JDBC below is the trace of it. java.lang.NoClassDefFoundError: java.lang.management.ManagementFactory is a restricted class. Please see the Google App Engine developer's guide for more details. at com.google.appengine.tools.development.agent.runtime.Runtime.reject(Runtime.java: 51) at oracle.jdbc.driver.OracleDriver.registerMBeans(OracleDriver.java:270) at oracle.jdbc.driver.OracleDriver$1.run(OracleDriver.java:213) at java.security.AccessController.doPrivileged(Native Method) Thanks! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Using Oracle and Hibernate in Google Web Toolkit's Hosted Mode.
Disable Google App Engine in your eclipse settings. GAE does not allow you to use databases or open network connections. --Sri On 19 April 2010 17:59, keyboard_samurai yog...@gmail.com wrote: Hello, I need to know if anyone is able to query the database for fetching data. This is a common requirement for most of the applications to use database.If Hosted Mode doesnt support it then how are the users of GWT developing ? Do let me know !! I get an exception while connecting to database using JDBC below is the trace of it. java.lang.NoClassDefFoundError: java.lang.management.ManagementFactory is a restricted class. Please see the Google App Engine developer's guide for more details. at com.google.appengine.tools.development.agent.runtime.Runtime.reject(Runtime.java: 51) at oracle.jdbc.driver.OracleDriver.registerMBeans(OracleDriver.java:270) at oracle.jdbc.driver.OracleDriver$1.run(OracleDriver.java:213) at java.security.AccessController.doPrivileged(Native Method) Thanks! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Transferring an image over an PRC call
Yes, that is exactly what I did and it works now, thank you. On Sun, Apr 18, 2010 at 10:51 PM, Trevis trevistho...@gmail.com wrote: Is your goal to show the image in an img tag in the web browser? I have user uploadable images on my gwt website and to present the images to users i use an http servlet. I have an img tag rendered in the client that references the image from the servlet. Since my images are saved in the DB, the image servlet processes the users request, finds the image that they are requesting and renders the file to the output stream. Pretty much all you need to do is configure the content type on the response. On Apr 15, 9:48 am, Ahmet ahmet.terzio...@gmail.com wrote: Hi everyone, My application has an upload file feature and allow users to upload image files to the server using an httpServlet. That part works fine, the file gets uploaded and placed in the WEB-INF folder (I don't want public access), required url and other info is filled into the database using Hibernate. The problem is when I want to retrieve the image on the client side. My user pojo knows the url of its image, but I can't instantiate an Image object and send it over an RPC call since it is not serializable. I decided to transform the image file, a jpg, into a byte[] on the server side and then transfer the byte[] over the RPC call, however, I it doesn't work. I get no errors on the server side, the RPC call returns, but my client reports a failure: SEVERE: Exception while dispatching incoming RPC call java.lang.RuntimeException: java.lang.ClassCastException: [B cannot be cast to [Ljava.lang.Object; My service code: public byte[] getImageByUrl(String url) { ByteArrayOutputStream baos = new ByteArrayOutputStream(); try{ File file = new File(url); ObjectOutputStream oos = new ObjectOutputStream(baos); oos.writeObject(file); }catch(Exception ioe){ ioe.getMessage(); } return baos.toByteArray(); } My client code: service.getImageByUrl(url, new AsyncCallbackbyte[]() { @Override public void onFailure(Throwable arg0) { log(getImageByUrl failed); log(arg0.getMessage()); } @Override public void onSuccess(byte[] arg0) { //reconstruct file } } I send a byte[] and recieve a byte[], I checked the contents of the array from the server side, it is not null and gets returned, however the client side can not accept it... Why can this be ? I have done some research and it seems like using an httpServlet is better than using an RPC call when making a binary data transfer, therefore I am inclined to using the httpServlet for downloading the image, however what I ultimately achive is not having to save the file on my client side to access its content. Is it possible to transfer the Image object over the httpServlet to dynamically use it as it is recieved on the client side ? I am not sure about using data://url s as they are not supported by all browsers, but seems as the simplest solution. Thank you for your opinions.. Regards, Ahmet -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group athttp:// groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
testing user clicks
Hi, I want to unit test what happens when user clicks on button in GWT 2.0 Button has click method but calling it click handlers do not run. Is there any way to simulate user clicks in UI? Regards, Vitaliy S -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
how to send data to google app engine datastore api
Hi, i look at the samples created by GWT and Google App Engine. all the samples about getting the data from google app engine datastore api. is there any example which sends the data to Google App Engine Data Store Api ?. For example a save button(in GWT) which saves data to the database of Google App Engine. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT presentation/workshop
Thx i really like it :) Greets Nino 2010/4/19 Ed post2edb...@hotmail.com Hi All, If you really have nothing to do, have a look at this GWT presentation: http://www.slideshare.net/edbras/all-about-gwt I made it to give GWT presentations/workshops here in Holland (it's in English). Maybe it can be useful to you, Ed -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT presentation/workshop
I am happy that you liked it :) Thanks for the feedback -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT presentation/workshop
Hi Ed, I just saw the entire presentation, thanks, it was really useful. - Abdullah On Mon, Apr 19, 2010 at 3:46 PM, Ed post2edb...@hotmail.com wrote: Hi All, If you really have nothing to do, have a look at this GWT presentation: http://www.slideshare.net/edbras/all-about-gwt I made it to give GWT presentations/workshops here in Holland (it's in English). Maybe it can be useful to you, Ed -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Developer Plugin is not found in Firefox
I am also getting this behavior. The plugin acts as if it weren't installed. Did you figure it out, Michel? On Apr 9, 11:35 pm, Michel Alexandre Salim michel.sa...@informatik.uni-erlangen.de wrote: On Apr 2, 7:43 pm, Christopher Conroy con...@google.com wrote: On Fri, Apr 2, 2010 at 7:38 AM, na...@hu.inter.net na...@hu.inter.net wrote: I see 'Google Web Toolkit Developer Plugin forFirefox1.0.7511' in Firefoxin 'Tools/Add-ons/Extensions', but if I start 'http:// 127.0.0.1:/MyWebApp.html?gwt.codesvr=127.0.0.1:9997' I got always the message 'Development Mode requires the Google Web Toolkit Developer Plugin' andFirefoxwants to download the plugin again. What can be wrong? Do you perhaps have the plugin installed but disabled? Per my previous message (still pending moderation), here are my findings: - Development mode does not work in Firefox 3.6.3: -- from the system-provided RPM as well as a manual installation of Firefox from mozilla.org -- using Eclipse or using the webAppCreator script - The war target works fine on the same Firefox installation, but this is really unsuitable during development as the compile-deploy-test cycle is too long Thanks, -- Michel Alexandre Salim -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT developer plugin for chrome under linux
Is google planning to release GWT developer plugin for Chrome under Linux (I am actually using Chromium)? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
session.setAttribute in GWT
Hi we had a problem setting the user attribute into the session: if you want to use for Session support, ENABLE it in the appengine- web.xml. to enable sessions, put sessions-enabledtrue/sessions-enabled in that file. Without it, getSession() is allowed, but manipulation of sessionattributes is not. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT plugin for eclipse install problem
I saw a few other posts related to this but nothing that would solve my problem. I'm just trying to setup the GWT plugin for eclipse 3.5, following the instructions at: http://code.google.com/eclipse/docs/getting_started.html http://code.google.com/eclipse/docs/install-eclipse-3.5.html The plugin is downloaded and seems to install successfully but when eclipse restarts I don't see the File New Web Application Project option in the eclipse menu. I also tried manually installing WST even though I think it was already installed, but that made no difference. I've tried with eclipse 3.5 IDE for java EE and with the standard eclipse 3.5 IDE for java, nothing works. I'm running under windows 7 64-bit, although I don't think that should matter. Any help would be appreciated. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Best CSS practice for complex GWT Widgets using UiBinder
Hi, I did some searching but couldn't anything about this subject. I'm using the SuggestBox widget and I'd like to change the layout for elements in a SuggestBox. For example I can change the .gwt-SuggestBox by adding addStyleNames but that only changes .gwt-SuggestBox but how do I change the sub elements like .gwt-SuggestBoxPopup .item? Is this possible at all using UiBinder? Kind regards, Roland -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: ScrollPanel Problem
Marco, would you be kind enough to share you solution? I just ran into the same thing. Thank you. Karl On Apr 14, 11:59 pm, Marco Gadaleta gadaleta.ma...@gmail.com wrote: But i have find a solution :-) 2010/4/14 Patou patou.de.saint.ste...@gmail.com It's not possible to use a scroll Panel in Mobile navigator (Android and Iphone). You can just scroll on all the page (like a zoom tools) but not inside the page. Patrice On Apr 6, 3:03 pm, gadaleta.marco gadaleta.ma...@gmail.com wrote: Hi, I'm developing an application using gwt and gears and i test it on android. But if i use a ScrollPanel element, it doesn't run on android. How i can resolve this problem? Thx, Marco -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Marco -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Crawlable AJAX - jQuery Load
I've been reading the Making AJAX Applications Crawlable specs (http://code.google.com/intl/sv-SE/web/ajaxcrawling/docs/getting- started.html) and I'm at a loss at how to apply this to my application. I use jQuery to load an HTML page fragment into a DOM element on a mostly pure HTML page. It takes a few seconds for the 'results' page fragment to load from my server, this is why I use AJAX to dynamically load that content into the static page. Meanwhile the static page shows a 'throbber' and loading message. How exactly do I apply these specs in this scenario? I don't use the hash mark in my URLs. The page in question can be seen here: http://friendorfollow.com/dustyreagan/following/ Any pointers or recommendations on how to make the results crawlable? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GTW generators for XML
Hello, I am using GWT annotations and generators and I need to create an XML output beside the Class output, How can I do it? salu2... masch... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
gwtUpload : problem with servlet
Hello , when i upload my application , error in the log Caused by: java.lang.ClassNotFoundException: gwtupload.server.UploadAction SampleUploadServlet.java : package miro.server; import java.util.List; import javax.servlet.http.HttpServletRequest; import org.apache.commons.fileupload.FileItem; import gwtupload.server.UploadAction; import gwtupload.server.exceptions.UploadActionException; public class SampleUploadServlet extends UploadAction{ @Override public String executeAction(HttpServletRequest request, ListFileItem sessionFiles) throws UploadActionException { return ; } } web.xml : web-app !-- Servlets -- !-- greetServlet -- servlet servlet-namegreetServlet/servlet-name servlet-classmiro.server.GreetingServiceImpl/servlet-class /servlet !-- greetServlet -- !-- /mirov2/greet -- servlet-mapping servlet-namegreetServlet/servlet-name url-pattern/mirov2/greetingService/url-pattern /servlet-mapping context-param param-namemaxSize/param-name param-value3145728/param-value /context-param context-param param-nameslowUploads/param-name param-valuetrue/param-value /context-param servlet servlet-nameuploadServlet/servlet-name servlet-classmiro.server.SampleUploadServlet/servlet-class /servlet servlet-mapping servlet-nameuploadServlet/servlet-name url-pattern*.mail/url-pattern /servlet-mapping !-- Default page to serve -- welcome-file-list welcome-fileMiroV2.html/welcome-file /welcome-file-list /web-app thanks for your request -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Using Oracle and Hibernate in Google Web Toolkit's Hosted Mode.
Then do you replace tomcat with GAE ? i want to have the benefits of Hosted mode i.e auto compile and debug ??? On Apr 19, 5:32 pm, Sripathi Krishnan sripathikrish...@gmail.com wrote: Disable Google App Engine in your eclipse settings. GAE does not allow you to use databases or open network connections. --Sri On 19 April 2010 17:59, keyboard_samurai yog...@gmail.com wrote: Hello, I need to know if anyone is able to query the database for fetching data. This is a common requirement for most of the applications to use database.If Hosted Mode doesnt support it then how are the users of GWT developing ? Do let me know !! I get an exception while connecting to database using JDBC below is the trace of it. java.lang.NoClassDefFoundError: java.lang.management.ManagementFactory is a restricted class. Please see the Google App Engine developer's guide for more details. at com.google.appengine.tools.development.agent.runtime.Runtime.reject(Runtime.java: 51) at oracle.jdbc.driver.OracleDriver.registerMBeans(OracleDriver.java:270) at oracle.jdbc.driver.OracleDriver$1.run(OracleDriver.java:213) at java.security.AccessController.doPrivileged(Native Method) Thanks! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Help me in understanding Binding Concept
Are you referring to Deferred Binding (http://code.google.com/ webtoolkit/doc/1.6/FAQ_Client.html#Deferred_Binding), or Beans Binding (https://beansbinding.dev.java.net/) They are two very different concepts. On Apr 19, 4:26 am, sridevi macherla sridevimache...@gmail.com wrote: Hi All, Can some one please help me in understanding the concept of Binding and how is it related to GWT. Please provide me some links in this regard. and why is it required what are differnt types of binding. Thanks Sri -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Image.setUrl / load event / onLoad / LoadHandler / LoadEvent
I don't think that's a bug at all. The image is not loaded until it is in the DOM, and that does not happen when the servlet is called, but after the image is returned. My application a lot with resizing and otherwise manipulating images. I pass the available display dimensions to my image servlet, and use JAI and JAI-IMAGEIO to open the image, determine its size, scale it to fit the display area, and return the scaled and/or cropped/rotated image as a PNG to the browser. On Apr 19, 7:48 am, Simon Botting simon.bott...@enbuenosaires.com wrote: Hi, I've got a question about the Image onLoad mechanism in GWT 2.0.3 - I was setting the url of the Image with setUrl(String) call and no LoadEvent was being fired, which confused me as, according to the javadoc the setUrl method... Sets the URL of the image to be displayed. If the image is in the clipped state, a call to this method will cause a transition of the image to the unclipped state. Regardless of whether or not the image is in the clipped or unclipped state, a load event will be fired. After a while I worked out that because the Image wasn't actually displayed on the screen (I wanted to load it first to work out its dimensions and then display it), the call to setUrl - although it did retrieve the image from the server (according to the net panel in firebug) - didn't fire the LoadEvent. My question is this, is this a bug in GWT or should the documentation be a bit more explicit about when the LoadEvent is fired? Or... am I just being unreasonably fastidious. Cheers Simon -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Spring MVC with GWT RPC
Any pointers for identifying what could be the problem? On Apr 18, 7:26 pm, keyboard_samurai yog...@gmail.com wrote: Also i see a alertbox by the browser that This page is accessing information that is not under its control. This poses a security risk. Do you want to continue ? This is the only thing which seems different that the local environment. I don't get this alert msg in local environment. Please advice how do i remove this as well... Regards, -Yogesh On Apr 18, 6:00 pm, keyboard_samurai yog...@gmail.com wrote: Hi, I am using GWT RPC with Spring MVC.. the integration details is similar as described @http://technophiliac.wordpress.com/2008/08/24/giving-gwt-a-spring-in- The integration works fine when deployed and tested on local servers. When we deploy the war on an enterprise environment with SSO we face a null pointer exception. The application unlike in the development mode opens in a popup within a frame (This frame cannot be removed). Below is the exception that we get ... SEVERE: Exception while dispatching incoming RPC call java.lang.NullPointerException at javax.servlet.GenericServlet.getServletName(GenericServlet.java:322) at javax.servlet.GenericServlet.log(GenericServlet.java:277) at com.google.gwt.user.server.rpc.RemoteServiceServlet.doGetSerializationPolicy(RemoteServiceServlet.java: 219) at com.google.gwt.user.server.rpc.RemoteServiceServlet.getSerializationPolicy(RemoteServiceServlet.java: 117) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.prepareToRead(ServerSerializationStreamReader.java: 429) at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java: 234) at com.test.server.generic.controller.GWTRPCController.processCall(GWTRPCController.java: 94) at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java: 86) at com.test.server.generic.controller.GWTRPCController.handleRequest(GWTRPCController.java: 63) at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java: 48) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java: 875) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java: 807) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java: 571) at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java: 511) at javax.servlet.http.HttpServlet.service(HttpServlet.java: 637) at javax.servlet.http.HttpServlet.service(HttpServlet.java: 717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: 290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java: 206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 219) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java: 191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java: 128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java: 102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java: 109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java: 293) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java: 698) at org.apache.jk.common.ChannelSocket $SocketConnection.runIt(ChannelSocket.java:891) at org.apache.tomcat.util.threads.ThreadPool $ControlRunnable.run(ThreadPool.java:690) at java.lang.Thread.run(Thread.java:619) The code use for marshalling and unmarshalling of the RPC request and response is .. RPCRequest rpcRequest = RPC.decodeRequest(payload, this.remoteServiceClass, this); return RPC.invokeAndEncodeResponse(this.remoteService, rpcRequest .getMethod(), rpcRequest.getParameters(),rpcRequest.getSerializationPolicy()); Please let me know if incase anyone has faced this issue before. This approach seems to be working when i deploy it on my local tomcat but creates a issue on enterprise environment with SSO (Siteminder) Thanks in advance! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To
Re: Rolebased authorisation in GWT
To optimize without the overhead of deferred binding, you might explore using the GWT.runAsync() method. On Apr 16, 10:47 am, Sripathi Krishnan sripathikrish...@gmail.com wrote: To easily hide/disable things from the user if he doesn't have access, we created a custom class 'SecurePanel' Assuming you are using uibinder, we then have something like this in our ui.xml my:SecurePanel *role=admin* h2Secure Page/h2 gwt:Button ui:field=mySecureButton text=My very secret button/gwt:Button /my:SecurePanel Whatever is in SecurePanel will then show up only if the current logged in user is an admin (meaning it will still be there in JS/HTML code, but just hidden). SecurePanel just extends HTMLPanel and has a setRole() method. In the setRole() method, you just call this.setVisible(false) if the user doesn't have the right role. In this case, we assume that role/access information is global information accessible to SecurePanel. This makes our lives pretty easy - no messy if / else in java code. --Sri On 16 April 2010 20:29, sven sven.schle...@googlemail.com wrote: Thx for your quick response. Of course the server shouldn't allow operations that the user isn't allowed to. I just wanted to know if it's possible to serve the browser only the code he is allowed to see. But you're right, even if an attacker can see methods it would be useless for him as long as the execution of functions is only allowed for certain roles or users. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: session.setAttribute in GWT
This is not an gwt question. Are you talking about Appengine? If so, session attributes are allowed. But they must be Serializables. 2010/4/18 davids dudishe...@gmail.com Hi we had a problem setting the user attribute into the session: if you want to use for Session support, ENABLE it in the appengine- web.xml. to enable sessions, put sessions-enabledtrue/sessions-enabled in that file. Without it, getSession() is allowed, but manipulation of sessionattributes is not. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: gwtUpload : problem with servlet
On Apr 19, 4:48 pm, laurent bagno_laur...@hotmail.com wrote: Hello , when i upload my application , error in the log Caused by: java.lang.ClassNotFoundException: gwtupload.server.UploadAction Did you add the GWTUpload JAR into your war/WEB-INF/lib folder? (along with commons-fileupload and other dependencies) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Best CSS practice for complex GWT Widgets using UiBinder
On Apr 19, 8:54 am, Roland Bali roland.b...@gmail.com wrote: Hi, I did some searching but couldn't anything about this subject. I'm using the SuggestBox widget and I'd like to change the layout for elements in a SuggestBox. For example I can change the .gwt-SuggestBox by adding addStyleNames but that only changes .gwt-SuggestBox but how do I change the sub elements like .gwt-SuggestBoxPopup .item? You can use setPopupStyleName to replace gwt-SuggestBoxPopup with the class name of your choice. Is this possible at all using UiBinder? g:SuggestBox popupStyleName=my-CustomSuggestBoxPopup ... / -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT presentation/workshop
do you have sample template project. presentation is really good. On Mon, Apr 19, 2010 at 7:11 AM, Abdullah Shaikh abdullah.shaik...@gmail.com wrote: Hi Ed, I just saw the entire presentation, thanks, it was really useful. - Abdullah On Mon, Apr 19, 2010 at 3:46 PM, Ed post2edb...@hotmail.com wrote: Hi All, If you really have nothing to do, have a look at this GWT presentation: http://www.slideshare.net/edbras/all-about-gwt I made it to give GWT presentations/workshops here in Holland (it's in English). Maybe it can be useful to you, Ed -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Compilation Error
Hi Rajeev, I don't see JDT appearing on the build path. Let me know your suggestions for the next step. Thanks, Rahul On Apr 16, 10:28 am, Rajeev Dayal rda...@google.com wrote: Hm, I'm wondering if there is some sort of issue with multiple versions of JDT appearing on the classpath. Does Drools utilize JDT? What does your build path look like? On Thu, Apr 15, 2010 at 5:00 PM, rxm0203 rxm0...@gmail.com wrote: I hope this is the correct mailing list for the question. We are working on Custom Business Rules designer for our application suite. We are going to customize Drools Guvnor user interface as per our requirements. I checked out latest Drools Guvnor source code from SVN. I am trying to compile and build source code. I am using Eclipse 3.5 for EE and latest GWT Eclipse plug in. However, Drools Guvnor fails to compile when I click GWT plug in button from Eclipse menu bar. Here is an error log from GWT console. Compiling module org.drools.guvnor.Guvnor [ERROR] Unexpected java.lang.NoSuchFieldError: reportUnusedDeclaredThrownExceptionIncludeDocCommentReference at com.google.gwt.dev.javac.JdtCompiler.getCompilerOptions(JdtCompiler.java: 310) at com.google.gwt.dev.javac.JdtCompiler $CompilerImpl.init(JdtCompiler.java:148) at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java: 466) at com.google.gwt.dev.javac.CompilationStateBuilder $CompileMoreLater.compile(CompilationStateBuilder.java:142) at com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java: 281) at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java: 182) at com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java: 280) at com.google.gwt.dev.Precompile.precompile(Precompile.java:502) at com.google.gwt.dev.Precompile.precompile(Precompile.java:414) at com.google.gwt.dev.Compiler.run(Compiler.java:201) at com.google.gwt.dev.Compiler$1.run(Compiler.java:152) at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:87) at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java: 81) at com.google.gwt.dev.Compiler.main(Compiler.java:159) Does anyone has resolution to the issue? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Using Oracle and Hibernate in Google Web Toolkit's Hosted Mode.
You will get that with just GWT. On Mon, Apr 19, 2010 at 9:55 AM, keyboard_samurai yog...@gmail.com wrote: Then do you replace tomcat with GAE ? i want to have the benefits of Hosted mode i.e auto compile and debug ??? On Apr 19, 5:32 pm, Sripathi Krishnan sripathikrish...@gmail.com wrote: Disable Google App Engine in your eclipse settings. GAE does not allow you to use databases or open network connections. --Sri On 19 April 2010 17:59, keyboard_samurai yog...@gmail.com wrote: Hello, I need to know if anyone is able to query the database for fetching data. This is a common requirement for most of the applications to use database.If Hosted Mode doesnt support it then how are the users of GWT developing ? Do let me know !! I get an exception while connecting to database using JDBC below is the trace of it. java.lang.NoClassDefFoundError: java.lang.management.ManagementFactory is a restricted class. Please see the Google App Engine developer's guide for more details. at com.google.appengine.tools.development.agent.runtime.Runtime.reject(Runtime.java: 51) at oracle.jdbc.driver.OracleDriver.registerMBeans(OracleDriver.java:270) at oracle.jdbc.driver.OracleDriver$1.run(OracleDriver.java:213) at java.security.AccessController.doPrivileged(Native Method) Thanks! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group athttp:// groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: JSNI: No-body native methods to refer to existing methods in JavaScript object
On Apr 19, 11:34 am, Reinier Kip reinier@gmail.com wrote: Hi, I am trying to map existing JavaScript 'classes' in the document to client-side Java classes. Take this example JS 'class': Alerter = function() { this.alert = function(msg) { alert(msg); }; }; Mapping this to a client-side Java class currently means: class Alerter extends JavaScriptObject { public static final native Alerter create() /*-{ return { impl: new Alerter() }; }-*/ You have to write $wnd.Alerter() (unless you only have to support the xs linker), and why storing it in a property (impl) of an otherwise useless object? public final native void alert(String msg) { this.impl.alert(msg); // or for repeatability: return this.impl.alert.apply(this, arguments); } } I feel it should be possible to do this in Java: (...) public static final native Alerter create() /*-{ return new Alerter();}-*/ public final native void alert(String msg); (...) This directly maps the Java declaration to the JavaScript implementation. Apart from the direct mapping, this is already possible (using native void alert(String msg) /*-{ this.alert(msg); }-*/; ) AFAICT, this direct mapping was part of the original design but no- one took the time to implement it, as it's just syntactic sugar (and the Google Plugin for Eclipse will now autocomplete it for you!) See: http://code.google.com/p/gwt-api-interop/ which I believe heavily inspired the current design of JSOs in GWT proper. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Spring MVC with GWT RPC
The issue was somehow the init(ServletConfig) was not getting called... I made the controller ServletConfigAware and manually gave a call to super.init(config) and that worked ... On Apr 18, 7:26 pm, keyboard_samurai yog...@gmail.com wrote: Also i see a alertbox by the browser that This page is accessing information that is not under its control. This poses a security risk. Do you want to continue ? This is the only thing which seems different that the local environment. I don't get this alert msg in local environment. Please advice how do i remove this as well... Regards, -Yogesh On Apr 18, 6:00 pm, keyboard_samurai yog...@gmail.com wrote: Hi, I am using GWT RPC with Spring MVC.. the integration details is similar as described @http://technophiliac.wordpress.com/2008/08/24/giving-gwt-a-spring-in- The integration works fine when deployed and tested on local servers. When we deploy the war on an enterprise environment with SSO we face a null pointer exception. The application unlike in the development mode opens in a popup within a frame (This frame cannot be removed). Below is the exception that we get ... SEVERE: Exception while dispatching incoming RPC call java.lang.NullPointerException at javax.servlet.GenericServlet.getServletName(GenericServlet.java:322) at javax.servlet.GenericServlet.log(GenericServlet.java:277) at com.google.gwt.user.server.rpc.RemoteServiceServlet.doGetSerializationPolicy(RemoteServiceServlet.java: 219) at com.google.gwt.user.server.rpc.RemoteServiceServlet.getSerializationPolicy(RemoteServiceServlet.java: 117) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.prepareToRead(ServerSerializationStreamReader.java: 429) at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java: 234) at com.test.server.generic.controller.GWTRPCController.processCall(GWTRPCController.java: 94) at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java: 86) at com.test.server.generic.controller.GWTRPCController.handleRequest(GWTRPCController.java: 63) at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java: 48) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java: 875) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java: 807) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java: 571) at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java: 511) at javax.servlet.http.HttpServlet.service(HttpServlet.java: 637) at javax.servlet.http.HttpServlet.service(HttpServlet.java: 717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: 290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java: 206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 219) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java: 191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java: 128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java: 102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java: 109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java: 293) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java: 698) at org.apache.jk.common.ChannelSocket $SocketConnection.runIt(ChannelSocket.java:891) at org.apache.tomcat.util.threads.ThreadPool $ControlRunnable.run(ThreadPool.java:690) at java.lang.Thread.run(Thread.java:619) The code use for marshalling and unmarshalling of the RPC request and response is .. RPCRequest rpcRequest = RPC.decodeRequest(payload, this.remoteServiceClass, this); return RPC.invokeAndEncodeResponse(this.remoteService, rpcRequest .getMethod(), rpcRequest.getParameters(),rpcRequest.getSerializationPolicy()); Please let me know if incase anyone has faced this issue before. This approach seems to be working when i deploy it on my local tomcat but creates a issue on enterprise environment with SSO (Siteminder) Thanks in advance! -- You received this message because you are subscribed to the
Re: Using Oracle and Hibernate in Google Web Toolkit's Hosted Mode.
awesome do we have a article how to get this done ??? and also does it gets integrated with eclipse ? Regards, -Yogesh On Apr 19, 8:45 pm, Jason Hatton jashat...@gmail.com wrote: You will get that with just GWT. On Mon, Apr 19, 2010 at 9:55 AM, keyboard_samurai yog...@gmail.com wrote: Then do you replace tomcat with GAE ? i want to have the benefits of Hosted mode i.e auto compile and debug ??? On Apr 19, 5:32 pm, Sripathi Krishnan sripathikrish...@gmail.com wrote: Disable Google App Engine in your eclipse settings. GAE does not allow you to use databases or open network connections. --Sri On 19 April 2010 17:59, keyboard_samurai yog...@gmail.com wrote: Hello, I need to know if anyone is able to query the database for fetching data. This is a common requirement for most of the applications to use database.If Hosted Mode doesnt support it then how are the users of GWT developing ? Do let me know !! I get an exception while connecting to database using JDBC below is the trace of it. java.lang.NoClassDefFoundError: java.lang.management.ManagementFactory is a restricted class. Please see the Google App Engine developer's guide for more details. at com.google.appengine.tools.development.agent.runtime.Runtime.reject(Runtime.java: 51) at oracle.jdbc.driver.OracleDriver.registerMBeans(OracleDriver.java:270) at oracle.jdbc.driver.OracleDriver$1.run(OracleDriver.java:213) at java.security.AccessController.doPrivileged(Native Method) Thanks! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group athttp:// groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Rounded Corners with UIBinder
Take a look at the DecoratorPanel. It implements a 9-box and you should be able to use css to override the defaults. http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/user/client/ui/DecoratorPanel.html On Fri, Apr 16, 2010 at 12:15 AM, Jonny jonny.bren...@gmail.com wrote: So given that CSS is used for the flesh what to you anchor it to? The layout panels? With images as backgrounds (so you'd need 4 different anchors for 4 rounded corners?)? Or do you use something like an HTMLPanel with several divs to outline around layout panels? I feel more and more like my code is becoming a hodge-podge of different markups and losing some of the benefits of the simplicity of UIBinder. It seems like I'm missing a more elegant solution. Anyone? On Apr 15, 8:36 pm, dparish dpar...@gmail.com wrote: If gwt has a failing it's making the app look well rounded. Ok bad pun. The uibinder makes you think you are sculpting a ui. You really aren't. You are writing a skeleton that needs CSS for the flesh. The client side generated HTML is complex which makes the task harder. It's worth it considering the power and flexibility gwt gives you -Dave On Apr 15, 7:14 pm, Jonny jonny.bren...@gmail.com wrote: Despite all my searching (and mostly because of the limited information available regarding proper use of UIBinder) I cannot find a simple, elegant way to use UIBinder with rounded corners. The Google I have a vary simple, one page business card site with the with the outline of the page as a rounded corner pod. There are a few pods within that, one of which I want to use as the new TabLayoutPanel (requiring strict browser support). I considered using the older DecoratorPanel but that requires quirks mode. Is there an equivalent for the new layout structures? My original code just laid out css in the default html page and I anchored all my widgets using the RootPanel.get('id') operation but that does not work with RootLayoutPanel.get(), thereby limiting my ability to use the new TabLayoutPanel. I'm considering avoiding the new UIBinder features altogether, at least until more tutorials are available but I have to say I'm am very tempted I hope this all makes some sense. I'd be happy to clarify as this simple webpage project in GWT has turned into much more of a design barrier than anything else. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group athttp:// groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group athttp:// groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Best CSS practice for complex GWT Widgets using UiBinder
You can also change styles in the ui.xml file directly inside a ui:style tag, like so: ui:style @external gwt-SuggestBox; @external gwt-SuggestBoxPopup; .gwt-SuggestBox { ... } .gwt-SuggestBoxPopup { ... } /ui:style (Note the @external - you need that for predefined styles) kathrin On Mon, Apr 19, 2010 at 2:54 AM, Roland Bali roland.b...@gmail.com wrote: Hi, I did some searching but couldn't anything about this subject. I'm using the SuggestBox widget and I'd like to change the layout for elements in a SuggestBox. For example I can change the .gwt-SuggestBox by adding addStyleNames but that only changes .gwt-SuggestBox but how do I change the sub elements like .gwt-SuggestBoxPopup .item? Is this possible at all using UiBinder? Kind regards, Roland -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Crawlable AJAX - jQuery Load
You might use meta name=fragment content=! in your html page, and when the crawler requests the corresponding _escaped_fragment_= URL, you'll have a version without jQuery, where you load the results page fragment into the static HTML and return that. Depending on what your server looks like, it first has to recognize that it is getting a request for such a URL, and then it will have to produce the results page fragment and put it together with the static HTML - so everything happens on your server before you return a result. As long as the resulting DOM is the same as what the user would get, it should be ok. kathrin On Mon, Apr 19, 2010 at 2:15 AM, Dusty dustyrea...@gmail.com wrote: I've been reading the Making AJAX Applications Crawlable specs (http://code.google.com/intl/sv-SE/web/ajaxcrawling/docs/getting- started.htmlhttp://code.google.com/intl/sv-SE/web/ajaxcrawling/docs/getting-%0Astarted.html) and I'm at a loss at how to apply this to my application. I use jQuery to load an HTML page fragment into a DOM element on a mostly pure HTML page. It takes a few seconds for the 'results' page fragment to load from my server, this is why I use AJAX to dynamically load that content into the static page. Meanwhile the static page shows a 'throbber' and loading message. How exactly do I apply these specs in this scenario? I don't use the hash mark in my URLs. The page in question can be seen here: http://friendorfollow.com/dustyreagan/following/ Any pointers or recommendations on how to make the results crawlable? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Using Oracle and Hibernate in Google Web Toolkit's Hosted Mode.
keyboard-samurai I would highly recommend you check out the Google I/O GWT Best Practices http://www.youtube.com/watch?v=PDuhR18-EdM video. It talks about gwt-dispatch and MVP. You will want to implement your connections to Oracle/Hibernate in the GWT-RPC servlets. The project I am on we are using our own extension of the gwt-dispatch project's servlet to initialize a Spring context. Our web.xml looks like this: context-param param-namecontextConfigLocation/param-name param-valueclasspath:applicationContext.xml/param-value /context-param listener listener-classorg.springframework.web.context.ContextLoaderListener/listener-class /listener !-- Servlets -- servlet servlet-namedispatchServlet/servlet-name servlet-classcom.own.custom.extended.server.StandardDispatchServiceServlet/servlet-class /servlet servlet-mapping servlet-namedispatchServlet/servlet-name url-pattern/client/dispatch/url-pattern /servlet-mapping Our applicationContext.xml sits in the WEB-INF/classes directory. Nothing but standard Spring stuff there including the necessary things to get Hibernate working. If you want to skip Spring I am not going to be of much help there but, I am sure it can be done. Jas On Mon, Apr 19, 2010 at 10:53 AM, keyboard_samurai yog...@gmail.com wrote: awesome do we have a article how to get this done ??? and also does it gets integrated with eclipse ? Regards, -Yogesh On Apr 19, 8:45 pm, Jason Hatton jashat...@gmail.com wrote: You will get that with just GWT. On Mon, Apr 19, 2010 at 9:55 AM, keyboard_samurai yog...@gmail.com wrote: Then do you replace tomcat with GAE ? i want to have the benefits of Hosted mode i.e auto compile and debug ??? On Apr 19, 5:32 pm, Sripathi Krishnan sripathikrish...@gmail.com wrote: Disable Google App Engine in your eclipse settings. GAE does not allow you to use databases or open network connections. --Sri On 19 April 2010 17:59, keyboard_samurai yog...@gmail.com wrote: Hello, I need to know if anyone is able to query the database for fetching data. This is a common requirement for most of the applications to use database.If Hosted Mode doesnt support it then how are the users of GWT developing ? Do let me know !! I get an exception while connecting to database using JDBC below is the trace of it. java.lang.NoClassDefFoundError: java.lang.management.ManagementFactory is a restricted class. Please see the Google App Engine developer's guide for more details. at com.google.appengine.tools.development.agent.runtime.Runtime.reject(Runtime.java: 51) at oracle.jdbc.driver.OracleDriver.registerMBeans(OracleDriver.java:270) at oracle.jdbc.driver.OracleDriver$1.run(OracleDriver.java:213) at java.security.AccessController.doPrivileged(Native Method) Thanks! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com google-web-toolkit%252bunsubscr...@googlegroups.comgoogle-web-toolkit%25252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com . For more options, visit this group athttp:// groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to
Re: GWT plugin for eclipse install problem
Hey, Could you try starting with a fresh Eclipse for Java EE and run Eclipse with admin privileges? I recall some folks having weird issues on Windows 7 that were resolved by doing this. If it doesn't work, we can dig into your configuration and log files to figure out what's going wrong. jason On Sun, Apr 18, 2010 at 5:21 PM, xwise srobo...@gmail.com wrote: I saw a few other posts related to this but nothing that would solve my problem. I'm just trying to setup the GWT plugin for eclipse 3.5, following the instructions at: http://code.google.com/eclipse/docs/getting_started.html http://code.google.com/eclipse/docs/install-eclipse-3.5.html The plugin is downloaded and seems to install successfully but when eclipse restarts I don't see the File New Web Application Project option in the eclipse menu. I also tried manually installing WST even though I think it was already installed, but that made no difference. I've tried with eclipse 3.5 IDE for java EE and with the standard eclipse 3.5 IDE for java, nothing works. I'm running under windows 7 64-bit, although I don't think that should matter. Any help would be appreciated. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: firebug aborted *.cache.html
I think this is a red herring / non problem, when I changed the config of my apache to: Files *.cache.* SetOutputFilter DEFLATE ExpiresActive On ExpiresDefault modification plus 2 years /Files Files *.nocache.* SetOutputFilter DEFLATE ExpiresActive On ExpiresDefault now /Files and then in firebug unchecked the option in the net tab which says Disable Browser Cache and the aborted request stopped happening -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Compilation Error
Can you post the contents of your .classpath file? On Mon, Apr 19, 2010 at 11:42 AM, rxm0203 rxm0...@gmail.com wrote: Hi Rajeev, I don't see JDT appearing on the build path. Let me know your suggestions for the next step. Thanks, Rahul On Apr 16, 10:28 am, Rajeev Dayal rda...@google.com wrote: Hm, I'm wondering if there is some sort of issue with multiple versions of JDT appearing on the classpath. Does Drools utilize JDT? What does your build path look like? On Thu, Apr 15, 2010 at 5:00 PM, rxm0203 rxm0...@gmail.com wrote: I hope this is the correct mailing list for the question. We are working on Custom Business Rules designer for our application suite. We are going to customize Drools Guvnor user interface as per our requirements. I checked out latest Drools Guvnor source code from SVN. I am trying to compile and build source code. I am using Eclipse 3.5 for EE and latest GWT Eclipse plug in. However, Drools Guvnor fails to compile when I click GWT plug in button from Eclipse menu bar. Here is an error log from GWT console. Compiling module org.drools.guvnor.Guvnor [ERROR] Unexpected java.lang.NoSuchFieldError: reportUnusedDeclaredThrownExceptionIncludeDocCommentReference at com.google.gwt.dev.javac.JdtCompiler.getCompilerOptions(JdtCompiler.java: 310) at com.google.gwt.dev.javac.JdtCompiler $CompilerImpl.init(JdtCompiler.java:148) at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java: 466) at com.google.gwt.dev.javac.CompilationStateBuilder $CompileMoreLater.compile(CompilationStateBuilder.java:142) at com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java: 281) at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java: 182) at com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java: 280) at com.google.gwt.dev.Precompile.precompile(Precompile.java:502) at com.google.gwt.dev.Precompile.precompile(Precompile.java:414) at com.google.gwt.dev.Compiler.run(Compiler.java:201) at com.google.gwt.dev.Compiler$1.run(Compiler.java:152) at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:87) at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java: 81) at com.google.gwt.dev.Compiler.main(Compiler.java:159) Does anyone has resolution to the issue? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group athttp:// groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
javax.servlet.ServletException: Content-Type was '(null)'. Expected 'text/x-gwt-rpc'.
Hello, We're using GWT 2.0, Spring 2.5. On our production server we have sometime this error : SEVERE: Exception while dispatching incoming RPC call javax.servlet.ServletException: Content-Type was '(null)'. Expected 'text/x-gwt-rpc'. at com.google.gwt.user.server.rpc.RPCServletUtils.checkContentType(RPCServletUtils.java: 366) at com.google.gwt.user.server.rpc.RPCServletUtils.readContentAsUtf8(RPCServletUtils.java: 172) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.readContent(AbstractRemoteServiceServlet.java: 179) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java: 215) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java: 62) at javax.servlet.http.HttpServlet.service(HttpServlet.java: 637) at javax.servlet.http.HttpServlet.service(HttpServlet.java: 717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: 290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java: 206) at org.springframework.security.util.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java:378) at org.springframework.security.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java: 109) at org.springframework.security.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java: 83) ... I really don't know what happens and what cause this error. Thank's -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Publishing gwt project. Combining with php
Dear everybody, I am a novice with gwt. I managed to create a gwt project using Eclipse. The project draws a chart using com.google.gwt.visualization.client.visualizations.AnnotatedTimeLine .The project works fine with Tomcat, localhost. How can I now publish the project to the remote host? Should I copy the war folder? Do I also need the launch, compile and shell files? How about the src folder? My ultimate goal is to incorporate the AnnotatedTimeLine function into my independent php project. Is it possible? Thank you Julia -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Publishing gwt project. Combining with php
Yes it ! You can even test your project with Php server backend ! There's some settings to change and then you add the folder war/projectname to your project and you're almost done. Create a Web Application launch configuration and add the following to parameters to the 'program arguments': -noserver -startupUrl http://localhost:8080/http://www.google.com/url?sa=Dq=http://localhost:8080/test/gousg=AFQjCNFKh5JNAcKKjkxdJUuK0zFTwvpxdg yourpath My site : www.mesy.ca works with php backend (I'm moving to AppEngine soon). I communicate in XML for Client/server communicaiton. Cheers Christian On Mon, Apr 19, 2010 at 1:34 PM, braverju brave...@gmail.com wrote: Dear everybody, I am a novice with gwt. I managed to create a gwt project using Eclipse. The project draws a chart using com.google.gwt.visualization.client.visualizations.AnnotatedTimeLine .The project works fine with Tomcat, localhost. How can I now publish the project to the remote host? Should I copy the war folder? Do I also need the launch, compile and shell files? How about the src folder? My ultimate goal is to incorporate the AnnotatedTimeLine function into my independent php project. Is it possible? Thank you Julia -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Creating custom 'elements' for UiBinder, like g:north in DockLayoutPanel
DockLayoutPanel has the g:north, g:south, etc. which are referred to as 'elements' on the UiBinder help page. (http://code.google.com/ webtoolkit/doc/latest/DevGuideUiBinder.html#Panels) Any idea how one would go about adding this functionality to my own widgets? Theirs appear to be parametrized and everything. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT presentation/workshop
Hi Ed, Good work! You might want to fully update it for GWT 2.0 development mode -- is now in the browser itself gwt api's -- gears is deprecated SE On Apr 19, 1:16 pm, Ed post2edb...@hotmail.com wrote: Hi All, If you really have nothing to do, have a look at this GWT presentation:http://www.slideshare.net/edbras/all-about-gwt I made it to give GWT presentations/workshops here in Holland (it's in English). Maybe it can be useful to you, Ed -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Compilation Error
Here are the contents of .classpath file. ?xml version=1.0 encoding=UTF-8? classpath classpathentry kind=src output=target/test-classes path=src/ test/java/ classpathentry excluding=**/*.java including=** kind=src output=target/test-classes path=src/test/resources/ classpathentry including=**/*.java kind=src path=src/main/java/ classpathentry excluding=**/*.java kind=src path=src/main/ resources/ classpathentry kind=var path=M2_REPO/javax/activation/activation/ 1.1/activation-1.1.jar/ classpathentry kind=var path=M2_REPO/javax/ejb/ejb-api/3.0/ejb- api-3.0.jar/ classpathentry kind=var path=M2_REPO/javax/el/el-api/1.2/el- api-1.2.jar/ classpathentry kind=var path=M2_REPO/javax/el/el-ri/1.2/el- ri-1.2.jar/ classpathentry kind=var path=M2_REPO/javax/xml/bind/jaxb-api/2.1/ jaxb-api-2.1.jar/ classpathentry kind=var path=M2_REPO/javax/jcr/jcr/1.0/ jcr-1.0.jar/ classpathentry kind=var path=M2_REPO/javax/faces/jsf-api/1.2/jsf- api-1.2.jar/ classpathentry kind=var path=M2_REPO/javax/servlet/jsp/jsp-api/ 2.1/jsp-api-2.1.jar/ classpathentry kind=var path=M2_REPO/javax/transaction/jta/1.1/ jta-1.1.jar/ classpathentry kind=var path=M2_REPO/javax/persistence/ persistence-api/1.0/persistence-api-1.0.jar/ classpathentry kind=var path=M2_REPO/javax/servlet/servlet-api/ 2.3/servlet-api-2.3.jar/ classpathentry kind=var path=M2_REPO/javax/xml/stream/stax-api/ 1.0-2/stax-api-1.0-2.jar/ classpathentry kind=var path=M2_REPO/antlr/antlr/2.7.6/ antlr-2.7.6.jar/ classpathentry kind=var path=M2_REPO/org/antlr/antlr-runtime/ 3.1.3/antlr-runtime-3.1.3.jar/ classpathentry kind=var path=M2_REPO/asm/asm/1.5.3/asm-1.5.3.jar/ classpathentry kind=var path=M2_REPO/asm/asm-attrs/1.5.3/asm- attrs-1.5.3.jar/ classpathentry kind=var path=M2_REPO/avalon-framework/avalon- framework/4.1.3/avalon-framework-4.1.3.jar/ classpathentry kind=var path=M2_REPO/bouncycastle/bcmail- jdk14/138/bcmail-jdk14-138.jar/ classpathentry kind=var path=M2_REPO/bouncycastle/bcprov- jdk14/138/bcprov-jdk14-138.jar/ classpathentry kind=var path=M2_REPO/cglib/cglib/2.1_3/ cglib-2.1_3.jar/ classpathentry kind=var path=M2_REPO/org/cobogw/gwt/cobogw/1.0/ cobogw-1.0.jar/ classpathentry kind=var path=M2_REPO/org/apache/jasper/ springsource/ com.springsource.org.apache.jasper.org.eclipse.jdt.springsource/ 6.0.20.S2-r5956/ com.springsource.org.apache.jasper.org.eclipse.jdt.springsource-6.0.20.S2- r5956.jar/ classpathentry kind=var path=M2_REPO/commons-codec/commons-codec/ 1.2/commons-codec-1.2.jar/ classpathentry kind=var path=M2_REPO/commons-collections/commons- collections/3.1/commons-collections-3.1.jar/ classpathentry kind=var path=M2_REPO/commons-fileupload/commons- fileupload/1.2.1/commons-fileupload-1.2.1.jar/ classpathentry kind=var path=M2_REPO/commons-httpclient/commons- httpclient/3.1/commons-httpclient-3.1.jar/ classpathentry kind=var path=M2_REPO/commons-io/commons-io/1.4/ commons-io-1.4.jar/ classpathentry kind=var path=M2_REPO/commons-logging/commons- logging/1.1/commons-logging-1.1.jar/ classpathentry kind=var path=M2_REPO/concurrent/concurrent/1.3.4/ concurrent-1.3.4.jar/ classpathentry kind=var path=M2_REPO/org/apache/derby/derby/ 10.2.1.6/derby-10.2.1.6.jar/ classpathentry kind=var path=M2_REPO/dom4j/dom4j/1.6.1-brew/ dom4j-1.6.1-brew.jar/ classpathentry kind=src path=/drools-api/ classpathentry kind=src path=/drools-bpmn2/ classpathentry kind=src path=/drools-compiler/ classpathentry kind=src path=/drools-core/ classpathentry kind=src path=/drools-decisiontables/ classpathentry kind=src path=/drools-doc/ classpathentry kind=src path=/drools-factconstraint/ classpathentry kind=src path=/drools-repository/ classpathentry kind=src path=/drools-templates/ classpathentry kind=src path=/drools-verifier/ classpathentry kind=var path=M2_REPO/net/sf/ehcache/ehcache/1.2.3/ ehcache-1.2.3.jar/ classpathentry kind=var path=M2_REPO/ch/ethz/ganymed/ganymed-ssh2/ build210/ganymed-ssh2-build210.jar/ classpathentry kind=var path=M2_REPO/com/google/collections/ google-collections/0.8/google-collections-0.8.jar/ classpathentry kind=var path=M2_REPO/org/antlr/gunit/3.1.3/ gunit-3.1.3.jar/ classpathentry kind=var path=M2_REPO/pl/balon/gwt/gwt-diagrams/ 0.2-RC00/gwt-diagrams-0.2-RC00.jar/ classpathentry kind=var path=M2_REPO/com/google/gwt/gwt-servlet/ 1.5.3/gwt-servlet-1.5.3.jar/ classpathentry kind=var path=M2_REPO/com/gwtext/gwtext/2.0.5/ gwtext-2.0.5.jar/ classpathentry kind=var path=M2_REPO/org/hibernate/hibernate/ 3.2.4.sp1/hibernate-3.2.4.sp1.jar/ classpathentry kind=var path=M2_REPO/org/hibernate/hibernate-
Re: Crawlable AJAX - jQuery Load
So, if I understand you right, it should work like this?: 1) I put meta name=fragment content=! in my static page (ie my example: http://friendorfollow.com/dustyreagan/following/) 2) Google will see it, then request http://friendorfollow.com/dustyreagan/following/?_escaped_fragment_= 3) When my webserver sees _escaped_fragment_ = null, I return my page with the results HTML fragment inline instead of through jQuery load. 4) Google associates that HTML to http://friendorfollow.com/dustyreagan/following/ in it's index. Sound correct? On Apr 19, 11:02 am, Katharina Probst kpro...@google.com wrote: You might use meta name=fragment content=! in your html page, and when the crawler requests the corresponding _escaped_fragment_= URL, you'll have a version without jQuery, where you load the results page fragment into the static HTML and return that. Depending on what your server looks like, it first has to recognize that it is getting a request for such a URL, and then it will have to produce the results page fragment and put it together with the static HTML - so everything happens on your server before you return a result. As long as the resulting DOM is the same as what the user would get, it should be ok. kathrin On Mon, Apr 19, 2010 at 2:15 AM, Dusty dustyrea...@gmail.com wrote: I've been reading the Making AJAX Applications Crawlable specs (http://code.google.com/intl/sv-SE/web/ajaxcrawling/docs/getting- started.htmlhttp://code.google.com/intl/sv-SE/web/ajaxcrawling/docs/getting-%0Ast...) and I'm at a loss at how to apply this to my application. I use jQuery to load an HTML page fragment into a DOM element on a mostly pure HTML page. It takes a few seconds for the 'results' page fragment to load from my server, this is why I use AJAX to dynamically load that content into the static page. Meanwhile the static page shows a 'throbber' and loading message. How exactly do I apply these specs in this scenario? I don't use the hash mark in my URLs. The page in question can be seen here: http://friendorfollow.com/dustyreagan/following/ Any pointers or recommendations on how to make the results crawlable? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Crawlable AJAX - jQuery Load
Yes, that's right! kathrin On Mon, Apr 19, 2010 at 3:00 PM, Dusty dustyrea...@gmail.com wrote: So, if I understand you right, it should work like this?: 1) I put meta name=fragment content=! in my static page (ie my example: http://friendorfollow.com/dustyreagan/following/) 2) Google will see it, then request http://friendorfollow.com/dustyreagan/following/?_escaped_fragment_= 3) When my webserver sees _escaped_fragment_ = null, I return my page with the results HTML fragment inline instead of through jQuery load. 4) Google associates that HTML to http://friendorfollow.com/dustyreagan/following/ in it's index. Sound correct? On Apr 19, 11:02 am, Katharina Probst kpro...@google.com wrote: You might use meta name=fragment content=! in your html page, and when the crawler requests the corresponding _escaped_fragment_= URL, you'll have a version without jQuery, where you load the results page fragment into the static HTML and return that. Depending on what your server looks like, it first has to recognize that it is getting a request for such a URL, and then it will have to produce the results page fragment and put it together with the static HTML - so everything happens on your server before you return a result. As long as the resulting DOM is the same as what the user would get, it should be ok. kathrin On Mon, Apr 19, 2010 at 2:15 AM, Dusty dustyrea...@gmail.com wrote: I've been reading the Making AJAX Applications Crawlable specs (http://code.google.com/intl/sv-SE/web/ajaxcrawling/docs/getting- started.html http://code.google.com/intl/sv-SE/web/ajaxcrawling/docs/getting-%0Ast...) and I'm at a loss at how to apply this to my application. I use jQuery to load an HTML page fragment into a DOM element on a mostly pure HTML page. It takes a few seconds for the 'results' page fragment to load from my server, this is why I use AJAX to dynamically load that content into the static page. Meanwhile the static page shows a 'throbber' and loading message. How exactly do I apply these specs in this scenario? I don't use the hash mark in my URLs. The page in question can be seen here: http://friendorfollow.com/dustyreagan/following/ Any pointers or recommendations on how to make the results crawlable? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group athttp:// groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
When does a reference to an interface force GWT to generate all its implementations?
As I've been told, one should not declare parameters to client GWT code as interfaces like ListT. The typical way to write a JavaBean containing a list is this: public class Frames { private ListInteger frames = new ArrayListInteger(); public void setFrames(ListInteger frames) { this.frames = frames; } // ... } Google recommends that GWT classes use the specific ArrayListT instead, because these declarations will force GWT to generate code for LinkedListT and every other implementation of List. However, this runs into another problem: encapsulation. The class Frames2 is unsafe: public class Frames2 { private ArrayListInteger frames = new ArrayListInteger(); public void setFrames(ArrayListInteger frames) { this.frames = frames; } public ArrayListInteger getFrames() { return frames; } } It suffers from aliasing, as setting the frames instance variable allows the setter to interfere with the internals of the Frames2 instance: Frames2 frames = new Frames2(); ArrayListInteger myScoreLine = new ArrayListInteger(); myScoreLien.add(9); frames.setFrames(myScoreLine); myScoreLine.set(0, 30); // CHEAT! Usually, one copies the lists on both setting and getting: public class Frames3 { private ArrayListInteger frames = new ArrayListInteger(); public void setFrames(ArrayListInteger frames) { this.frames = new ArrayListInteger(frames); } public ArrayListInteger getFrames() { return new ArrayListInteger(frames); } } This solves the aliasing problem, but is slow. Perhaps I should not vend the list but provide access to its members. I probably should provide a way of getting all the list's members at once: public class Frames4 { private ArrayListInteger frames = new ArrayListInteger(); public void addFrame(int score) { frames.add(score); } public IteratorIntgeer frames() { return frames.iterator(); } } Will this force GWT to generate code for every IteratorE in my system? I probably am programming with too much paranoia, of course. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Visual CMS with GWT
This CMS was done using GWT framework. http://admin.demo.synapso.sk/ (demo/demo) Try to evaluate features and you will see if GWT is sufficient to you. Anyway, GWT allows you everything you need - drag drop, real-time text updates (WYSIWYG), etc. On 15. Apr, 16:39 h., graham.col...@gmail.com graham.col...@gmail.com wrote: Hi, I want to make a Website CMS that does the following: The screen is split into 2 panels, the right panel contains a webpage where a user can click an element (image or block of text) and then edit it in the right panel. So, in the right panel all the elements properties show up and they can be edited and saved. Would GWT be a good framework to achieve this or would something else be more suitable ? I would like real-time text updates, drag drop images etc. I know i'm being a bit brief at this point but i would like to get an idea of it's capabilities before i look any further. Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT - Visualization of graph/tree containing nodes and edges, moving and adding nodes...
and what about using GWT raphael wrapper ? http://code.google.com/p/raphaelgwt/ You can find getting started wiki there (http://code.google.com/p/ raphaelgwt/wiki/GettingStarted) and also the sample project http://code.google.com/p/raphaelgwt/source/browse/#svn/trunk/samples. -p- On 15. Apr, 22:12 h., David Kendall thirdnor...@gmail.com wrote: gafgaf gaaf...@googlemail.com wrote: ok its done, i tried but it is not very compatible with current versions of Firefox, IE, ... and GWT2.0 and that project is not progressed and improved anymore... nevertheless, thanks a lot! best regards On 15 Apr., 18:22, gafgaf gaaf...@googlemail.com wrote: Hi, thanks for the link, it looks good... i like try it but i have problems configuring it with gwt, is there a manual for dummies using eclipse or without eclipse? best regards On 15 Apr., 16:48, kozura koz...@gmail.com wrote: maybehttp://code.google.com/p/gwt-diagrams/ On Apr 14, 12:26 pm, gafgaf gaaf...@googlemail.com wrote: Hi I'm student from Germany an looking for any good library that i can use with Google Web Toolkit to create trees/graphs, where you can move nodes and connect these nodes with edges...but not like PieChart, MotionChart.. but like e.g.:http://raphaeljs.com/graffle.html. So finally it has to do with JavaScript... i don't like make just a desktop-application. My problem is i'm beginner and i dont know which libraries would be appropriate for my idea with the tree/graph... I'am looking a while for some appropriate libraries in the internet, but so far i didn't found something usefull that works with GWT (gwt-jsviz is already a dead project as i see)...do you have any suggestion for me, how i can realize my idea with GWT, maybe without any external librariy... i would be very pleased and happy... Thanks and best regards Gafur -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: css file in gwt.xml
I'm in the process of upgrading some GWT 1.5 apps to 2.0 and noticed the same thing in the tutorial. If you want to reference the css file in the module xml file instead of the html file, you still need to create a folder called 'public' in the same directory as your module xml file and stick your css file in there. Your package will look like this: - com.google.gwt.sample.stockwatcher + client + server + shared - public |- StockWatcher.css - StockWatcher.gwt.xml When you compile or run the app in dev mode the css file will be copied to the /war/stockwatcher directory with the other generated files. On Apr 6, 5:52 pm, Meera meera.sha...@gmail.com wrote: Hi, I am new to GWT. I am looking at the stockwatcher example in google gwt tutorial. I have StockWatcher.cssin war folder and I am trying to use this .css in gwt.xmlmodulefile. For some reason it is not reading thecssfile from gwt.xmlfile. If I refer the file from host page (.html) it works fine. I am not sure what I am doing wrong. ?xmlversion=1.0 encoding=UTF-8? modulerename-to='stockwatcher' !-- Inherit the core Web Toolkit stuff. -- inherits name='com.google.gwt.user.User'/ !-- Inherit the default GWT style sheet. You can change -- !-- the theme of your GWT application by uncommenting -- !-- any one of the following lines. -- inherits name='com.google.gwt.user.theme.standard.Standard' !-- inherits name='com.google.gwt.user.theme.chrome.Chrome'/ -- !-- inherits name='com.google.gwt.user.theme.dark.Dark'/ -- !-- Specify the app entry point class. -- entry-point class='com.google.gwt.sample.stockwatcher.client.StockWatcher'/ !-- Specify the application specific style sheet. -- stylesheet src='StockWatcher.css' / /module thank you -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT presentation/workshop
@se: Good work! Thanks You might want to fully update it for GWT 2.0 development mode -- is now in the browser itself Interesting conclusion as it's all about GWT 2.0... Please let me know why did you get to this conclusion, so I can update the presentation a bit? gwt api's -- gears is deprecated Yep, I am aware of that, and that's better as it has a few interesting security wholes... Ed -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT presentation/workshop
do you have sample template project. presentation is really good. Sorry, I don't have that, I only have complex GWT projects that contains many parts of the presentation. But I understand that you miss the story that comes with the presentation which explain many issues. Ask me about concrete presentation issues and I will do my best to answer them? Ed -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Get JSON content from GWT
Hi all !! im trying to get the content from a json service like yahoo, but I never get the result correctly: this is my code: RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, http://api.search.yahoo.com/ImageSearchService/V1/imageSearch? appid=YahooDemoquery=potatoresults=2output=json); Request request = builder.sendRequest(null, new RequestCallback() { public void onError(Request request, Throwable exception) { GWT.log(Couldn't retrieve JSON); } public void onResponseReceived(Request request, Response response) { GWT.log(Response text: +response.getText()); if (200 == response.getStatusCode()) { JSONValue value = JSONParser.parse(response.getText()); JSONObject obj = value.isObject(); JSONArray jarray = obj.get(jsonResponse).isObject().get(results).isArray(); for(int i=0; i=jarray.size()-1; i++){ JSONObject arrayObjs = jarray.get(i).isObject(); String name = arrayObjs.get(location).isObject().get(name).isString().stringValue(); GWT.log(name); //Implement the rest of your logic. } } else { GWT.log(Couldn't retrieve JSON CODE 200( + response.getStatusText() +response.getHeadersAsString() + )); } } }); Every time the response.getText() is empty... How can i get the content from this json service?? im trying with the google example with json tree, but when i change the js for the real url in yahoo (not in local result .js file) the result is empty all time!! Thanks for ur help !!! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Json cross-domain examle (JS Error: Object doesn't support this action - hosted.html)
Hello, I am working on cross-domain example below; http://code.google.com/webtoolkit/doc/latest/tutorial/Xsite.html#design I did all the steps in the tutorial, actually It works fine, but there is just a problem. I am getting JavaScript error below; Object doesn't support this action hosted.html Code: 0 URI: http://127.0.0.1:/stockwatcher/hosted.html?stockwatcher; I've uploaded print screen of the error as well, http://php.unikhas.s42.eatj.com/gwt-json.gif Any Idea, Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Json cross-domain examle (JS error on IE 8.0 - Object doesn't support this action)
Hello, I am working on cross-domain example below; http://code.google.com/webtoolkit/doc/latest/tutorial/Xsite.html#design I did all the steps in the tutorial, actually It works fine on firefox and chrome. It also works on IE 8.0, but I am just getting JavaScript Error in IE 8.0. Object doesn't support this action hosted.html Code: 0 URI: http://127.0.0.1:/stockwatcher/hosted.html?stockwatcher; I've uploaded print screen of the error as well, http://php.unikhas.s42.eatj.com/gwt-json.gif Any Idea, Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Json cross-domain examle (JS Error: Object doesn't support this action - hosted.html)
I relized that It works successfully on Firefox and Chrome, but I'm getting this error on IE 8.0. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: When does a reference to an interface force GWT to generate all its implementations?
It will force GWT to generate javascript for every java class that implements Iterator that is a source class. Typically, source classes are those in the client package, and anything in super source. In any case, how many elements are in your array? If there are not that many, I would just copy defensively and be done with it. You may also be interested in http://code.google.com/p/google-web-toolkit/wiki/LightweightCollections On Apr 19, 1:06 pm, Eric erjab...@gmail.com wrote: As I've been told, one should not declare parameters to client GWT code as interfaces like ListT. The typical way to write a JavaBean containing a list is this: public class Frames { private ListInteger frames = new ArrayListInteger(); public void setFrames(ListInteger frames) { this.frames = frames; } // ... } Google recommends that GWT classes use the specific ArrayListT instead, because these declarations will force GWT to generate code for LinkedListT and every other implementation of List. However, this runs into another problem: encapsulation. The class Frames2 is unsafe: public class Frames2 { private ArrayListInteger frames = new ArrayListInteger(); public void setFrames(ArrayListInteger frames) { this.frames = frames; } public ArrayListInteger getFrames() { return frames; } } It suffers from aliasing, as setting the frames instance variable allows the setter to interfere with the internals of the Frames2 instance: Frames2 frames = new Frames2(); ArrayListInteger myScoreLine = new ArrayListInteger(); myScoreLien.add(9); frames.setFrames(myScoreLine); myScoreLine.set(0, 30); // CHEAT! Usually, one copies the lists on both setting and getting: public class Frames3 { private ArrayListInteger frames = new ArrayListInteger(); public void setFrames(ArrayListInteger frames) { this.frames = new ArrayListInteger(frames); } public ArrayListInteger getFrames() { return new ArrayListInteger(frames); } } This solves the aliasing problem, but is slow. Perhaps I should not vend the list but provide access to its members. I probably should provide a way of getting all the list's members at once: public class Frames4 { private ArrayListInteger frames = new ArrayListInteger(); public void addFrame(int score) { frames.add(score); } public IteratorIntgeer frames() { return frames.iterator(); } } Will this force GWT to generate code for every IteratorE in my system? I probably am programming with too much paranoia, of course. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT presentation/workshop
Hi Ed, Can you share complex application. i would like to go through and learn. thanks, On Mon, Apr 19, 2010 at 12:55 PM, Ed post2edb...@hotmail.com wrote: do you have sample template project. presentation is really good. Sorry, I don't have that, I only have complex GWT projects that contains many parts of the presentation. But I understand that you miss the story that comes with the presentation which explain many issues. Ask me about concrete presentation issues and I will do my best to answer them? Ed -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT 1.7, Eclipse: how do I tell jetty
What teh context root is, right now it defaults to /... I would like a little more control over this because I want one entry page and be able to use it in Hosted mode or in Tomcat when I drop the WAR file in there. I did search this group and I did try looking at Jetty docs... I may have missed it. thanks, john -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
DeferredCommand does not work in IE
I am trying to resize the height of a tab-panel based on the content populated onto a grid. I need to defer that work until data is loaded into the grid. Currently, I am doing the following: grid.addListener(Events.Attach, new ListenerGridEventBeanModel() { public void handleEvent(GridEventBeanModel be) { summaryPageLoader.load(0, 30); resizeSummaryGrid(); } }); and resizeSummaryGrid() is : DeferredCommand.addCommand(new Command(){ @Override public void execute() { // do something here to resize the panel } }); I am not able to resize my panel. However, If I add an alert statement just before calling the resize method, it works just fine. What am I doing wrong ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT presentation/workshop
Can you share complex application. i would like to go through and learn. Sorry, not possible, it's not open source at the moment.. And I wouldn't recommend it, as they aren't small and you will probably need quite some time to get in to it.. But I can probably share pieces of you let me know what you are looking for. Ed -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: DeferredCommand does not work in IE
My guess is that summaryPageLoader.load(0, 30) invokes an RPC and you end up trying to resize the widget before the data has been loaded. If I'm right, you need to resize in the onSuccess of the RPC's AsyncCallback rather than during some arbitrary deferred command. Ian On Mon, Apr 19, 2010 at 2:43 PM, DK dmanchikalap...@gmail.com wrote: I am trying to resize the height of a tab-panel based on the content populated onto a grid. I need to defer that work until data is loaded into the grid. Currently, I am doing the following: grid.addListener(Events.Attach, new ListenerGridEventBeanModel() { public void handleEvent(GridEventBeanModel be) { summaryPageLoader.load(0, 30); resizeSummaryGrid(); } }); and resizeSummaryGrid() is : DeferredCommand.addCommand(new Command(){ �...@override public void execute() { // do something here to resize the panel } }); I am not able to resize my panel. However, If I add an alert statement just before calling the resize method, it works just fine. What am I doing wrong ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
AsyncProxy Example
Does anybody have an example of implementing AsyncProxy to dynamically load a class via the underlying runAsync? Basically I use the snippet of code in the AsyncProxy javadoc, but at compilation time I get the following error: interface IFoo { void doSomething(int a, int b); void anotherMethod(Object o); } class FooImpl implements IFoo { @Override public void anotherMethod(Object o) { } @Override public void doSomething(int a, int b) { } } @ConcreteType(FooImpl.class) interface FooProxy extends AsyncProxyIFoo, IFoo {} class UserOfIFoo { private IFoo foo = GWT.create(FooProxy.class); void makeTrouble() { // This first call triggers a runAsync load foo.doSomething(1, 2); // and this second will replayed after the call to doSomething() foo.anotherMethod(A string); } } [java] Computing all possible rebind results for 'com.mypackage.client.util.FooProxy' [java] Rebinding com.mypackage.client.util.FooProxy [java] Invoking com.google.gwt.dev.javac.StandardGeneratorConte x...@162144c [java][ERROR] Expecting concrete typecom.mypackage.client.util.FooImpl to be static. [java][ERROR] Errors in 'file:/C:/work/gwt/GWTProject/src/com/ mypackage/client/util/FooProxy.java' [java] [ERROR] Line 72: Failed to resolve 'com.mypackage.client.util.FooProxy' via deferred binding [java][ERROR] Cannot proceed due to previous errors What does it mean FooImpl to be static? I mean, this is the example in the javadoc! I don;t see any special instructions for using AsyncProxy. Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Get JSON content from GWT
On Mon, Apr 19, 2010 at 4:01 PM, Julian! julia...@gmail.com wrote: http://api.search.yahoo.com/ImageSearchService/V1/imageSearch? appid=YahooDemoquery=potatoresults=2output=json Julian, The problem you are hitting is the Same Origin Policyhttp://code.google.com/webtoolkit/doc/latest/FAQ_Server.html#What_is_the_Same_Origin_Policy,_and_how_does_it_affect_GWT? . See also: the cross-site request tutorialhttp://code.google.com/webtoolkit/doc/latest/tutorial/Xsite.html -- Chris Conroy Software Engineer Google, Atlanta -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Crawlable AJAX - jQuery Load
Thanks so much for your help Kathrin! :) However, I've tried these steps and Googlebot is still giving me no love. If you go to http://friendorfollow.com/dustyreagan/following/ you can see I've placed the meta tag in the header. Then if you go to http://friendorfollow.com/dustyreagan/following/?_escaped_fragment_= you can see the results fragment is embedded inline in the static HTML. However, if I try Fetch as Googlebot (http://www.google.com/support/ webmasters/bin/answer.py?hl=enanswer=158587) it shows the original pages HTML, not the _escaped_fragment_ version. Any idea what I might have done wrong? On Apr 19, 2:02 pm, Katharina Probst kpro...@google.com wrote: Yes, that's right! kathrin On Mon, Apr 19, 2010 at 3:00 PM, Dusty dustyrea...@gmail.com wrote: So, if I understand you right, it should work like this?: 1) I put meta name=fragment content=! in my static page (ie my example:http://friendorfollow.com/dustyreagan/following/) 2) Google will see it, then request http://friendorfollow.com/dustyreagan/following/?_escaped_fragment_= 3) When my webserver sees _escaped_fragment_ = null, I return my page with the results HTML fragment inline instead of through jQuery load. 4) Google associates that HTML to http://friendorfollow.com/dustyreagan/following/ in it's index. Sound correct? On Apr 19, 11:02 am, Katharina Probst kpro...@google.com wrote: You might use meta name=fragment content=! in your html page, and when the crawler requests the corresponding _escaped_fragment_= URL, you'll have a version without jQuery, where you load the results page fragment into the static HTML and return that. Depending on what your server looks like, it first has to recognize that it is getting a request for such a URL, and then it will have to produce the results page fragment and put it together with the static HTML - so everything happens on your server before you return a result. As long as the resulting DOM is the same as what the user would get, it should be ok. kathrin On Mon, Apr 19, 2010 at 2:15 AM, Dusty dustyrea...@gmail.com wrote: I've been reading the Making AJAX Applications Crawlable specs (http://code.google.com/intl/sv-SE/web/ajaxcrawling/docs/getting- started.html http://code.google.com/intl/sv-SE/web/ajaxcrawling/docs/getting-%0Ast...) and I'm at a loss at how to apply this to my application. I use jQuery to load an HTML page fragment into a DOM element on a mostly pure HTML page. It takes a few seconds for the 'results' page fragment to load from my server, this is why I use AJAX to dynamically load that content into the static page. Meanwhile the static page shows a 'throbber' and loading message. How exactly do I apply these specs in this scenario? I don't use the hash mark in my URLs. The page in question can be seen here: http://friendorfollow.com/dustyreagan/following/ Any pointers or recommendations on how to make the results crawlable? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group athttp:// groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to
Re: Crawlable AJAX - jQuery Load
Hi Dusty, what URL did you enter in Fetch as Googlebot? It should work for http://friendorfollow.com/dustyreagan/following/?_escaped_fragment_= (or for http://friendorfollow.com/dustyreagan/following/http://friendorfollow.com/dustyreagan/following/?_escaped_fragment_=#!, but that doesn't really apply to your site, because you're not using hash fragments). If you as it to fetch http://friendorfollow.com/dustyreagan/followinghttp://friendorfollow.com/dustyreagan/following/?_escaped_fragment_=/, it should give you just the HTML, because that's what the crawler will see (and it will then extract the meta tag, construct the _escaped_fragment_ URL and fetch that). Does that do the trick? I hope so.:) kathrin On Mon, Apr 19, 2010 at 7:32 PM, Dusty dustyrea...@gmail.com wrote: Thanks so much for your help Kathrin! :) However, I've tried these steps and Googlebot is still giving me no love. If you go to http://friendorfollow.com/dustyreagan/following/ you can see I've placed the meta tag in the header. Then if you go to http://friendorfollow.com/dustyreagan/following/?_escaped_fragment_= you can see the results fragment is embedded inline in the static HTML. However, if I try Fetch as Googlebot (http://www.google.com/support/ webmasters/bin/answer.py?hl=enanswer=158587) it shows the original pages HTML, not the _escaped_fragment_ version. Any idea what I might have done wrong? On Apr 19, 2:02 pm, Katharina Probst kpro...@google.com wrote: Yes, that's right! kathrin On Mon, Apr 19, 2010 at 3:00 PM, Dusty dustyrea...@gmail.com wrote: So, if I understand you right, it should work like this?: 1) I put meta name=fragment content=! in my static page (ie my example:http://friendorfollow.com/dustyreagan/following/) 2) Google will see it, then request http://friendorfollow.com/dustyreagan/following/?_escaped_fragment_= 3) When my webserver sees _escaped_fragment_ = null, I return my page with the results HTML fragment inline instead of through jQuery load. 4) Google associates that HTML to http://friendorfollow.com/dustyreagan/following/ in it's index. Sound correct? On Apr 19, 11:02 am, Katharina Probst kpro...@google.com wrote: You might use meta name=fragment content=! in your html page, and when the crawler requests the corresponding _escaped_fragment_= URL, you'll have a version without jQuery, where you load the results page fragment into the static HTML and return that. Depending on what your server looks like, it first has to recognize that it is getting a request for such a URL, and then it will have to produce the results page fragment and put it together with the static HTML - so everything happens on your server before you return a result. As long as the resulting DOM is the same as what the user would get, it should be ok. kathrin On Mon, Apr 19, 2010 at 2:15 AM, Dusty dustyrea...@gmail.com wrote: I've been reading the Making AJAX Applications Crawlable specs (http://code.google.com/intl/sv-SE/web/ajaxcrawling/docs/getting- started.html http://code.google.com/intl/sv-SE/web/ajaxcrawling/docs/getting-%0Ast.. .) and I'm at a loss at how to apply this to my application. I use jQuery to load an HTML page fragment into a DOM element on a mostly pure HTML page. It takes a few seconds for the 'results' page fragment to load from my server, this is why I use AJAX to dynamically load that content into the static page. Meanwhile the static page shows a 'throbber' and loading message. How exactly do I apply these specs in this scenario? I don't use the hash mark in my URLs. The page in question can be seen here: http://friendorfollow.com/dustyreagan/following/ Any pointers or recommendations on how to make the results crawlable? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group athttp://
Re: Paging Scroll Table in GWT 2.0.x?
I'm using it successfully. There are some deprecation warnings under 2.0.3 that I've haven't gotten around to addressing. Otherwise it works really well. On Apr 19, 2:46 am, googelybear googelyb...@gmail.com wrote: Hi, I basically thave the same question as already asked here, but for the current version of gwt:http://groups.google.com/group/google-web-toolkit/browse_thread/threa... Is the PST still maintained for gwt 2.0.x? Would you recommend to use it or are there other alternatives you'd suggest? thanks a lot, Dennis -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Crawlable AJAX - jQuery Load
I asked it to fetch http://friendorfollow.com/dustyreagan/following/ If I ask it to fetch either: http://friendorfollow.com/dustyreagan/following/#! http://friendorfollow.com/dustyreagan/following/?_escaped_fragment_= It works correctly. Shouldn't it also work for the plain URL? http://friendorfollow.com/dustyreagan/following/ When I try the plain URL it doesn't show the whole indexable HTML. Thanks again! :) On Apr 19, 6:40 pm, Katharina Probst kpro...@google.com wrote: Hi Dusty, what URL did you enter in Fetch as Googlebot? It should work forhttp://friendorfollow.com/dustyreagan/following/?_escaped_fragment_=(or forhttp://friendorfollow.com/dustyreagan/following/http://friendorfollow.com/dustyreagan/following/?_escaped_fragment_=#!, but that doesn't really apply to your site, because you're not using hash fragments). If you as it to fetchhttp://friendorfollow.com/dustyreagan/followinghttp://friendorfollow.com/dustyreagan/following/?_escaped_fragment_=/, it should give you just the HTML, because that's what the crawler will see (and it will then extract the meta tag, construct the _escaped_fragment_ URL and fetch that). Does that do the trick? I hope so.:) kathrin On Mon, Apr 19, 2010 at 7:32 PM, Dusty dustyrea...@gmail.com wrote: Thanks so much for your help Kathrin! :) However, I've tried these steps and Googlebot is still giving me no love. If you go tohttp://friendorfollow.com/dustyreagan/following/you can see I've placed the meta tag in the header. Then if you go to http://friendorfollow.com/dustyreagan/following/?_escaped_fragment_= you can see the results fragment is embedded inline in the static HTML. However, if I try Fetch as Googlebot (http://www.google.com/support/ webmasters/bin/answer.py?hl=enanswer=158587) it shows the original pages HTML, not the _escaped_fragment_ version. Any idea what I might have done wrong? On Apr 19, 2:02 pm, Katharina Probst kpro...@google.com wrote: Yes, that's right! kathrin On Mon, Apr 19, 2010 at 3:00 PM, Dusty dustyrea...@gmail.com wrote: So, if I understand you right, it should work like this?: 1) I put meta name=fragment content=! in my static page (ie my example:http://friendorfollow.com/dustyreagan/following/) 2) Google will see it, then request http://friendorfollow.com/dustyreagan/following/?_escaped_fragment_= 3) When my webserver sees _escaped_fragment_ = null, I return my page with the results HTML fragment inline instead of through jQuery load. 4) Google associates that HTML to http://friendorfollow.com/dustyreagan/following/ in it's index. Sound correct? On Apr 19, 11:02 am, Katharina Probst kpro...@google.com wrote: You might use meta name=fragment content=! in your html page, and when the crawler requests the corresponding _escaped_fragment_= URL, you'll have a version without jQuery, where you load the results page fragment into the static HTML and return that. Depending on what your server looks like, it first has to recognize that it is getting a request for such a URL, and then it will have to produce the results page fragment and put it together with the static HTML - so everything happens on your server before you return a result. As long as the resulting DOM is the same as what the user would get, it should be ok. kathrin On Mon, Apr 19, 2010 at 2:15 AM, Dusty dustyrea...@gmail.com wrote: I've been reading the Making AJAX Applications Crawlable specs (http://code.google.com/intl/sv-SE/web/ajaxcrawling/docs/getting- started.html http://code.google.com/intl/sv-SE/web/ajaxcrawling/docs/getting-%0Ast.. .) and I'm at a loss at how to apply this to my application. I use jQuery to load an HTML page fragment into a DOM element on a mostly pure HTML page. It takes a few seconds for the 'results' page fragment to load from my server, this is why I use AJAX to dynamically load that content into the static page. Meanwhile the static page shows a 'throbber' and loading message. How exactly do I apply these specs in this scenario? I don't use the hash mark in my URLs. The page in question can be seen here: http://friendorfollow.com/dustyreagan/following/ Any pointers or recommendations on how to make the results crawlable? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options,
Re: How to see my posts
Hello Thomas, Here is the post I had posted a few days back. Regards Title:GWT ...geting 2 elements in one row and how to link to several html files instead on of only one Hello, I am new to GWT I am trying to create a simple login page which is linked to a login.html and login.css file I have a vertical panel and have created a Label for Username and a textfield for entering the userid. However when I say vPanel.add() to both of them...they go to different rows. How does one get them in one row. Will I have to use another container for each row.(Plese note that there could be several more rows like this ...name, first name, last name etc) What type of container do you suggest for each row should it be a horizontal Panel or something else? (I think the grid widget may do the job...but I dont really like keeping a count of which widget is in which grid) Also after hitting the submit button I would like the application to go to be linked to another html page e.g. index.html instead of the original login.html. How do I do that? Would appreciate some answers from knowledgeable folks on this. Regards, On Sat, Apr 17, 2010 at 3:11 PM, Thomas Broyer t.bro...@gmail.com wrote: On Apr 17, 5:41 am, Sid sidhar...@gmail.com wrote: Hello, I have made a post GWT ...geting 2 elements in one row and how to link to several html files instead on of only one a few days back. I do not know the status of this...neither do I know how to go to this post. I don't remember having seen it. Once logged in is there some link which says go to my posts or something like that. If you go to your Profile (link on the top right corner) you'll see your Recent Activity. -- Regards, Roland -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
problem related to populating list boxes
Hi I am Durgesh. I am facing a problem in populating list box frequently. I am using simple GWT 1.5. In my form there are 6-7 list boxes and many text boxes. I am populating this form from the view in database. I have written a service for that. But sometimes list boxes do not populate ...then i again click on tree panel and then it populates. My problem is only to populate list box is very slow. One more problem is that when i deploy my war file with another war file db get disconnected. Bot war file is using same datasource file in jboss . can any body reply Thanks Durgesh -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
[gwt-contrib] Re: GWTTestCase and JClassType
Can I find, somewhere, what arguments I need to pass to com.google.gwt.junit.JUnitShell when I want to start a gwt test... I always end up with error message there no URL was supplied. Is there some specific URL that I need to supply for GWT Test case? On Apr 17, 2:24 pm, Marko Vuksanovic markovuksano...@gmail.com wrote: Here's the patch which replaces the jars (patch set 1) in the tools folder and another (patch set 2) which updates build.xml and classpath files. http://gwt-code-reviews.appspot.com/334803/show I'm not sure if I should have opened two different issues, with different base URLs, for these two patches On Apr 16, 10:49 pm, Marko Vuksanovic markovuksano...@gmail.com wrote: Ok, I'll just save you some time... :) but will first check if everything is ok once the dependencies are replaced... On Fri, Apr 16, 2010 at 10:46 PM, Freeland Abbott fabb...@google.comwrote: I think that's correct, but we historically have been pretty lazy about updating our dependencies... On Fri, Apr 16, 2010 at 4:39 PM, Marko Vuksanovic markovuksano...@gmail.com wrote: One more question - why aren't JUnit 4 libraries used? I think junit4 supports junit3 test style? Am I right? On Fri, Apr 16, 2010 at 10:12 PM, Marko Vuksanovic markovuksano...@gmail.com wrote: I like challenges :):) On Fri, Apr 16, 2010 at 10:09 PM, John Tamplin j...@google.com wrote: On Fri, Apr 16, 2010 at 3:45 PM, Marko Vuksanovic markovuksano...@gmail.com wrote: I just noticed that there is HasAnnotations interface... I might try putting that to use... On Apr 16, 9:38 pm, Marko Vuksanovic markovuksano...@gmail.com wrote: Well I've been looking at the existing code and I have seen that JClassType implements getMethods(). Then I would be able to check if a method has Annotation applied - using isAnnotationPresent() method. I am not sure how to check if a method has an annotation applied and not to use the refelection package. The problem is that that package cannot be used in translatable code. Obviously I'm missing something here... You probably want to look at GWTRunnerGenerator, which generates the implementation of GWTRunner to actually run it (and has access to TypeOracle), or JUnitShell, which actually drives running the tests and can use reflection to look at the annotations (though be careful about different classloaders). That said, I suspect supporting JUnit4 is likely to be a lot of work. -- John A. Tamplin Software Engineer (GWT), Google -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors --http://groups.google.com/group/Google-Web-Toolkit-Contributors --http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Text Area enhancement
Hi, I want to get the coordinates of the Cursor position in TextArea so that I can show the popup appropriately. Please find the similar implementation of http://enobrev.info/cursor/. I am not sure whether a new method to get the coordinates of the cursor is really helpful to other but I think it would grea. Warm Regards, Allahbaksh -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Text Area enhancement
Allahbaksh, That seems like it would be useful, though looking at the code I'm a little wary as to whether it works in all circumstances (font-size changes, etc). The first step would be to convert it to Java (usually pretty straightforward) and test it under all the circumstances you can think of -- change the font-size, resize the element, try it on all browsers, and so forth. Cheers, joel. Le 19 avril 2010 03:02, Allahbaksh Asadullah a.allahba...@gmail.com a écrit : Hi, I want to get the coordinates of the Cursor position in TextArea so that I can show the popup appropriately. Please find the similar implementation of http://enobrev.info/cursor/. I am not sure whether a new method to get the coordinates of the cursor is really helpful to other but I think it would grea. Warm Regards, Allahbaksh -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Implement a selection column, sortable columns, and row hovering in MailRecipe (issue356801)
On 2010/04/16 21:30:35, Dan Rice wrote: LGTM http://gwt-code-reviews.appspot.com/356801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fixes incorrect direction of isAssignable check when using @UiField(provided = true) (issue359801)
On 2010/04/18 21:38:06, Ray Ryan wrote: Joel, if you can get to this first thing that would be great. Bob, if you're in a charitable mood and get there sooner, that would be great too. LGTM. http://gwt-code-reviews.appspot.com/359801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Re: GWTTestCase and JClassType
On Sat, Apr 17, 2010 at 8:24 AM, Marko Vuksanovic markovuksano...@gmail.com wrote: Here's the patch which replaces the jars (patch set 1) in the tools Don't delete the old jars, just add the new ones. That way, regardless of which version of source you check out, the tools directory will have what it needs. folder and another (patch set 2) which updates build.xml and classpath files. This one looks okay, but clearly can't be submitted without the first one. The junit dependency is so widespread it might make sense to define a macro for it in common.ant.xml. It won't save you anything this time, since you have to update all the cites to that macro, but it might be convenient for next time. http://gwt-code-reviews.appspot.com/334803/show I'm not sure if I should have opened two different issues, with different base URLs, for these two patches Typically, the multiple patch sets are opened for revisions of one atomic change. So I'd've done this with two changes (tools and trunk), but you might also have done it with one at the googlecode.com/svn level), but two patch sets with different svn roots and order dependencies between them is odd. On Apr 16, 10:49 pm, Marko Vuksanovic markovuksano...@gmail.com wrote: Ok, I'll just save you some time... :) but will first check if everything is ok once the dependencies are replaced... On Fri, Apr 16, 2010 at 10:46 PM, Freeland Abbott fabb...@google.com wrote: I think that's correct, but we historically have been pretty lazy about updating our dependencies... On Fri, Apr 16, 2010 at 4:39 PM, Marko Vuksanovic markovuksano...@gmail.com wrote: One more question - why aren't JUnit 4 libraries used? I think junit4 supports junit3 test style? Am I right? On Fri, Apr 16, 2010 at 10:12 PM, Marko Vuksanovic markovuksano...@gmail.com wrote: I like challenges :):) On Fri, Apr 16, 2010 at 10:09 PM, John Tamplin j...@google.com wrote: On Fri, Apr 16, 2010 at 3:45 PM, Marko Vuksanovic markovuksano...@gmail.com wrote: I just noticed that there is HasAnnotations interface... I might try putting that to use... On Apr 16, 9:38 pm, Marko Vuksanovic markovuksano...@gmail.com wrote: Well I've been looking at the existing code and I have seen that JClassType implements getMethods(). Then I would be able to check if a method has Annotation applied - using isAnnotationPresent() method. I am not sure how to check if a method has an annotation applied and not to use the refelection package. The problem is that that package cannot be used in translatable code. Obviously I'm missing something here... You probably want to look at GWTRunnerGenerator, which generates the implementation of GWTRunner to actually run it (and has access to TypeOracle), or JUnitShell, which actually drives running the tests and can use reflection to look at the annotations (though be careful about different classloaders). That said, I suspect supporting JUnit4 is likely to be a lot of work. -- John A. Tamplin Software Engineer (GWT), Google -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors --http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Fix floating-point string compare in CoverageTest (issue312804)
Reviewers: tobyr, Lex, Description: I think this never got tripped because we don't test with -ea on (although we really should). I do test with -ea, so I stumbled across this. The culprit was the 1.2f, which turns into something other than 1.2, at least in HtmlUnit in web mode. Fix for this test is to take the exact representation out of the equation. Please review this at http://gwt-code-reviews.appspot.com/312804/show Affected files: M user/test/com/google/gwt/dev/jjs/test/CoverageTest.java Index: user/test/com/google/gwt/dev/jjs/test/CoverageTest.java diff --git a/user/test/com/google/gwt/dev/jjs/test/CoverageTest.java b/user/test/com/google/gwt/dev/jjs/test/CoverageTest.java index 8493a0d6fb6c2f481cb721e5cd7eaca96abc92dd..bbfe2de42fc81e25978acfb6f907d67b04a22737 100644 --- a/user/test/com/google/gwt/dev/jjs/test/CoverageTest.java +++ b/user/test/com/google/gwt/dev/jjs/test/CoverageTest.java @@ -175,42 +175,42 @@ public class CoverageTest extends CoverageBase { assert i == 3 : true; fail(); } catch (AssertionError e) { -assertEquals(true, e.getMessage()); +assertEquals(String.valueOf(true), e.getMessage()); } try { assert i == 3 : 'c'; fail(); } catch (AssertionError e) { -assertEquals(c, e.getMessage()); +assertEquals(String.valueOf('c'), e.getMessage()); } try { assert i == 3 : 1.1; fail(); } catch (AssertionError e) { -assertEquals(1.1, e.getMessage()); +assertEquals(String.valueOf(1.1), e.getMessage()); } try { assert i == 3 : 1.2f; fail(); } catch (AssertionError e) { -assertEquals(1.2, e.getMessage()); +assertEquals(String.valueOf(1.2f), e.getMessage()); } try { assert i == 3 : 5; fail(); } catch (AssertionError e) { -assertEquals(5, e.getMessage()); +assertEquals(String.valueOf(5), e.getMessage()); } try { assert i == 3 : 6L; fail(); } catch (AssertionError e) { -assertEquals(6, e.getMessage()); +assertEquals(String.valueOf(6L), e.getMessage()); } try { @@ -220,16 +220,17 @@ public class CoverageTest extends CoverageBase { assertEquals(foo, e.getMessage()); } + Object object = new Object() { +@Override +public String toString() { + return bar; +} + }; try { -assert i == 3 : new Object() { - @Override - public String toString() { -return bar; - } -}; +assert i == 3 : object; fail(); } catch (AssertionError e) { -assertEquals(bar, e.getMessage()); +assertEquals(String.valueOf(object), e.getMessage()); } } -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Re: GWTTestCase and JClassType
I've added a patch set 3 which contains patch for tools folder with only junit4 jars added - junit3 jars still there. On Mon, Apr 19, 2010 at 4:38 PM, Freeland Abbott fabb...@google.com wrote: On Sat, Apr 17, 2010 at 8:24 AM, Marko Vuksanovic markovuksano...@gmail.com wrote: Here's the patch which replaces the jars (patch set 1) in the tools Don't delete the old jars, just add the new ones. That way, regardless of which version of source you check out, the tools directory will have what it needs. folder and another (patch set 2) which updates build.xml and classpath files. This one looks okay, but clearly can't be submitted without the first one. The junit dependency is so widespread it might make sense to define a macro for it in common.ant.xml. It won't save you anything this time, since you have to update all the cites to that macro, but it might be convenient for next time. http://gwt-code-reviews.appspot.com/334803/show I'm not sure if I should have opened two different issues, with different base URLs, for these two patches Typically, the multiple patch sets are opened for revisions of one atomic change. So I'd've done this with two changes (tools and trunk), but you might also have done it with one at the googlecode.com/svn level), but two patch sets with different svn roots and order dependencies between them is odd. On Apr 16, 10:49 pm, Marko Vuksanovic markovuksano...@gmail.com wrote: Ok, I'll just save you some time... :) but will first check if everything is ok once the dependencies are replaced... On Fri, Apr 16, 2010 at 10:46 PM, Freeland Abbott fabb...@google.com wrote: I think that's correct, but we historically have been pretty lazy about updating our dependencies... On Fri, Apr 16, 2010 at 4:39 PM, Marko Vuksanovic markovuksano...@gmail.com wrote: One more question - why aren't JUnit 4 libraries used? I think junit4 supports junit3 test style? Am I right? On Fri, Apr 16, 2010 at 10:12 PM, Marko Vuksanovic markovuksano...@gmail.com wrote: I like challenges :):) On Fri, Apr 16, 2010 at 10:09 PM, John Tamplin j...@google.com wrote: On Fri, Apr 16, 2010 at 3:45 PM, Marko Vuksanovic markovuksano...@gmail.com wrote: I just noticed that there is HasAnnotations interface... I might try putting that to use... On Apr 16, 9:38 pm, Marko Vuksanovic markovuksano...@gmail.com wrote: Well I've been looking at the existing code and I have seen that JClassType implements getMethods(). Then I would be able to check if a method has Annotation applied - using isAnnotationPresent() method. I am not sure how to check if a method has an annotation applied and not to use the refelection package. The problem is that that package cannot be used in translatable code. Obviously I'm missing something here... You probably want to look at GWTRunnerGenerator, which generates the implementation of GWTRunner to actually run it (and has access to TypeOracle), or JUnitShell, which actually drives running the tests and can use reflection to look at the annotations (though be careful about different classloaders). That said, I suspect supporting JUnit4 is likely to be a lot of work. -- John A. Tamplin Software Engineer (GWT), Google -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors --http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r7929 committed - Goodbye fake storage, welcome JPA with appEngine. Notes:...
Revision: 7929 Author: amitman...@google.com Date: Thu Apr 15 13:39:36 2010 Log: Goodbye fake storage, welcome JPA with appEngine. Notes: 1) Currently there are just 2 entities: Employee and Report. Any new entity must be added to the list in persistence.xml 2) Fixed findReportsByEmployee call. 3) A Report entity cannot refer to an Employee entity -- it instead refers to the Employee key due to current appEngine implementation http://code.google.com/appengine/docs/java/datastore/relationships.html#Unowned_Relationships 4) Running the project requires GPE because the appEngine jars are not present in our tools. Review at http://gwt-code-reviews.appspot.com/352801 Review by: rj...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=7929 Added: /trunk/bikeshed/src/META-INF /trunk/bikeshed/src/META-INF/persistence.xml /trunk/bikeshed/src/com/google/gwt/sample/expenses/server/domain/EMF.java Deleted: /trunk/bikeshed/src/com/google/gwt/sample/expenses/server/domain/CreationVisitor.java /trunk/bikeshed/src/com/google/gwt/sample/expenses/server/domain/Currency.java /trunk/bikeshed/src/com/google/gwt/sample/expenses/server/domain/Entity.java /trunk/bikeshed/src/com/google/gwt/sample/expenses/server/domain/EntityVisitor.java /trunk/bikeshed/src/com/google/gwt/sample/expenses/server/domain/NullFieldFiller.java /trunk/bikeshed/src/com/google/gwt/sample/expenses/server/domain/RelationshipRefreshingVisitor.java /trunk/bikeshed/src/com/google/gwt/sample/expenses/server/domain/RelationshipValidationVisitor.java /trunk/bikeshed/src/com/google/gwt/sample/expenses/server/domain/ReportItem.java /trunk/bikeshed/src/com/google/gwt/sample/expenses/server/domain/Status.java /trunk/bikeshed/src/com/google/gwt/sample/expenses/server/domain/Storage.java /trunk/bikeshed/test/com/google/gwt/sample Modified: /trunk/bikeshed/eclipse.README /trunk/bikeshed/src/com/google/gwt/requestfactory/server/RequestFactoryServlet.java /trunk/bikeshed/src/com/google/gwt/sample/expenses/gwt/request/ReportRequest.java /trunk/bikeshed/src/com/google/gwt/sample/expenses/server/ExpensesDataServlet.java /trunk/bikeshed/src/com/google/gwt/sample/expenses/server/domain/Employee.java /trunk/bikeshed/src/com/google/gwt/sample/expenses/server/domain/Report.java === --- /dev/null +++ /trunk/bikeshed/src/META-INF/persistence.xmlThu Apr 15 13:39:36 2010 @@ -0,0 +1,19 @@ +?xml version=1.0 encoding=UTF-8 ? +persistence xmlns=http://java.sun.com/xml/ns/persistence; +xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; +xsi:schemaLocation=http://java.sun.com/xml/ns/persistence +http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd; version=1.0 + +persistence-unit name=transactions-optional + providerorg.datanucleus.store.appengine.jpa.DatastorePersistenceProvider/provider + classcom.google.gwt.sample.expenses.server.domain.Employee/class +classcom.google.gwt.sample.expenses.server.domain.Report/class +exclude-unlisted-classestrue/exclude-unlisted-classes +properties +property name=datanucleus.NontransactionalRead value=true/ +property name=datanucleus.NontransactionalWrite value=true/ +property name=datanucleus.ConnectionURL value=appengine/ +/properties +/persistence-unit + +/persistence === --- /dev/null +++ /trunk/bikeshed/src/com/google/gwt/sample/expenses/server/domain/EMF.java Thu Apr 15 13:39:36 2010 @@ -0,0 +1,36 @@ +/* + * Copyright 2010 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the License); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ +package com.google.gwt.sample.expenses.server.domain; + +import javax.persistence.EntityManagerFactory; +import javax.persistence.Persistence; + +/** + * Factory for creating EntityManager. + */ +public final class EMF { +private static final EntityManagerFactory emfInstance = +Persistence.createEntityManagerFactory(transactions-optional); + +public static EntityManagerFactory get() { +return emfInstance; +} + +private EMF() { + // nothing +} +} + === --- /trunk/bikeshed/src/com/google/gwt/sample/expenses/server/domain/CreationVisitor.java Fri Apr 9 11:12:18 2010 +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2010 Google Inc. - * - * Licensed under the Apache License,
[gwt-contrib] [google-web-toolkit] r7930 committed - Remove persistence.xml from gwt-biikeshed.jar
Revision: 7930 Author: gwt.mirror...@gmail.com Date: Mon Apr 19 08:27:00 2010 Log: Remove persistence.xml from gwt-biikeshed.jar http://code.google.com/p/google-web-toolkit/source/detail?r=7930 Modified: /trunk/bikeshed/build.xml === --- /trunk/bikeshed/build.xml Fri Apr 2 19:22:25 2010 +++ /trunk/bikeshed/build.xml Mon Apr 19 08:27:00 2010 @@ -36,7 +36,7 @@ description=Build and package this project mkdir dir=${gwt.build.lib} / gwt.jar - fileset dir=src excludes=**/sample/** / + fileset dir=src excludes=**/sample/** **/META-INF/** / fileset dir=${javac.out} / /gwt.jar /target -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fix floating-point string compare in CoverageTest (issue312804)
LGTM. An additional way to make such a test more reliable is to choose floating point numbers that are exactly representable, such as 1.5 and 1.25, and thus don't depend on single- versus double-precision. http://gwt-code-reviews.appspot.com/312804/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r7931 committed - Fixes a couple of issues with the RemoteUI and GPE DevMode view intera...
Revision: 7931 Author: jasonpar...@google.com Date: Fri Apr 16 06:41:24 2010 Log: Fixes a couple of issues with the RemoteUI and GPE DevMode view interaction. The problem is GPE shows the startup URLs in the DevMode view _before_ the modules were fully loaded. The root issue is GPE does not receive the moduleLoadComplete message. When we went to push this message to GPE, we discovered the protobuf is too restricted: the RequestType cannot have new values and maintain backwards compatibility. This is because requestType is a required field, so older GPE versions will not understand the new moduleLoadComplete message and thus have an undefined requestType, at which point an error is thrown because requestType is required. For the protobuf issue, this patch changes the required to optional. We will still have compatibility issues with GWT or GPE versions earlier than this patch, but this allows for future versions to have new values added to the enums. It is up to the application layer to check the validity of the message. For the GPE startup URL issue, it will show a Loading state as soon as DevMode is launched. Then, GWT will send the startup URLs in moduleLoadComplete. Upon receiving these, GPE will display them. The user will not see startup URLs before they are ready. Review at http://gwt-code-reviews.appspot.com/323801 Review by: rda...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=7931 Modified: /trunk/dev/core/src/com/google/gwt/dev/shell/remoteui/DevModeServiceRequestProcessor.java /trunk/dev/core/src/com/google/gwt/dev/shell/remoteui/MessageTransport.java /trunk/dev/core/src/com/google/gwt/dev/shell/remoteui/RemoteMessageProto.java /trunk/dev/core/src/com/google/gwt/dev/shell/remoteui/RemoteUI.java /trunk/dev/core/src/com/google/gwt/dev/shell/remoteui/ViewerServiceClient.java /trunk/dev/core/src/com/google/gwt/dev/shell/remoteui/remotemessage.proto === --- /trunk/dev/core/src/com/google/gwt/dev/shell/remoteui/DevModeServiceRequestProcessor.java Fri Nov 20 15:40:44 2009 +++ /trunk/dev/core/src/com/google/gwt/dev/shell/remoteui/DevModeServiceRequestProcessor.java Fri Apr 16 06:41:24 2010 @@ -18,6 +18,7 @@ import com.google.gwt.dev.shell.remoteui.RemoteMessageProto.Message.Request; import com.google.gwt.dev.shell.remoteui.RemoteMessageProto.Message.Response; import com.google.gwt.dev.shell.remoteui.RemoteMessageProto.Message.Request.DevModeRequest; +import com.google.gwt.dev.shell.remoteui.RemoteMessageProto.Message.Request.DevModeRequest.RequestType; import com.google.gwt.dev.shell.remoteui.RemoteMessageProto.Message.Response.DevModeResponse; import com.google.gwt.dev.shell.remoteui.RemoteMessageProto.Message.Response.DevModeResponse.CapabilityExchange; @@ -48,21 +49,24 @@ + request.getServiceType().name()); } -switch (request.getDevModeRequest().getRequestType()) { - case CAPABILITY_EXCHANGE: -return processCapabilityExchange(); - - case RESTART_WEB_SERVER: -return processRestartServer(); - - default: { -break; +RequestType requestType = request.getDevModeRequest().getRequestType(); +if (requestType != null) { + switch (requestType) { +case CAPABILITY_EXCHANGE: + return processCapabilityExchange(); + +case RESTART_WEB_SERVER: + return processRestartServer(); + +default: { + break; +} } } throw new IllegalArgumentException( Unknown DevModeService Request: The DevModeService cannot handle requests of type -+ request.getDevModeRequest().getRequestType().name()); ++ requestType == null ? (unknown) : requestType.name()); } private Response processCapabilityExchange() { === --- /trunk/dev/core/src/com/google/gwt/dev/shell/remoteui/MessageTransport.java Fri Nov 20 15:40:44 2009 +++ /trunk/dev/core/src/com/google/gwt/dev/shell/remoteui/MessageTransport.java Fri Apr 16 06:41:24 2010 @@ -374,7 +374,14 @@ private void processMessage(final Message message) throws InterruptedException { -switch (message.getMessageType()) { + +MessageType messageType = message.getMessageType(); +if (messageType == null) { + processUnknownMessageType(message.getMessageId(), unknown); + return; +} + +switch (messageType) { case RESPONSE: { processServerResponse(message.getMessageId(), message.getResponse()); break; @@ -392,7 +399,7 @@ default: { processUnknownMessageType(message.getMessageId(), -message.getMessageType().name()); +messageType.name()); break; } } === --- /trunk/dev/core/src/com/google/gwt/dev/shell/remoteui/RemoteMessageProto.java Mon Nov 23 21:20:12 2009 +++
[gwt-contrib] Re: Fix floating-point string compare in CoverageTest (issue312804)
LGTM http://gwt-code-reviews.appspot.com/312804/diff/1/2 File user/test/com/google/gwt/dev/jjs/test/CoverageTest.java (left): http://gwt-code-reviews.appspot.com/312804/diff/1/2#oldcode185 user/test/com/google/gwt/dev/jjs/test/CoverageTest.java:185: assertEquals(c, e.getMessage()); The String.valueOf's for the non-floating-point types seem gratuitous to me. If I was looking at this code later without the benefit of knowing what had happened here, I would refactor the valueOfs right back out. Normally in situations like this, you use a form of assert that takes a delta for comparison, and the reasoning is obvious. Since that won't work here, I'd personally rather see valueOfs on just the floating point representations with a small comment. http://gwt-code-reviews.appspot.com/312804/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r7933 committed - Removed LongString and fixed the currently simple sync operation....
Revision: 7933 Author: amitman...@google.com Date: Fri Apr 16 14:50:53 2010 Log: Removed LongString and fixed the currently simple sync operation. Patch by: amitmanjhi Review by: rjrjr (desk review) Review at http://gwt-code-reviews.appspot.com/358801 http://code.google.com/p/google-web-toolkit/source/detail?r=7933 Deleted: /trunk/bikeshed/src/com/google/gwt/requestfactory/shared/LongString.java Modified: /trunk/bikeshed/src/com/google/gwt/sample/expenses/server/ExpensesDataServlet.java /trunk/bikeshed/src/com/google/gwt/valuestore/shared/Record.java /trunk/bikeshed/src/com/google/gwt/valuestore/shared/impl/RecordImpl.java /trunk/bikeshed/src/com/google/gwt/valuestore/shared/impl/RecordJsoImpl.java === --- /trunk/bikeshed/src/com/google/gwt/requestfactory/shared/LongString.java Fri Apr 9 11:12:18 2010 +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2010 Google Inc. - * - * Licensed under the Apache License, Version 2.0 (the License); you may not - * use this file except in compliance with the License. You may obtain a copy of - * the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an AS IS BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations under - * the License. - */ -package com.google.gwt.requestfactory.shared; - -/** - * Marks a String {...@link com.google.gwt.valuestore.shared.Property Property} - * that represents a long server side. - */ -public @interface LongString { - -} === --- /trunk/bikeshed/src/com/google/gwt/sample/expenses/server/ExpensesDataServlet.java Fri Apr 16 12:47:47 2010 +++ /trunk/bikeshed/src/com/google/gwt/sample/expenses/server/ExpensesDataServlet.java Fri Apr 16 14:50:53 2010 @@ -19,7 +19,6 @@ import com.google.gwt.sample.expenses.gwt.request.ReportRecord; import com.google.gwt.sample.expenses.server.domain.Report; import com.google.gwt.sample.expenses.server.domain.Employee; -import com.google.gwt.sample.expenses.server.domain.Report; import com.google.gwt.valuestore.shared.Record; import org.json.JSONArray; === --- /trunk/bikeshed/src/com/google/gwt/valuestore/shared/Record.java Fri Apr 16 12:47:47 2010 +++ /trunk/bikeshed/src/com/google/gwt/valuestore/shared/Record.java Fri Apr 16 14:50:53 2010 @@ -15,15 +15,17 @@ */ package com.google.gwt.valuestore.shared; - /** * An entry in a {...@link com.google.gwt.valuestore.shared.ValueStore ValueStore}. */ public interface Record { - public static final PropertyString id = new PropertyString(id, - String.class); - public static final PropertyInteger version = new PropertyInteger( - version, Integer.class); + PropertyString id = new PropertyString(id, String.class); + /* + * TODO: because of possible appEngine/dataNucleus bug, the version has to be + * a long instead of an int on the server side. The choice results in version + * being string on the client side. Temporary workaround. + */ + PropertyString version = new PropertyString(version, String.class); /** * Get this record's value for the given property. Behavior is undefined if @@ -43,18 +45,17 @@ String getId(); /** - * Get a pointer to value of this property in the receiver, useful - * for making rpc requests against values that have not yet reached - * the client. + * Get a pointer to value of this property in the receiver, useful for + * making rpc requests against values that have not yet reached the client. * * @param V the type of the property value - * @param property the property referrred to - * @return a reference to the receiver's value of this propertyf + * @param property the property referred to + * @return a reference to the receiver's value of this property */ V PropertyReferenceV getRef(PropertyV property); /** * @return the version of this Record */ - Integer getVersion(); -} + String getVersion(); +} === --- /trunk/bikeshed/src/com/google/gwt/valuestore/shared/impl/RecordImpl.java Fri Apr 16 12:47:47 2010 +++ /trunk/bikeshed/src/com/google/gwt/valuestore/shared/impl/RecordImpl.java Fri Apr 16 14:50:53 2010 @@ -54,7 +54,7 @@ return jso.getSchema(); } - public Integer getVersion() { + public String getVersion() { return jso.getVersion(); } } === --- /trunk/bikeshed/src/com/google/gwt/valuestore/shared/impl/RecordJsoImpl.java Fri Apr 16 12:47:47 2010 +++ /trunk/bikeshed/src/com/google/gwt/valuestore/shared/impl/RecordJsoImpl.java Fri Apr 16 14:50:53 2010 @@ -90,7 +90,7 @@ return this['__key']; }-*/; - public final
[gwt-contrib] [google-web-toolkit] r7934 committed - CFG: Always jumping to first case statement
Revision: 7934 Author: aizat...@google.com Date: Fri Apr 16 15:40:06 2010 Log: CFG: Always jumping to first case statement http://code.google.com/p/google-web-toolkit/source/detail?r=7934 Added: /trunk/dev/core/src/com/google/gwt/dev/jjs/impl/gflow/cfg/CfgSwitchGotoNode.java Modified: /trunk/dev/core/src/com/google/gwt/dev/jjs/impl/gflow/cfg/CfgBuilder.java /trunk/dev/core/src/com/google/gwt/dev/jjs/impl/gflow/cfg/CfgVisitor.java /trunk/dev/core/test/com/google/gwt/dev/jjs/impl/gflow/cfg/CfgBuilderTest.java === --- /dev/null +++ /trunk/dev/core/src/com/google/gwt/dev/jjs/impl/gflow/cfg/CfgSwitchGotoNode.java Fri Apr 16 15:40:06 2010 @@ -0,0 +1,37 @@ +/* + * Copyright 2010 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the License); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ +package com.google.gwt.dev.jjs.impl.gflow.cfg; + +import com.google.gwt.dev.jjs.ast.JSwitchStatement; + +/** + * Goto to first switch case statement. + */ +public class CfgSwitchGotoNode extends CfgGotoNodeJSwitchStatement { + public CfgSwitchGotoNode(CfgNode? parent, JSwitchStatement node) { +super(parent, node); + } + + @Override + public void accept(CfgVisitor visitor) { +visitor.visitSwitchGotoNode(this); + } + + @Override + protected CfgNode? cloneImpl() { +return new CfgSwitchGotoNode(getParent(), getJNode()); + } +} === --- /trunk/dev/core/src/com/google/gwt/dev/jjs/impl/gflow/cfg/CfgBuilder.java Fri Mar 12 08:11:14 2010 +++ /trunk/dev/core/src/com/google/gwt/dev/jjs/impl/gflow/cfg/CfgBuilder.java Fri Apr 16 15:40:06 2010 @@ -606,7 +606,6 @@ @Override public boolean visit(JSwitchStatement x, Context ctx) { pushNode(new CfgStatementNodeJStatement(parent, x)); - // TODO: Add statement node accept(x.getExpr()); JSwitchStatement oldSwitchStatement = switchStatement; @@ -615,15 +614,26 @@ ListExit oldCaseThenExits = removeExits(Exit.Reason.CASE_THEN); ListExit oldBreakExits = removeExits(Exit.Reason.BREAK); switchStatement = x; + + // Goto to the first non-default node. + CfgSwitchGotoNode gotoNode = addNode(new CfgSwitchGotoNode(parent, x)); + Exit gotoExit = Exit.createNormal(gotoNode, null); int defaultPos = -1; ListExit breakExits = new ArrayListExit(); - for (JStatement s : x.getBody().getStatements()) { + ListJStatement statements = x.getBody().getStatements(); + + for (JStatement s : statements) { if (s instanceof JCaseStatement) { if (((JCaseStatement) s).getExpr() != null) { // case label +if (gotoExit != null) { + // This is first non-default case. + addExit(gotoExit); + gotoExit = null; +} ListExit elseExits = removeExits(Exit.Reason.CASE_ELSE); for (Exit e : elseExits) { addNormalExit(e.getNode(), e.role); @@ -641,6 +651,16 @@ accept(s); breakExits.addAll(removeExits(Exit.Reason.BREAK)); } + + if (gotoExit != null) { +// Happens when there are no case statements. +if (defaultPos = 0) { + addEdge(gotoExit, nodes.get(defaultPos)); +} else { + addExit(gotoExit); +} +gotoExit = null; + } ListExit thenExits = removeExits(Exit.Reason.CASE_THEN); for (Exit e : thenExits) { === --- /trunk/dev/core/src/com/google/gwt/dev/jjs/impl/gflow/cfg/CfgVisitor.java Tue Mar 9 10:54:56 2010 +++ /trunk/dev/core/src/com/google/gwt/dev/jjs/impl/gflow/cfg/CfgVisitor.java Fri Apr 16 15:40:06 2010 @@ -104,6 +104,10 @@ public void visitStatementNode(CfgStatementNode? node) { visitSimpleNode(node); } + + public void visitSwitchGotoNode(CfgSwitchGotoNode node) { +visitGotoNode(node); + } public void visitThrowNode(CfgThrowNode node) { visitNode(node); === --- /trunk/dev/core/test/com/google/gwt/dev/jjs/impl/gflow/cfg/CfgBuilderTest.java Fri Mar 12 08:11:14 2010 +++ /trunk/dev/core/test/com/google/gwt/dev/jjs/impl/gflow/cfg/CfgBuilderTest.java Fri Apr 16 15:40:06 2010 @@ -1105,6 +1105,7 @@ BLOCK - [*], STMT - [*], READ(i) - [*], +GOTO - [*], STMT - [*], COND (EntryPoint.i == 1) - [THEN=*, ELSE=1], STMT -
[gwt-contrib] [google-web-toolkit] r7935 committed - Fix a findbugs problem...
Revision: 7935 Author: r...@google.com Date: Mon Apr 19 04:47:52 2010 Log: Fix a findbugs problem Review by: rj...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=7935 Modified: /trunk/bikeshed/src/com/google/gwt/requestfactory/server/RequestFactoryServlet.java === --- /trunk/bikeshed/src/com/google/gwt/requestfactory/server/RequestFactoryServlet.java Fri Apr 16 12:47:47 2010 +++ /trunk/bikeshed/src/com/google/gwt/requestfactory/server/RequestFactoryServlet.java Mon Apr 19 04:47:52 2010 @@ -210,12 +210,16 @@ int contentLength = request.getContentLength(); byte contentBytes[] = new byte[contentLength]; BufferedInputStream bis = new BufferedInputStream(request.getInputStream()); -int readBytes = 0; -while (bis.read(contentBytes, readBytes, contentLength - readBytes) 0) { - // read the contents -} -// TODO: encoding issues? -return new String(contentBytes); +try { + int readBytes = 0; + while (bis.read(contentBytes, readBytes, contentLength - readBytes) 0) { +// read the contents + } + // TODO: encoding issues? + return new String(contentBytes); +} finally { + bis.close(); +} } /** -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r7936 committed - Implement a selection column, sortable columns, and row hovering in Ma...
Revision: 7936 Author: r...@google.com Date: Mon Apr 19 04:48:30 2010 Log: Implement a selection column, sortable columns, and row hovering in MailRecipe Review at http://gwt-code-reviews.appspot.com/356801 Review by: j...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=7936 Added: /trunk/bikeshed/src/com/google/gwt/bikeshed/cells/client/ClickableTextCell.java /trunk/bikeshed/src/com/google/gwt/sample/bikeshed/cookbook/client/SelectionColumn.java Modified: /trunk/bikeshed/src/com/google/gwt/bikeshed/list/client/Column.java /trunk/bikeshed/src/com/google/gwt/bikeshed/list/client/Header.java /trunk/bikeshed/src/com/google/gwt/bikeshed/list/client/PagingTableListView.java /trunk/bikeshed/src/com/google/gwt/bikeshed/list/client/TextHeader.java /trunk/bikeshed/src/com/google/gwt/bikeshed/list/shared/ListViewAdapter.java /trunk/bikeshed/src/com/google/gwt/sample/bikeshed/cookbook/client/EditableTableRecipe.java /trunk/bikeshed/src/com/google/gwt/sample/bikeshed/cookbook/client/MailRecipe.java /trunk/bikeshed/war/Cookbook.css === --- /dev/null +++ /trunk/bikeshed/src/com/google/gwt/bikeshed/cells/client/ClickableTextCell.java Mon Apr 19 04:48:30 2010 @@ -0,0 +1,56 @@ +/* + * Copyright 2010 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the License); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ +package com.google.gwt.bikeshed.cells.client; + +import com.google.gwt.dom.client.Element; +import com.google.gwt.dom.client.NativeEvent; + +/** + * A {...@link Cell} used to render text. Clicking on the call causes its + * @{link ValueUpdater} to be called. + */ +public class ClickableTextCell extends CellString, Void { + + private static ClickableTextCell instance; + + public static ClickableTextCell getInstance() { +if (instance == null) { + instance = new ClickableTextCell(); +} +return instance; + } + + private ClickableTextCell() { + } + + @Override + public Void onBrowserEvent(Element parent, String value, Void viewData, + NativeEvent event, ValueUpdaterString, Void valueUpdater) { +String type = event.getType(); +System.out.println(type); +if (type.equals(click)) { + valueUpdater.update(value, null); +} +return null; + } + + @Override + public void render(String value, Void viewData, StringBuilder sb) { +if (value != null) { + sb.append(value); +} + } +} === --- /dev/null +++ /trunk/bikeshed/src/com/google/gwt/sample/bikeshed/cookbook/client/SelectionColumn.java Mon Apr 19 04:48:30 2010 @@ -0,0 +1,52 @@ +/* + * Copyright 2010 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the License); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ +package com.google.gwt.sample.bikeshed.cookbook.client; + +import com.google.gwt.bikeshed.cells.client.CheckboxCell; +import com.google.gwt.bikeshed.cells.client.FieldUpdater; +import com.google.gwt.bikeshed.list.client.SimpleColumn; +import com.google.gwt.bikeshed.list.shared.SelectionModel; + +/** + * A column that displays a checkbox that is synchronized with a given + * selection model. + * + * @param T the record data type, used by the row and the selection model + */ +public class SelectionColumnT extends SimpleColumnT, Boolean { + + private final SelectionModelT selectionModel; + + public SelectionColumn(final SelectionModelT selectionModel) { +super(new CheckboxCell()); +setFieldUpdater(new FieldUpdaterT, Boolean, Void() { + public void update(int index, T object, Boolean value, Void viewData) { +selectionModel.setSelected(object, value); + } +}); +this.selectionModel = selectionModel; + } + + @Override + public boolean dependsOnSelection() { +return true; + } + + @Override + public Boolean getValue(T object) { +return selectionModel.isSelected(object); + } +} === --- /trunk/bikeshed/src/com/google/gwt/bikeshed/list/client/Column.java
[gwt-contrib] [google-web-toolkit] r7937 committed - Sort format....
Revision: 7937 Author: sco...@google.com Date: Mon Apr 19 04:52:31 2010 Log: Sort format. Review by: j...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=7937 Modified: /trunk/dev/core/src/com/google/gwt/dev/DevMode.java /trunk/dev/core/src/com/google/gwt/dev/DevModeBase.java /trunk/dev/core/src/com/google/gwt/dev/shell/jetty/JettyLauncher.java /trunk/dev/core/src/com/google/gwt/dev/util/arg/ArgHandlerWarDir.java /trunk/user/src/com/google/gwt/junit/CompileStrategy.java /trunk/user/src/com/google/gwt/junit/JUnitShell.java === --- /trunk/dev/core/src/com/google/gwt/dev/DevMode.java Tue Mar 30 09:15:42 2010 +++ /trunk/dev/core/src/com/google/gwt/dev/DevMode.java Mon Apr 19 04:52:31 2010 @@ -67,7 +67,7 @@ if (options.isNoServer()) { return null; } else { -return new String[] {getTag(), JettyLauncher.class.getName()}; +return new String[]{getTag(), JettyLauncher.class.getName()}; } } @@ -83,7 +83,7 @@ @Override public String[] getTagArgs() { - return new String[] {servletContainerLauncher[:args]}; + return new String[]{servletContainerLauncher[:args]}; } @Override @@ -145,7 +145,7 @@ @Override public String[] getTagArgs() { - return new String[] {url}; + return new String[]{url}; } @Override === --- /trunk/dev/core/src/com/google/gwt/dev/DevModeBase.java Tue Mar 30 09:15:42 2010 +++ /trunk/dev/core/src/com/google/gwt/dev/DevModeBase.java Mon Apr 19 04:52:31 2010 @@ -121,7 +121,7 @@ @Override public String[] getDefaultArgs() { - return new String[] {BIND_ADDRESS_TAG, DEFAULT_BIND_ADDRESS}; + return new String[]{BIND_ADDRESS_TAG, DEFAULT_BIND_ADDRESS}; } @Override @@ -137,7 +137,7 @@ @Override public String[] getTagArgs() { - return new String[] {host-name-or-address}; + return new String[]{host-name-or-address}; } @Override @@ -177,7 +177,7 @@ @Override public String[] getTagArgs() { - return new String[] {blacklist-string}; + return new String[]{blacklist-string}; } @Override @@ -202,7 +202,7 @@ @Override public String[] getDefaultArgs() { - return new String[] {CODE_SERVER_PORT_TAG, DEFAULT_PORT}; + return new String[]{CODE_SERVER_PORT_TAG, DEFAULT_PORT}; } @Override @@ -218,7 +218,7 @@ @Override public String[] getTagArgs() { - return new String[] {port-number | \auto\}; + return new String[]{port-number | \auto\}; } @Override @@ -259,7 +259,7 @@ @Override public String[] getTagArgs() { - return new String[] {directory}; + return new String[]{directory}; } @Override @@ -309,7 +309,7 @@ @Override public String[] getDefaultArgs() { - return new String[] {getTag(), }; + return new String[]{getTag(), }; } @Override @@ -324,7 +324,7 @@ @Override public String[] getTagArgs() { - return new String[] {port-number | \auto\}; + return new String[]{port-number | \auto\}; } @Override @@ -363,7 +363,7 @@ @Override public String[] getTagArgs() { - return new String[] {port-number:client-id-string | host-string:port-number:client-id-string}; + return new String[]{port-number:client-id-string | host-string:port-number:client-id-string}; } @Override @@ -419,7 +419,7 @@ @Override public String[] getTagArgs() { - return new String[] {whitelist-string}; + return new String[]{whitelist-string}; } @Override @@ -688,6 +688,8 @@ } return buf.toString(); } + + protected TreeLogger.Type baseLogLevelForUI = null; protected String bindAddress; @@ -700,7 +702,6 @@ protected final HostedModeBaseOptions options; protected DevModeUI ui = null; - protected TreeLogger.Type baseLogLevelForUI = null; private final Semaphore blockUntilDone = new Semaphore(0); === --- /trunk/dev/core/src/com/google/gwt/dev/shell/jetty/JettyLauncher.java Fri Jan 22 10:18:29 2010 +++ /trunk/dev/core/src/com/google/gwt/dev/shell/jetty/JettyLauncher.java Mon Apr 19 04:52:31 2010 @@ -475,13 +475,13 @@ System.setProperty(build.compiler, antJavaC); } - private final Object privateInstanceLock = new Object(); - // default value used if setBaseLogLevel isn't called private TreeLogger.Type baseLogLevel = TreeLogger.INFO; private String bindAddress = null; + private final Object privateInstanceLock = new Object(); + @Override public String getName() { return Jetty; === --- /trunk/dev/core/src/com/google/gwt/dev/util/arg/ArgHandlerWarDir.java Thu Nov 19 19:49:52 2009 +++ /trunk/dev/core/src/com/google/gwt/dev/util/arg/ArgHandlerWarDir.java Mon Apr 19 04:52:31 2010 @@ -31,7
[gwt-contrib] [google-web-toolkit] r7938 committed - Removes an outdated assertion in CommandServerSerializationStreamReade...
Revision: 7938 Author: sco...@google.com Date: Mon Apr 19 05:23:03 2010 Log: Removes an outdated assertion in CommandServerSerializationStreamReader. This assertion is not true for Collections.emptySet/List/Map. Review by: bobv (desk) http://code.google.com/p/google-web-toolkit/source/detail?r=7938 Modified: /trunk/user/src/com/google/gwt/rpc/server/CommandServerSerializationStreamReader.java === --- /trunk/user/src/com/google/gwt/rpc/server/CommandServerSerializationStreamReader.java Tue Nov 3 08:52:16 2009 +++ /trunk/user/src/com/google/gwt/rpc/server/CommandServerSerializationStreamReader.java Mon Apr 19 05:23:03 2010 @@ -282,7 +282,6 @@ public void prepareToRead(ListValueCommand commands) { values = commands.iterator(); -assert values.hasNext() : No commands; } public boolean readBoolean() throws SerializationException { -- http://groups.google.com/group/Google-Web-Toolkit-Contributors