Re: Dealing with javascript functions as parameters and properties
Hey Jens, thanks for your help! For a concrete example, there is a javascript function in the library called delayedCall(), which takes in among its arguments, an arbitrary function, and an optional array of parameters for that function. Ideally, I would like to have a simple @JsMethod wrapper around this function, but I can't quite figure out how to model the function parameter, since it can be a function with arbitrary parameter types, etc... but when using a @JsFunction annotated interface, it looks like I need to predetermine at least the types/number of parameters. Using a generic method I can use an arbitrary parameter and return type, but I still don't have the freedom to have arbitrary number of parameters with arbitrary types. Is there any way around this, or is this just one of those JS things not possible in Java. On Wednesday, August 16, 2017 at 3:17:44 AM UTC-7, Jens wrote: > > > > Am Mittwoch, 16. August 2017 09:24:49 UTC+2 schrieb Bill Tang: >> >> I am working on a Jsinterop wrapper for the GSAP javascript library, and >> I am quite new to GWT, so I have come across a few problems I am not sure >> how to solve. >> >> My main issue revolves around trying to wrap javascript functions into >> Java objects. >> >> For example, if I have a native javascript function that has a function >> as one of its parameters, how can I go about wrapping this function >> in java? >> > > The parameter that is a JS Function should be modeled using a Java > functional interface, e.g. JsFunction<In, Out> { Out exec(In input); }. > Then you can use Java method references or lambdas. > > > >> And if a javascript class has a function has one of its properties, how >> can I go about wrapping this property? >> > > Similar as above. In Java the property type would be a @JsFunction > annotated interface. > > > I've had some success using the @JsFunction annotation along with >> functional interfaces, but I am faced with the problem >> where I have to declare return types, parameters, and paramater types in >> the java interface, when I want to be able to supply >> any arbitrary function, just like I would in native javascript. Is there >> any way to mimic this functionality? >> > > Java is strongly typed, so some JS things are not possible in Java. Do you > have a concrete example? Usually JS libs have some rules to functions and > which parameters they expect. If you have trouble with so called "union > types" you can take a look at > https://docs.google.com/document/d/14mQeAGQ9M_5uTTUbzRQzCYETA887dTO-xFLtQhgUXXk/edit > > to see how the jsinterop generator handles it. > > -- J. > -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at https://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Dealing with javascript functions as parameters and properties
I am working on a Jsinterop wrapper for the GSAP javascript library, and I am quite new to GWT, so I have come across a few problems I am not sure how to solve. My main issue revolves around trying to wrap javascript functions into Java objects. For example, if I have a native javascript function that has a function as one of its parameters, how can I go about wrapping this function in java? And if a javascript class has a function has one of its properties, how can I go about wrapping this property? I've had some success using the @JsFunction annotation along with functional interfaces, but I am faced with the problem where I have to declare return types, parameters, and paramater types in the java interface, when I want to be able to supply any arbitrary function, just like I would in native javascript. Is there any way to mimic this functionality? Thanks for your help! -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at https://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
[gwt-contrib] Extensible Elemental
The ability to wrap our own code around the WebIDL bindings would be really handy for us. I just wanted to raise the idea of this being seperated out from gwt as part of the gwt nextgen work. For example, it would be great if we could submit a delegate API that's called by the Elemental WebIDL parser that then renders our code inline with respect to our specific use case. It seems to me there are quite a few groups now working on java tech in the browser, for example, java2script, teavm, dragome, and doppio, libgdx, etc all with different goals and features. A common API could be useful to some of those projects. -- You received this message because you are subscribed to the Google Groups GWT Contributors group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/98644499-b1a6-41a1-9c7e-a0c5e6f371fc%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
EntityProxy getId is always null for Entity with Composite Key
My Entity uses a @EmbeddedId for its id. I can see that the getId on the entity in the server is returning an instance of the pk class, but it ends up being null in the corresponding entity proxy instance on the client. request.findAllAccounts() .fire(new ReceiverListAccountProxy() { @Override public void onSuccess(ListAccountProxy response) { for (AccountProxy account: response) { Assert.notNull(account.getId()); } } }); public class Account { @EmbeddedId private AccountPk id; public AccountPk getId() { return this.id; } public void setId(AccountPk id) { this.id = id; } } @Embeddable public class AccountPk implements Serializable { private static final long serialVersionUID = 1434674L; @Column(name=member) private Long memberId; @Column(name=account_type) private String accountTypeId; @Column(name=group_type) private String groupTypeId; @Column(name=cert_ln_number) private String certLnNumber; public AccountPk() {} public AccountPk(String accountTypeId, String groupTypeId, String certLnNumber, Long memberId) { this.accountTypeId = accountTypeId; this.groupTypeId = groupTypeId; this.certLnNumber = certLnNumber; this.memberId = memberId; } @ProxyForName(value = com.sharetec.mobile.server.domain.Account, locator = com.sharetec.mobile.server.locator.AccountLocator) public interface AccountProxy extends EntityProxy { abstract AccountPkProxy getId(); abstract Integer getVersion(); abstract Date getLastActivityDate(); abstract void setLastActivityDate(Date lastActivityDate); abstract AccountTypeProxy getAccountType(); abstract void setAccountType(AccountTypeProxy accountType); abstract CreditUnionMemberProxy getMember(); abstract void setMember(CreditUnionMemberProxy member); abstract String getDescription(); abstract void setDescription(String description); } @Component public class AccountLocator extends LocatorAccount, AccountPk { public Account create(Class? extends com.sharetec.mobile.server.domain.Account clazz) { return new Account(); } public Account find(Class? extends com.sharetec.mobile.server.domain.Account clazz, AccountPk id) { return Account.findAccount(id); } public Classcom.sharetec.mobile.server.domain.Account getDomainType() { return Account.class; } public AccountPk getId(Account account) { return account.getId(); } public ClassAccountPk getIdType() { return AccountPk.class; } public Object getVersion(Account account) { return account.getVersion(); } } @ProxyFor(AccountPk.class) public interface AccountPkProxy extends ValueProxy { String getCertLnNumber(); String getAccountTypeId(); String getGroupTypeId(); Long getMemberId(); void setCertLnNumber(String certLnNumber); void setAccountTypeId(String accountTypeId); void setGroupTypeId(String groupTypeId); void setMemberId(Long memberId); } -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: Eclipse not recognizing GWT on auto import
Other imports work, even the lib-gwt-svg from Vectomatic that I added. I copied one of the samples from the gwt directory (Hello) and tried to import it via create project from existing ant build but that didn't work. This is not a show stopper. But it is annoying. :( On Tuesday, February 19, 2013 5:23:31 AM UTC-5, membersound wrote: Do other imports work? No: maybe reinstall eclipse. Yes: import an existing example project and try if imports work there. Or create a gwt archetype (if that exists)? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
mixing mvp paradigms
I recently refactored my application to mvp activities and places. I have an application level menu bar; when an menu is clicked, an activity for that menu item's place is started and the content area is set accordingly. Makes perfect sense to me. But I'm now thinking about the menu bar itself. I want all the benefits of mvp there also. I want to be able to execute a service that returns the menu items that the logged in user has access to. I want to be able to swap its view out. I want the handlers to be encapsulated outside of the view, etc. But the Activity/Place paradigm doesn't make sense to me here. The display area for the menu bar only needs to get set once, a single instance of a presenter can be set on the view, etc. To use Activity/Place, I would need to create an ActivityManager for its display area, a mapper, activity, and place; and do a PlaceController.goto in the onModuleLoad. Seems more natural to let the uibinder create the view and set its presenter directly (I'd use gin to inject it). In other words, no Activity/Place. The only downside I see is that it mixes the two mvp paradigms. For example, my package structure is currently client.mvp.activity, client.mvp.view, client.mvp.place, so mvp that is not activity/place based doesn't really fit. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Eclipse not recognizing GWT on auto import
Hi, When I click on the little red X, which appears when I add a line that contains a class not yet imported, I expect to see something like: Import 'SimplePanel' (com.google.gwt.user.client.ui) But I don't. I have to type it in myself. Anybody know why? Everything else works just fine. Thanks a bunch, Bill -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Why does GWT echo PHP script file instead of executing it?
Hi ... I've been trying several examples that I've found online to have a PHP script called by an web application developed with GWT (via Eclipse) using HTTP requests. I figure once I get this to work I can apply the techniques to my own application. However, I am having a horrible time trying to get this to work. The closest that I've come to success is with the StockWatcher application found at https://developers.google.com/web-toolkit/doc/2.1/tutorial/gettingstarted (I also worked the example starting at the JSON-PHP implementation here https://developers.google.com/web-toolkit/doc/2.1/tutorial/JSONphp) The StockWatcher example has you place a PHP script in the war directory. When I start with the basic example, with the following snippet defining the url string (NOTE: The value for q is added after the code snippet below): private static final String JSON_URL = GWT.getModuleBaseURL() + stockPrices?q=; String url = JSON_URL; which gives the url as http://127.0.0.1:/stockwatcher/stockPrices?q=;; I get at 404 error code, even if I move the PHP script to the .../war/stockwatcher directory. If I hardcode the url: url = http://127.0.0.1:/stockPrices.php?q=;; the PHP script is found but the script file is just echoed back the the client routine. This just results in an exception because the client routine is expecting JSON. Now if I change the url to url = http://localhost/StockWatcher/stockPrices.php?q=;; refresh the project, copy the contents of the war directory to C:\wamp\www\StockWatcher, and enter http://localhost/stockwatcher/stockwatcher.html in my browser (I'm using Chrome), then everything works like a charm (I have Wampserver running on my PC). While I might be using the Wampserver in the production system, I'd still like to debug within Eclipse. Does the built in server, Jetty, that comes with Eclipse and the GWT plugin not work with PHP? Thanks so much in advance, Bill -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: GWT + Hibernate + MySQL inside Eclipse
See this thread.http://stackoverflow.com/questions/10712365/cant-configure-mysql-datasource-in-gwt-hibernate-mysql-project On Sunday, May 20, 2012 5:42:49 PM UTC-6, Bill Compton wrote: Our Hibernate setup works fine in non-GWT projects. I'm using Eclipse Indigo, Google Suite Plugin 2.5, Google GWT Designer 2.4.2. The short-short version is that the MysqlConnectionPoolDataSource class from jetty-env.xml is evidently not getting instantiated, causing the resource reference from web.xml to fail. Here are the steps I took and excerpts of files that I think matter. (Apologies in advance - this is a bit verbose but wanted to be sure my question is complete and clear.) My war/WEB-INF/classes/hibernate.cfg.xml includes: property name=hibernate.connection.datasource *java:comp/env/jdbc/nndb */property A service class AuthenticateServiceImpl.authenticate(Credentials c) calls DAOFactory.getDefaultInstance().getCustomerDAO(); The above works fine in my pure tomcat (non-GWT project). But in the GWT project it fails with: SEVERE: Could not find datasource: java:comp/env/jdbc/nndb javax.naming.NameNotFoundException; remaining name 'jdbc/nndb' So, I added following entry to web.xml: resource-ref descriptionNN Database Connection Pooling/description res-ref-name*jdbc/nndb*/res-ref-name res-type*javax.sql.DataSource*/res-type res-authContainer/res-auth res-sharing-scopeShareable/res-sharing-scope /resource-ref and also created CustomJettyLauncher as described herehttp://webtide.intalio.com/2011/08/gwt-and-jndi/ . and added Eclipse run config to use it (Run Config Arguments -server comCustomJettyLauncher) This results in: jetty-6.1.x [WARN] Configuration problem at resource-refdescriptionNN Database Connection Pooling/descriptionres-ref-namejdbc/nndb/res-ref-nameres-typejavax.sql.DataSource/res-typeres-authContainer/res-authres-sharing-scopeShareable/res-sharing-scope/resource-ref java.lang.IllegalStateException: Nothing to bind for name * javax.sql.DataSource/default* Presumably at this point I need an entry in either the jetty-env.xml or jetty-web.xml file (which?) defining the resource. I tried jetty-env.xml: ?xml version=1.0? !DOCTYPE Configure PUBLIC -//Mort Bay Consulting//DTD Configure//EN http://jetty.mortbay.org/configure.dtd; Configure class=org.mortbay.jetty.webapp.WebAppContext New id=nndb class=org.mortbay.jetty.plus.naming.Resource Argj*dbc/nndb*/Arg Arg New class=com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource Set name=Urljdbc:mysql://*dbserver/dbname*/Set Set name=User*dbuser*/Set Set name=Password*dbpasswd*/Set /New /Arg /New /Configure But the above error (Nothing to bind for name javax.sql.DataSource/default) remains. Interestingly, if I intentionally bugger up the datasource classname (e.g. NOSUCH.com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource) there's no gripe, so it may not even be trying to instantiate that class. (Similar tracer errors for WebAppContext and Resource *DO* produce gripes, so it's only ConnectionPoolDataSource that it's not trying to instantiate.) I also tried using a jetty-web.xml file but that is evidently not getting read at all. Whew! Does anyone see what's wrong? Any recommendations would be greatly appreciated. Thanks in advance! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/hG_myikwZxgJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
RequestFactory - how to prevent batched requests after constraint violation
I am getting an IllegalArgumentException, Attempting to edit an EntityProxy previously edited by another RequestContext. This is a result of getting constraint violations and automatically batching different Request Factory requests within the RequestContext. I am using GWT 2.4. My RequestContext interface has multiple methods save(), updateCache(), load(),... Here is the scenario: 1. Call save() which encounters server side constraint violations. The RequestContext is still active since the call did not complete. 2. Try to correct the data. Make a change to the value of a field that happens to have an onChange handler that automatically calls updateCache() on the RequestContext. This causes the RequestContext to have 2 batched requests, save() and updateCache(). Both are then invoked via the single Request.fire() call. 3. onSuccess() is called twice, once for save() and then once for updateCache(). OnSuccess() creates a new RequestContext instance and calls edit() on the driver. The second call to edit() within onSuccess() causes the IllegalArgumentException. How can I remove or avoid the queued call to save() when receiving the constraint violations. Depending on the user's action after a constrain violation, a request other than save() may be called, so it is not just a matter of trying to re-fire the initial save() request, I am trying to make a different request and not call save() yet. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/dQ5uJt3NoYsJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT + Hibernate + MySQL inside Eclipse
Our Hibernate setup works fine in non-GWT projects. I'm using Eclipse Indigo, Google Suite Plugin 2.5, Google GWT Designer 2.4.2. The short-short version is that the MysqlConnectionPoolDataSource class from jetty-env.xml is evidently not getting instantiated, causing the resource reference from web.xml to fail. Here are the steps I took and excerpts of files that I think matter. (Apologies in advance - this is a bit verbose but wanted to be sure my question is complete and clear.) My war/WEB-INF/classes/hibernate.cfg.xml includes: property name=hibernate.connection.datasource *java:comp/env/jdbc/nndb */property A service class AuthenticateServiceImpl.authenticate(Credentials c) calls DAOFactory.getDefaultInstance().getCustomerDAO(); The above works fine in my pure tomcat (non-GWT project). But in the GWT project it fails with: SEVERE: Could not find datasource: java:comp/env/jdbc/nndb javax.naming.NameNotFoundException; remaining name 'jdbc/nndb' So, I added following entry to web.xml: resource-ref descriptionNN Database Connection Pooling/description res-ref-name*jdbc/nndb*/res-ref-name res-type*javax.sql.DataSource*/res-type res-authContainer/res-auth res-sharing-scopeShareable/res-sharing-scope /resource-ref and also created CustomJettyLauncher as described herehttp://webtide.intalio.com/2011/08/gwt-and-jndi/ . and added Eclipse run config to use it (Run Config Arguments -server comCustomJettyLauncher) This results in: jetty-6.1.x [WARN] Configuration problem at resource-refdescriptionNN Database Connection Pooling/descriptionres-ref-namejdbc/nndb/res-ref-nameres-typejavax.sql.DataSource/res-typeres-authContainer/res-authres-sharing-scopeShareable/res-sharing-scope/resource-ref java.lang.IllegalStateException: Nothing to bind for name * javax.sql.DataSource/default* Presumably at this point I need an entry in either the jetty-env.xml or jetty-web.xml file (which?) defining the resource. I tried jetty-env.xml: ?xml version=1.0? !DOCTYPE Configure PUBLIC -//Mort Bay Consulting//DTD Configure//EN http://jetty.mortbay.org/configure.dtd; Configure class=org.mortbay.jetty.webapp.WebAppContext New id=nndb class=org.mortbay.jetty.plus.naming.Resource Argj*dbc/nndb*/Arg Arg New class=com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource Set name=Urljdbc:mysql://*dbserver/dbname*/Set Set name=User*dbuser*/Set Set name=Password*dbpasswd*/Set /New /Arg /New /Configure But the above error (Nothing to bind for name javax.sql.DataSource/default) remains. Interestingly, if I intentionally bugger up the datasource classname (e.g. NOSUCH.com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource) there's no gripe, so it may not even be trying to instantiate that class. (Similar tracer errors for WebAppContext and Resource *DO* produce gripes, so it's only ConnectionPoolDataSource that it's not trying to instantiate.) I also tried using a jetty-web.xml file but that is evidently not getting read at all. Whew! Does anyone see what's wrong? Any recommendations would be greatly appreciated. Thanks in advance! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/zV3tAutRFVUJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT DataGrid Widget unpredictable row height issue...
Hi Vinayak, I think I found the problem. I have a column whose contents I want to hide from the user. However, I need the data available. So, from another post I came across, someone said the way to hide a column is to set it's column width to 0. However, it really seems I'm getting some wrapping occuring with this hidden field, causing the height of the entire row it's on to grow. So, is there another way to hide the contents of a column? Or, will I need to come up with a paralled data structure to hold column's I don't want displayed in the DataGrid? Appreciate any assistance. Thanks, Bill M. On Mar 2, 5:27 pm, Bill M blinte...@aol.com wrote: Hi Vinayak, I tried setting using the same data for eachrow, yet I still got some rows appearing with larger heights. And eachrowwas loaded with the same exact data. I'm try loading with field/column of therowwith and see what that does. Thanks, Bill M. On Mar 2, 5:14 am, vinayak kulkarni bkvina...@gmail.com wrote: Hello, I am using thedatagridbut didnt face any issue related to largerrow size. It only occurs during data wrapping if text size is more. In your case, some data might have been overflown with space character to the next line which may be showing larger size On Feb 27, 11:55 pm, Bill M blinte...@aol.com wrote: Hi all, I'm loading the newDataGridWidget with the results of a SQL query. I have noticed that some rows (just a few) are appearing with a larger rowheightthan others, on a load of about 1000 rows. I tried setting each column of therowto a fixed value (not using the results of the query), to see if maybe some potential overflow of field widths was occuring, maybe causing a wrap, which would explain the largerrow height. But, I found this was not the case. And for info purposes, I am using the default font from the FireFox Browser. Are there issues with getting a consistentrowheightout of GWT 2.4/ DataGridwidget? Are there workarounds? I saw some others noting issues of rowHeight from the CellTable widget. Are there issue's with this widget? Or would an issue like this have to be originating from my application? Appreciate any insight! Thanks, Bill M.- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
How to hide a column in the GWT DataGrid Widget
Hi, Is there a way to hide a column in the GWT DataGrid widget? I was using someone's suggestion of setting the columnWidth of the column I want to hide to 0. However, with that approach the String data seems to be wrapping in the hidden column, causing some rows to have a larger height. Is there another way to hide a column? Or, do I need to implement my own data structure to handle this? Thanks, Bill M -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT DataGrid Widget unpredictable row height issue...
Hi Vinayak, I tried setting using the same data for each row, yet I still got some rows appearing with larger heights. And each row was loaded with the same exact data. I'm try loading with field/column of the row with and see what that does. Thanks, Bill M. On Mar 2, 5:14 am, vinayak kulkarni bkvina...@gmail.com wrote: Hello, I am using thedatagridbut didnt face any issue related to largerrow size. It only occurs during data wrapping if text size is more. In your case, some data might have been overflown with space character to the next line which may be showing larger size On Feb 27, 11:55 pm, Bill M blinte...@aol.com wrote: Hi all, I'm loading the newDataGridWidget with the results of a SQL query. I have noticed that some rows (just a few) are appearing with a larger rowheightthan others, on a load of about 1000 rows. I tried setting each column of therowto a fixed value (not using the results of the query), to see if maybe some potential overflow of field widths was occuring, maybe causing a wrap, which would explain the largerrow height. But, I found this was not the case. And for info purposes, I am using the default font from the FireFox Browser. Are there issues with getting a consistentrowheightout of GWT 2.4/ DataGridwidget? Are there workarounds? I saw some others noting issues of rowHeight from the CellTable widget. Are there issue's with this widget? Or would an issue like this have to be originating from my application? Appreciate any insight! Thanks, Bill M.- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How do I call getServletContext from within GWT?
Thanks! On Feb 22, 7:49 pm, Daniel Mauricio Patino León ceo.lion@gmail.com wrote: getServletContext().getRealPath(/) Since RemoteServiceServlet is a subclass of HttpServlet Will give you the path. This on server side ofcourse. 2012/2/22 Bill M blinte...@aol.com Hi all, Can someone explain to me how to call getServletContext() from within GWT? I need to obtain the servlet's real path so I can open a file. Could someone shoot me some sample code on how to do this? Thanks so much. PS - Are there any GWT books out there that are uptodate on the current features of GWT? I haven't seen any. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- ISC. Daniel Mauricio Patiño León. Director ejecutivo Liondev S.A. de C.V.- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT DataGrid Widget unpredictable row height issue...
Hi all, I'm loading the new DataGrid Widget with the results of a SQL query. I have noticed that some rows (just a few) are appearing with a larger row height than others, on a load of about 1000 rows. I tried setting each column of the row to a fixed value (not using the results of the query), to see if maybe some potential overflow of field widths was occuring, maybe causing a wrap, which would explain the larger row height. But, I found this was not the case. And for info purposes, I am using the default font from the FireFox Browser. Are there issues with getting a consistent row height out of GWT 2.4/ DataGrid widget? Are there workarounds? I saw some others noting issues of rowHeight from the CellTable widget. Are there issue's with this widget? Or would an issue like this have to be originating from my application? Appreciate any insight! Thanks, Bill M. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
How do I call getServletContext from within GWT?
Hi all, Can someone explain to me how to call getServletContext() from within GWT? I need to obtain the servlet's real path so I can open a file. Could someone shoot me some sample code on how to do this? Thanks so much. PS - Are there any GWT books out there that are uptodate on the current features of GWT? I haven't seen any. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
How to force scroll of DataGrid to top on reload
Hello, I would like to know if anyone knows how to set the scroll position of the DataGrid widget to the top, following a reload? I don't see any method that allow you to do this. Does anyone know how? Thanks, Bill -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
How to set column of DataGrid (i.e. a TextColumn) to not be selectable?
Hello, I have a DataGrid table that is composed of multiple TextColumns. When you click on the TextColumn, the column acts like it could be edited, with the column appearing like a text entry field. Is there a way to stop this behavior, so it only appears like a label? Thanks, Bill -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
How to control active/inactive state of a button in a ButtonColumn of a DataGrid, upon load of row of data into the table?
Hi All, Does anyone know how to control the active/inactive state of a Button in a ButtonColumn in a DataGrid, upon load of a row of data into the DataGrid, via a DataProvider? I've studied the Google Web Toolkit ShowCase, and I don't see any example on how to do this. Does anyone know how this can be done? Thanks, Bill M -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: DataGrid Object not displaying more than 50 items...
Hi Kris, I looked at the example. But, the example is loading static data and it's using pagination. However, I am loading the data as a result of a DB query in a for loop (all at once), and I'm using a scrollbar to view the data (not pagination). Any other ideas? Thanks, Bill On Jan 10, 5:27 am, kretel krzysztof.re...@gmail.com wrote: Do you use the pager with your DataGrid? Also check if you can see elements being added to the DOM (firebug-it). I would have a look at showcase how it works on the example: http://gwt.google.com/samples/Showcase/Showcase.html#!CwDataGrid Kris -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: DataGrid Object not displaying more than 50 items...
Hi Kris, I was looking more at the sample program you suggested (ContactDatabase.java), and I saw this method: /** * Add a display to the database. The current range of interest of the display * will be populated with data. * * @param display a {@Link HasData}. */ public void addDataDisplay(HasDataContactInfo display) { dataProvider.addDataDisplay(display); } Now, when I load up my query results, I have way more data than can fit in the current view (i.e. the number of visible rows of data). Do I have to somehow adjust my viewable row count for the DataGrid before loading my query results so I could eventually see them? Thanks, Bill On Jan 10, 5:27 am, kretel krzysztof.re...@gmail.com wrote: Do you use the pager with your DataGrid? Also check if you can see elements being added to the DOM (firebug-it). I would have a look at showcase how it works on the example: http://gwt.google.com/samples/Showcase/Showcase.html#!CwDataGrid Kris -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
How to place a pushButton and a clickable Image into a row of a DataGrid?
Hi All, I would like to know if anyone knows how to create a pushButton (and supply a callback) to place in a row of a DataGrid? I looked at code at the ShowCase that has clickable pushButtons, but the format does not seem to match how columns are supplied for a DataGrid. Also, if anyone knows how to add a clickable icon to a row of a DataGrid as well ? Thanks, Bill -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
DataGrid Object not displaying more than 50 items...
Hi All, I am trying to load the DataGrid with the results of a query. I have a DataProvider object connected to the DataGrid table, and I use a for loop to do a list.add() of a object I created dynamically that represents a row of data in the table. However, it seems the table does not store more than 50 items, or at least it is not displaying more than 50 items. Has anyone else experience anything like this? Is there a instruction I am forgetting? Thanks, Bill -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Getting the new DataGrid object to resize...
Hi all, Does anyone know if it is possible to get the new DataGrid object to resize, if you increase the size of the browser by dragging a corner of it? The DataGrid object has a setRows method. Does this imply that it cannot resize, once it has been displayed? Would appreciate any info on this. Thanks, -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Deleting the contents of a GWT DataGrid Widget
Thanks. I actually got figured that one out yesterday! Hey, have you used the DataGrid object? Would you know if it is possible for this widget to grow in size if you drag the browser to make it bigger? (i.e. User wants to see if more rows in the display) Thanks! Bill On Jan 6, 4:08 am, Thomas Broyer t.bro...@gmail.com wrote: dataProvider.getList().clear() ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Deleting the contents of a GWT DataGrid Widget
Hi, Would like to know if there is a direct way to delete ALL the rows of the new DataGrid Widget -part of release GWT 2.4, or is the only way to do it is by maintaining a handle to some Collection you may have previously loaded into the Table, and then doing something like this to delete the rows: table = new DataGridContact(); dataProvider= new ListDataProviderContact(); dataProvider.addDataDisplay(table); ... ... (And when you want to remove ALL the rows of the DataGrid, do the following?) ListContact list= dataProvider.getList(); list.removeAll(CONTACTS); Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Where is the DataGrid Widget?
Hello, I just downloaded Google Plugin 2.4 for Eclipse 3.7 (Indigo) on my Mac running Mac OS X, for the sole intention of working with the new Scrolling DataGrid Widget that is supposed to be present in this new release. Yet, I don't see it present in the GWT-Designer Palette. I see some people have posted questions about it, so it must be present somewhere... :) Could someone tell me where this widget is? Thanks! Bill -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
CSS1Compat Error
Greetings, In my GWT application I have set it to standards mode (!doctype html) in the main html file. However, at run time I keep receiving this message : 12:20:17.905 [INFO] [marabou] Your *.gwt.xml module configuration prohibits the use of the current doucment rendering mode (document.compatMode=' CSS1Compat').brModify your application's host HTML page doctype, or update your custom 'document.compatMode' configuration property settings. What is causing this? Is it one of the inherits ... in the xml, or am I just missing some setting at the top of it? Thank- you in advance! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Setting A Bookmark
This is a simple question, but one I can't seem to find the answer to (all searches return how-to's on implementing History) I'm looking for the code needed to have my GWT application set a bookmark in the users browser. Thanks in advance! Bill -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Add Google Maps API on GWT-ext
Henry, I'm not exactly sure how far along you are based on your question. Have you already been through the example at http://code.google.com/p/gwt-google-apis/wiki/MapsGettingStarted ? I found that I had to use GWT SDK 2.1.1 in order to work with the GWT maps API. The latest maps API didn't seem to work for me with GWT 2.2.0 and I haven't tried GWT 2.3 yet. I also found that I had to use gxt-2.1.1 (instead of gxt-2.2.3) to work with GWT 2.1.1. Long story short, I had to revert to some older versions of the GWT SDK and gxt in order to work with the latest GWT maps API. Perhaps someone else reading this can confirm or deny that this was necessary. Hope this helps. Bill On May 13, 2:17 am, Henry henryubu...@gmail.com wrote: Hi: I want to create a project using the Google Maps API with GWT-ext on Eclipse. I'm a newbie using GWT-ext, does anyone knows about a tutotial o have a tutorial to add de google maps API? I put a pic of the component I want to activate in GWT-exthttp://www.flickr.com/photos/57139144@N02/5715458100/ Any help will 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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Style in the Stockwatcher example
In Step 7: Apply Style for the Stockwatcher example it states: iWhen you created the StockWatcher application, webAppCreator generated the application style sheet (StockWatcher.css) and added a pointer to it in the module XML file (StockWatcher.gwt.xml)./i Is this correct? It appears the reference to StockWatcher.css is actually in the host page StockWatcher.html. I didn't change anything, this is how the application was created. I'm not sure I would normally take the time to quibble over this point, but there is some talk just above about the preferred method that states: iLike images, CSS files are static resources that are stored in the public directory and referenced from the HTML host page. You can associate a style sheet with your application either of two ways. •Preferred: in the module XML file (StockWatcher.gwt.xml) •Alternate: in the HTML host page (StockWatcher.html) Whichever method you choose, you can associate one or more application style sheets with your project. They cascade in the order they are listed, just as they do in an HTML document. For StockWatcher, you'll follow the preferred strategy. Rather than put links to the style sheets in the HTML host page, you'll use the module XML file./i Please let me know if I'm missing something. Thanks, Bill -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Synchronizing editor data
I am using GWT 2.2.0 with RequestFactory and the Editor framework. What is the recommended way to keep to 2 editors in sync with a shared proxy object attribute (the same object attribute is displayed in 2 editors)? I tried the following but ran into a few issues: Using RequestFactoryEditorDriver I have an Editor that contains a TabPanel with 2 tabs and contains 2 sub-editors (one for each tab). Each sub-editor has a TextBox editor that edits MyProxy.xyz. I tried the following: - added a ValueChangeHandler for the TextBox on tab 1, onValueChange update the proxy object attribute with the value in the TextBox and then fire an EntityProxyChange UPDATE event on the eventBus. - Have the sub-editor on tab 2 implement ValueAwareEditor and subscribe() via the EditorDelegate. This seems to work. The TextBox on the second tab was updated with the value entered in the TextBox on the first tab. However there are a couple of side effects: 1) When the sub-editor gets the event from the eventBus, it internally fires a RequestFactory call to find the proxy by id from the database. It seems that it should not need to do this but rather just refresh the editors with the fully populated proxy object in memory. This is why I am questioning if I am using the right approach of creating EntityProxyChange events and subscribing. 2) Was getting an IllegalStateException: A request is already in progress exception why I tried to do an update request later on. It was due to a SubscriptionReceiver getting called as a result of the update response via the EntityProxyChange UPDATE event. The SubscriptionReceiver was referening to the current RequestFactoryEditorDelegate that had the RequestContext from the update request that was just fired and is now locked. OnSuccess() in the Receiver() was not called yet so I was not able to call edit() on the driver which would create a new RequestFactoryEditorDelegate with a new RequestContext passed in. To get around this I removed the handler on the sub-editor in the flush() method since I did not need to handle the event at that point. Again, seems like my approach is more complicated than it should be. Question 1) Is there a better way to do this, essentially flush and refresh the editors without making a request to the server? Am I missing something? Question 2) I followed this same pattern with a display only CellTable editor as part of the sub-editor, but it did not get updated when the proxy event was sent. Is there something that needs to be done to support the CellTable? The data was initially set correctly in the CellTable by the driver, but it does not get updated like the other editors. public class SubEditor2 extends Composite implements ValueAwareEditorMyProxy{ private CellTableSomeProxy table = new CellTableSomeProxy(); // this does not get refreshed correctly but is initially displayed correctly @Path(someProxyList) HasDataEditorSomeProxy tableEditor = HasDataEditor.of(table); private TextBox textBox2 = new TextBox(); // this gets refreshed correctly @Path(xyz) final HasTextEditor xyzEditor = HasTextEditor.of(textBox2); Thanks! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Non admin install for developer plugin on IE 8
Is there any way to install the GWT developer plugin on IE 8 without having admin rights. Is there perhaps a non admin install for the plugin? Thanks for any 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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
stacking multiple panels in z-order?
Now that the Canvas widget is available, I'd like to be able to create a panel which holds a number of subWidgets in a specified z-order, and in which multiple widgets are visible simultaneously. For instance, an HTML widget with a transparent background, a Canvas with translucent highlights drawn under that HTML widget, and a transparent Canvas above the HTML widget to add a drawing layer. This is sort of like a DeckPanel, but without the animation and with the ability to show multiple widgets simultaneously. Anyone know of such a GWT widget? Bill -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
FormPanel.SubmitCompleteHandler called even on error return?
I find that even when my server sends back 400 and 401 error responses in response to a FormPanel submit, the SubmitCompleteHandler of the FormPanel is still being called. Is there any way in a SubmitCompleteHandler to see if the submit actually succeeded or not? This is with GWT 2.1.1. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Sample Application RPC Problems with Tomcat
Apparently the requests weren't getting to Tomcat. If I accessed the site through the Tomcat port (http connector) then it would work correctly. Now, the follow-up question would be is there a way to either specify the port in the client code somewhere or have apache forward the request to Tomcat automatically? On Jan 19, 11:32 am, Bill Morrison hipgno...@gmail.com wrote: Greetings All, I have created the standard Web Application Starter Project (creatively named test), created the .war file and uploaded it to my Tomcat server. The war was unpackaged, and the client side is accessible. However, the RPC calls from the server are failing (404). web.xml looks like this : servlet servlet-namegreetServlet/servlet-name servlet- classcom.terminalconcepts.test.server.GreetingServiceImpl/servlet- class /servlet servlet-mapping servlet-namegreetServlet/servlet-name url-pattern/test/greet/url-pattern /servlet-mapping The Module Base name is :http://www.terminalconcepts.com/test/test/ The Module Host Page is :http://www.terminalconcepts.com/test/ According to Firebug the post being made is : 6|0|6|http://www.terminalconcepts.com/test/test/|B6CFADCC65E5E3ECC9AE9FD1CAC5C67C|com.terminalconcepts.test.client.GreetingS ervice|greetServer|java.lang.String/2004016611|GWT User|1|2|3|4|1|5|6| I'm kind of at a loss as to where to go from here, everything seems to be pointing at the right area, but I can't work around the 404 problem. Any suggestions are greatly 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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Frameworks
Itemscript (http://code.google.com/p/itemscript/) is a JSON toolkit for GWT and Java. Itemscript is a schema specification for JSON data. Itemscript provides: A cross-platform GWT standard Java JSON library, with convenient classes, parsers, and utilities. A RESTful connector API for retrieval of data (JSON, text small binary files) over a variety of protocols. A simple in-memory database with a RESTful interface, useful as a mock server for testing development, and for managing application state. A validator for the Itemscript Schema JSON schema language. The JAM template language, using JSON values, usable in both GWT standard Java. We aim to enable lean iterations on the client side with JAM and a REST API to the backend via the mock server. We just recently updated the libraries with the validator and JAM template language. Itemscript is open source, published under the new BSD license. Bill Braasch b...@itemscript.org -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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.
Service Location on Server Side
Hello, This feels like a silly question. Please forgive if so. For my simple proof-of-concept application, I have two RPC services, both of which may be accessible by the client. However, for one of my use cases, I need for one of the services to access the other service. Is there any mechanism by which this can happen? I can't find any hints of this in the documentation. Let me put this a different way: 1. Client invokes Create on service A. 2. Service A invokes Create on Service B. 3. Service B creates a resource and returns info to Service A. 4. Service A creates a resource and returns info to the Client. In order for this to happen, Service A needs to be able to find Service B, on the server-side. How can I accomplish this? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Efficient GWT Client-Server Communication methodology
Check out the Itemscript libraries. http://code.google.com/p/itemscript/ Itemscript includes a JSON RPC with cross platform Java / GWT libraries. There's also an in memory database you might find useful for managing the client side. Bill -- 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.
Itemscript: a rich JSON API for Java and GWT
We updated the Itemscript library at http://code.google.com/p/itemscript/. Itemscript is open source, published under the new BSD license. Itemscript is a JSON specification and RESTful API for Java and GWT developers. The Itemscript Library is a JSON library for both the standard and the GWT Java environment. It includes a RESTful in-memory JSON database usable in either environment, where values are accessed by URLs through a REST-like API that can also be used to access values over HTTP. See http://code.google.com/p/itemscript/ for downloads and documentation. We'd appreciate any feedback or suggestions on Itemscript. Bill Braasch -- 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: Not able to use External Jar file for DB connection
(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java: 396) at org.mortbay.thread.BoundedThreadPool $PoolThread.run(BoundedThreadPool.java:442) Caused by: java.lang.NoClassDefFoundError: java.net.Socket 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 org.postgresql.core.PGStream.init(PGStream.java:62) at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java: 76) at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java: 66) at org.postgresql.jdbc2.AbstractJdbc2Connection.init(AbstractJdbc2Connection.java: 125) at org.postgresql.jdbc3.AbstractJdbc3Connection.init(AbstractJdbc3Connection.java: 30) at org.postgresql.jdbc3g.AbstractJdbc3gConnection.init(AbstractJdbc3gConnection.java: 22) at org.postgresql.jdbc4.AbstractJdbc4Connection.init(AbstractJdbc4Connection.java: 30) at org.postgresql.jdbc4.Jdbc4Connection.init(Jdbc4Connection.java:24) at org.postgresql.Driver.makeConnection(Driver.java:393) at org.postgresql.Driver.connect(Driver.java:267) at java.sql.DriverManager.getConnection(DriverManager.java:582) at java.sql.DriverManager.getConnection(DriverManager.java:185) at com.zo.zotweb.server.DbConnection.connectDB(DbConnection.java:12) at com.zo.zotweb.server.GreetingServiceImpl.greetServer(GreetingServiceImpl.java: 19) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime.java: 100) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: 562) ... 30 more please help me find the solution for this -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Bill Michell billmich...@gmail.com -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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: XMLParser cannot parse the £ symbol
On 9 Nov 2009, at 17:00, RPB wrote: Hello, I am retrieving XML data from the Amazon UK api which returns XML including a £ (GBP) sign. I found that XMLParser.parse(xmlText) will throw an exception (com.google.gwt.xml.client.impl.DOMParseException: Failed to parse ) unless i remove the £ signs from the XML. The £ sign is not part of the 7-bit US-ASCII character set. That means that character encoding issues become critical, if you don't want corrupted data. If your file was encoded in ISO 8859-1 (Latin 1) but you were treating it as though it was encoded in UTF-8, or some similar mismatched pair, you'd see problems of this kind - in fact, be thankful that an exception was thrown - in some cases, you'd just get silent data corruption! I am hoping someone can explain why this happens? It doesn't seem to make sense to me to have to pre-process the XML by removing the £ signs or adding CDATA sections - please let me know if there is a better way. Take steps to preserve character encoding information at the various stages, or else find a single one that will work through all stages of the chain. UTF-8 is becoming a de-facto standard, but nevertheless not all systems support it yet... Thanks! -- Bill Michell billmich...@gmail.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: List Serialization Error
Look at line 19 of ServiceImpl.java I can't tell you what it is because your pasted code doesn't include file names or line numbers. If it doesn't jump out at you from that, then paste the code here. Make sure you point out which line is line 19... On 2 Oct 2009, at 18:00, Isaac Truett wrote: Well, that could be a perfectly valid argument if stacktraces were capable of lying. Something's null. Denial won't get you anywhere. Something on line 19 is null. Use your debugger and find out what, then trace backwards until you find where/why. Or attack it from the other direction: start with a blank slate and add code piece by piece until you reproduce the problem. The last thing you changed is probably the culprit. On Fri, Oct 2, 2009 at 12:50 PM, The Coder thales...@gmail.com wrote: Its not null. Observe it: Client-Side: Car car = new Car(); ListPerson listPerson = new ArrayListPerson(); car.setName(Ferrari); car.setType(Sport); Person personDriver = new Person(); personDriver.setName(James); person personPassenger = new Person(); personPassenger.setName(Victoria); listPerson.add(personDriver); listPerson.add(personPassenger); car.setPersonList(listPerson); Null? Where? Its instantiate and populated with Person! On 1 out, 13:38, Isaac Truett itru...@gmail.com wrote: Because a pointer referenced on line 19 was null. http://publicint.blogspot.com/2009/04/nullpointerexception.html On Thu, Oct 1, 2009 at 11:56 AM, The Coder thales...@gmail.com wrote: I have two Entities. Car and Person. Car have aListof Person. Its just for example the problem. Well, we have it: -- package br.com.oxylabtech.client.model; public class Car implements IsSerializable { // Attributes private String name; private String type; privateListPerson personList; // GS [omitted] package br.com.oxylabtech.client.model; public class Person implements IsSerializable { // Attributes private String name; // GS [omitted] -- Then i have a page with a form that fills the Car and Person data, something like it: -- Car car = new Car(); ListPerson listPerson = new ArrayListPerson(); car.setName(Ferrari); car.setType(Sport); Person personDriver = new Person(); personDriver.setName(James); person personPassenger = new Person(); personPassenger.setName(Victoria); listPerson.add(personDriver); listPerson.add(personPassenger); car.setPersonList(listPerson); -- After, i need to save in the DB. I need to send to the server side correct? Then, i have a service for it. Lets see: -- dbService.save(car, new AsyncCallbackBoolean() { public void onFailure (Throwable caught) { CustomWidgets.createDialogBox(Ops!!); //This is a Custom DialogBox() } public void onSuccess (Boolean result) { if (result) { CustomWidgets.createDialogBox(Yeah!); } else { CustomWidgets.createDialogBox(Problem!); } } }); -- But before the save, i want to see the Car and the Persons info. The server side code is simple. -- public Boolean save(Car car) { try { System.out.println(Car name: + car.getNoma()); System.out.println(Car type: + car.getType()); System.out.println( ); for (Person person : car.getPersonList()) { System.out.println(Person: + person.getNome()); } return true; } catch (Exception e) { e.printStackTrace(); return false; } } -- But it occour: -- Car Name: Ferrari Car Type: Sport java.lang.NullPointerException at br.com.oxylabtech.server.dbService.save (ServiceImpl.java:19) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) -- Why? Thankx! -- Bill Michell billmich...@gmail.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
multiselect datasource binding
My xml data looks something like: student id43/id nameBill Salvucci/name courses course id1/id namebiology/name? /course course id5/id namecalculus/name? /course /courses /student StudentDataSource: DataSourceField idField = new DataSourceTextField(id, Id); idField.setPrimaryKey(true); idField.setCanEdit(false); idField.setHidden(true); ... DataSourceField courseIdField = new DataSourceTextField(courseId, Course); courseIdField.setMultiple(true); courseIdField.setForeignKey(CourseDataSource.id); courseIdField.setValueXPath(/courses/course/id); form: final SelectItem courseItem = new SelectItem(courseId); courseItem.setTitle(Courses); courseItem.setOptionDataSource(CourseDataSource.getInstance()); courseItem.setMultiple(true); courseItem.setValueField(id); courseItem.setDisplayField(name); //do the fetch and setValueMap If I select a single course, all is well. I end up with xml that looks like: student id43/id nameBill Salvucci/name courses course id1/id /course /courses /student When I pick more than one, I expect to get xml like: student id43/id nameBill Salvucci/name courses course id1/id /course course id5/id /course /courses /student but instead, I get: student id43/id nameBill Salvucci/name courses course id1,5/id /course /courses /student I'm sure this is very simple, but I can't seem to find an example of a multiselect binding. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
MenuBar Submenu Remove Border
Does anyone know of a way to completely remove the border on a popup submenu from a MenuBar? I've played around with the styles for a couple of hours, but I've only been able to change the style of the shadow for some reason. Thanks, Bill Davis. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: MenuBar Submenu Remove Border
Thanks, that seems pretty obvious now that I'm at home :) Unfortunately at work, I don't have any tools like that and we're not allowed to download software without going thru a lot of red tape, so sometimes I don't think about that method. Thanks, Bill. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Can't download GWT even older versions
Sumal and Alex, thanks for your help. This does appear to have been a FF/connection issue -- I was able to download successfully when I got back to my usual, reliable network. Thanks, -Bill On Mar 13, 12:43 am, alex.d alex.dukhov...@googlemail.com wrote: That kind of error with FF occures mostly when your internet connection breaks (even for a few seconds). Try to download it with any download manager - it should work. On 12 Mrz., 17:41, Sumal Wijewardhana suma...@gmail.com wrote: Hi Bill, I have found the way of doing it.. just download the older version on GWT and install in your PC... then you can upgrade it to the latest versions Try this.. Sumal On Thu, Mar 12, 2009 at 7:25 PM, Bill bill.dor...@gmail.com wrote: Hello, I've had the same problem trying to download gwt-windows-1.5.3.zip the past two days (3/11 and 3/12 PDT). Using Firefox 3.0.7, the download will begin and download anywhere from 5-15 MB before terminating. Firefox does not report any error, the download appears to have terminated normally. I've tried this on two separate wireless networks with the same result. Any idea what the problem might be? Thanks, Bill On Mar 11, 9:55 am, Sumal Wijewardhana suma...@gmail.com wrote: Hi Sumit, Downloading is starting and going till 5MB, after that its get stop. This was happened several times. Any idea of this issue? But normally I download software, movie even more than 1GB files. Regards, Sumal On Tue, Mar 10, 2009 at 11:34 PM, Sumit Chandel sumitchan...@google.com wrote: Hi Sumal, What errors are you receiving when trying to download a GWT distribution? As far as I know, there shouldn't be anything stopping you from downloading a distro on our end. Regards, -Sumit Chandel On Mon, Mar 9, 2009 at 11:58 PM, suma...@gmail.com suma...@gmail.com wrote: HI, I'm Sumal from Sri Lanka... I tried many times to download GWT even older versions to download but can't. I'm using a DSL connection and PIV PC. Regularary I'm downloading SW, Movies but get error messages when downloading this. Please be kind enough to send the downloaded GWT to my email address in below. great...@hotmail.com copy to suma...@gmail.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Can't download GWT even older versions
Hello, I've had the same problem trying to download gwt-windows-1.5.3.zip the past two days (3/11 and 3/12 PDT). Using Firefox 3.0.7, the download will begin and download anywhere from 5-15 MB before terminating. Firefox does not report any error, the download appears to have terminated normally. I've tried this on two separate wireless networks with the same result. Any idea what the problem might be? Thanks, Bill On Mar 11, 9:55 am, Sumal Wijewardhana suma...@gmail.com wrote: Hi Sumit, Downloading is starting and going till 5MB, after that its get stop. This was happened several times. Any idea of this issue? But normally I download software, movie even more than 1GB files. Regards, Sumal On Tue, Mar 10, 2009 at 11:34 PM, Sumit Chandel sumitchan...@google.comwrote: Hi Sumal, What errors are you receiving when trying to download a GWT distribution? As far as I know, there shouldn't be anything stopping you from downloading a distro on our end. Regards, -Sumit Chandel On Mon, Mar 9, 2009 at 11:58 PM, suma...@gmail.com suma...@gmail.comwrote: HI, I'm Sumal from Sri Lanka... I tried many times to download GWT even older versions to download but can't. I'm using a DSL connection and PIV PC. Regularary I'm downloading SW, Movies but get error messages when downloading this. Please be kind enough to send the downloaded GWT to my email address in below. great...@hotmail.com copy to suma...@gmail.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Google, how do I use your toolkit and make a site that is also searchable by your webcrawler?
'I think either you've misunderstood hijax, you've misunderstood GWT, or you're being belligerent.' Probably all three to some degree. I guess I look at it this way, if I can write the app in Java, and have GWT translate it to a form that will run in the browser, then I would like to do that. I want to have my cake and eat it too. If I have think of it more in terms of html+javascript then I see GWT as much less of a win over the all GWT way of doing it. I'm also not convinced that the web crawler couldn't follow links in a dynamically generated page. Although I suppose that's not really the problem so much as exactly what to link to. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---