RequestFactory mapping

2011-01-15 Thread Metronome Basic
According to Thomas Broyer --- The first thing to do is to declare a servlet mapping for the RequestFactoryServlet at path /gwtRequest (this is the default, it can be changed). That's all you have to do on the server side.

Re: My GWT GData OAuth Demo

2011-01-15 Thread Mike.G
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

Re: Extend AsyncCallback or ServiceInterfaceProxyGenerator

2011-01-15 Thread Jeff Schwartz
Done! Just a side note and slightly off topic and I hope you forgive me but every time I have to do one of these large, multi file code changes in a Web application I break into a sweat. I can't even begin to count the number of times I thought I had captured all the places in my html, javascript

Re: EntityProxy for an interface

2011-01-15 Thread John Maitland
Thanks for the advise. After using getTop().resolveClientType this open up further compilications, not least a circular dependency in the layers. However, the next problem was intergrating this with a custom Locator, which resolves the domain class with the BaseProxy and not the actual proxy for

Re: Right aligning items of a MenuBar.

2011-01-15 Thread Y2i
If you put these selectors into a ui:style/ tag of *.ui.xml file they will not work because the rules will be obfuscated. The selectors need to go to your application's CSS file: http://code.google.com/webtoolkit/doc/latest/DevGuideUiCss.html#widgets Create a CSS file (mystyles.css), put it

Re: GWT documentation for UiBinder typo ? Spriter or Sprite ?

2011-01-15 Thread Y2i
What does com.my.app.widgets.logoname.Resources look like? -- 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

Re: GWT documentation for UiBinder typo ? Spriter or Sprite ?

2011-01-15 Thread Thomas Broyer
On Saturday, January 15, 2011 4:41:55 AM UTC+1, zixzigma wrote: from GWT documentation on UiBinder [1] in the code fragment below, is this a typo, do we need to use Sprite or Spriter ? Sprite userPictureSprite(); That's a typo, it should be a String. It will be the obfuscated CSS class

Override docklayoutpanel heights with CSS

2011-01-15 Thread Sam Stephens
Hi all, I'm trying to change the heights of the various north/south panels in a dock layout panel using CSS. But I cannot for the life of me figure out how. Any help ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group,

Re: GWT 2.1 MVP with DockLayoutPanel

2011-01-15 Thread Sam Stephens
Thanks, that sorted it. On Jan 13, 8:52 pm, zixzigma zixzi...@gmail.com wrote: http://groups.google.com/group/google-web-toolkit/browse_thread/threa... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to

Ideal vs Reality: How can RequestFactory deal with this situation?

2011-01-15 Thread Mike.G
hi All: As we know the reality has never been perfect, i am working on a legacy system with bad designed DB tables and i can't modify the tables for some reason, i can only read. On perfect situation, Entity A has a list of Entity B (both mapped as MySql table with 1:n relationship), when

RequestBuilder and Editor Framework integration?

2011-01-15 Thread Milan Cvejic
Hi, I am trying to integrate RequestBuilder with Editor framework, but can't manage to organize code properly, and to extend everything that i need. I was looking into SimpleBeanEditorDriver and RequestFactoryEditorDriver source code, but all I found is interface definitions, and I still can't

GWT Error problems

2011-01-15 Thread Ross McKinnon
Hi there, Ive been reworking my GWT app and an error has occurred. I have no idea what has caused it and the error messages aren't very useful. Has anyone came across this before? Thanks, Ross Starting Jetty on port [WARN] EXCEPTION java.lang.ClassNotFoundException:

Re: Override docklayoutpanel heights with CSS

2011-01-15 Thread Y2i
Is using CSS a strict requirement? What about using *size* property? http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/user/client/ui/DockLayoutPanel.html -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to

Re: GWT Error problems

2011-01-15 Thread Y2i
jetty couldn't find com.mckinnon.ross.server.DataTableServiceImpl Did you also rework web.xml? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from

Re: GWT Error problems

2011-01-15 Thread Ross McKinnon
No I have not altered web.xml. the servlet-class tags match where the classes are located. Thanks web-app !-- Servlets -- servlet servlet-nameuserServlet/servlet-name servlet-classcom.mckinnon.ross.server.UserServiceImpl/servlet- class /servlet servlet-mapping

Re: Ideal vs Reality: How can RequestFactory deal with this situation?

2011-01-15 Thread Y2i
There is no requirement that getAllAs(start, size) should call getA(id): getAllAs(start, size) can be implemented in any way on the server. http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html#impl As to the DB design: if A keeps list of Bs in a string field, may be the

Re: GWT Error problems

2011-01-15 Thread Y2i
But may be you renamed com.mckinnon.ross.server.DataTableServiceImpl and didn't modify web.xml to reflect that? It's strange that jetty does not complain about all other servlets except this one... -- You received this message because you are subscribed to the Google Groups Google Web

GWT errors after importing contacts mvp example into helios

2011-01-15 Thread bakki
I am getting - GWTTestCase can not be found in source packages. Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly. ExampleGWTTest.java /Contacts/test/com/google/gwt/sample/contacts/test line

Styling rows in CellTable

2011-01-15 Thread frank
Hi, I tried to stye a row in a Celltable with .setRowStyles in which I add the class SERVERROUNDTRIP I can find the new attached class in the generated html output. tr onclick= class=GL0PBETBED SERVERROUNDTRIP The Problem is, in the generated HTML file there is a style Element after the

Re: using new 2.1.1rc RequestFactory AutoBean in RESTful Architecture

2011-01-15 Thread karthik reddy
very valid questions. A good number of gwt developers at some stage will face similar questions. I would appreciate if someone could share their experiences and findings pertaining to the questions zixzigma has brought up. -- You received this message because you are subscribed to the

Re: AdSense and GWT

2011-01-15 Thread Bryan Donnovan
I applied to Adsense for Ajax last May when it was introduced at Google I/O. To date I have received no response whatsoever. Pretty disheartening. Has anyone on this group received AFA access ? On Dec 30 2010, 3:48 pm, Matthew Hill matt2...@gmail.com wrote: Interesting. Thank you very much,

Re: RequestFactory mapping

2011-01-15 Thread Thomas Broyer
On Saturday, January 15, 2011 10:05:39 AM UTC+1, coelho wrote: According to Thomas Broyer --- The first thing to do is to declare a servlet mapping for the RequestFactoryServlet at path /gwtRequest (this is the default,

Re: using new 2.1.1rc RequestFactory AutoBean in RESTful Architecture

2011-01-15 Thread Y2i
On Saturday, December 11, 2010 2:01:28 PM UTC-8, zixzigma wrote: is it possible to use 2.1.1 RequestFactory/AutoBean to convert POJO to JSON and viceversa when interacting with a RESTful Web Service ? the common practice with GWT client-server communication is to have packages:

Re: AdSense and GWT

2011-01-15 Thread Peter Ondruska
I applied to A4A some time ago but nothing... -- 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

Re: Right aligning items of a MenuBar.

2011-01-15 Thread Thomas Broyer
On Saturday, January 15, 2011 3:33:35 PM UTC+1, Y2i wrote: If you put these selectors into a ui:style/ tag of *.ui.xml file they will not work because the rules will be obfuscated. ...unless you use an @external rule to tell GWT not to obfuscate them:

Re: GWT documentation for UiBinder typo ? Spriter or Sprite ?

2011-01-15 Thread zixzigma
you can see the code below, the code displays the image (homeIcon), but the css style is not applied (to my link for example) public interface MyResources extends ClientBundle { @Source(style.css) Style css(); @Source(homeIcon.png) ImageResource homeIcon(); public interface Style

Re: GWT documentation for UiBinder typo ? Spriter or Sprite ?

2011-01-15 Thread zixzigma
the warning message in the IDE is Unknown CSS class 'css.foo' and that arguments of method UiObject.setStyleName and attributes styleName in ui.xml does not refer to a CSS class. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To

Re: Ideal vs Reality: How can RequestFactory deal with this situation?

2011-01-15 Thread Thomas Broyer
In addition to Y2i's response, there's also the possibility to do the parse the field and get the Bs from within the A.getBs() accessor; so only when the client asks for bs they will be fetched, lazily, whether it's a getA or getAllAs service method, or any other. -- You received this message

Re: GWT documentation for UiBinder typo ? Spriter or Sprite ?

2011-01-15 Thread Thomas Broyer
On Saturday, January 15, 2011 10:12:09 PM UTC+1, zixzigma wrote: you can see the code below, the code displays the image (homeIcon), but the css style is not applied (to my link for example) [...] I am not calling ensureInjected anywhere, could it be that ? Yes. where should I call

Re: Styling rows in CellTable

2011-01-15 Thread Thomas Broyer
If CellTable's default styles get in your way, you'll have to replace them with yours: create an interface extending CellTable.Resources and override the cellTableStyle() method to assign it a new @Source in which you'll put your own styles. Then, GWT.create() that new interface and give it to

Re: GWT documentation for UiBinder typo ? Spriter or Sprite ?

2011-01-15 Thread zixzigma
wow it worked. I had the same problem two days asgo , not calling ensureInjectede, but in that case I was calling MyResources from the JavaCode. here doing it in UiBinder, did not know where to put it. Thank You ! which of the methods you suggested you think is better ? @UiField MyResources

Highlighting the currently active link in a list of links in a Navigation Bar

2011-01-15 Thread zixzigma
Lets say we are using a list of HyperLinks to create a Navigation Bar/ Menu. each Link takes us to a new Place. when we go to a new place, the Link for this new place needs to be highlighted to signal it is active so basically Link#1Link#2Link#3 Link#4 Link#5 they all have a default

Re: Not able to set BigDecimal value in a grid column using HTMLTable setText function in IE8

2011-01-15 Thread Richard
Perhaps you forgot to update your gwt.xml files? http://code.google.com/p/gwt-java-math/wiki/GettingStarted From Richard. On Jan 15, 2:33 am, smriti sharma smriti...@gmail.com wrote: Richard, I have upgraded the application to gwt-math-2.1.jar, but the issue persists. I am still receiving

how to wrap an image inside a Hyperlink ?

2011-01-15 Thread zixzigma
g:InlineHyperLink, g:HyperLink and g:Anchor cannot contain an element if I'm correct. do you know how we can then wrap an image inside a hyperlink, other than the approach below? g:HTMLPanel a href=#mail/starred Home g:Image

GWT + DB Connection -- Failure when deployed!

2011-01-15 Thread Ross McKinnon
Hi everyone, My app connects to a MySQL DB on an external server! When tested in hosted mode this works fine! However, when I deploy the app via the Google App Engine the DB connection fails when trying to connect! Does anyone have any proposed solutions? Thanks, Ross -- You received this

Re: how to wrap an image inside a Hyperlink ?

2011-01-15 Thread Allen Holub
The following works for me: /** An HTML anchor that can wrap an arbitrary widget (for example, a GWT *Image object). * * (c) 2009 Allen I Holub. */ public class WidgetAnchor extends HTMLPanel { public WidgetAnchor( String href, Widget contents ) {this( href, , contents );

Re: GWT + DB Connection -- Failure when deployed!

2011-01-15 Thread zixzigma
Google App Engine's primary DB is BigTable DataStore, which is NOT a Relational Database. they are introducing a new hosted SQL DB for business. I don't think SQL is available at the moment. DataStore: http://code.google.com/appengine/docs/java/datastore/overview.html AppEngine for Business

Re: Styling rows in CellTable

2011-01-15 Thread John LaBanca
Alternatively, you can add !important to you CSS styles to ensure they take precedence. .myStyle { backgound: blue !important; // Takes precedence because it is important } .myStyle { backgound: red; } .myStyle { backgound: green; // Takes precedence over red because it appears after, but

Re: GWT documentation for UiBinder typo ? Spriter or Sprite ?

2011-01-15 Thread Thomas Broyer
On Saturday, January 15, 2011 10:44:25 PM UTC+1, zixzigma wrote: wow it worked. I had the same problem two days asgo , not calling ensureInjectede, but in that case I was calling MyResources from the JavaCode. here doing it in UiBinder, did not know where to put it. Thank You !

Re: GWT 2.1.1 compiles 2 less permutations?????

2011-01-15 Thread omsrobert
Thanks. That explains it. I wish the release notes were available for it. On Jan 14, 4:46 pm, Chris Conroy con...@google.com wrote: the gecko user agent was deleted. (it referred to Firefox 2, which is ancient). gecko1_8 is Firefox 3+ On Fri, Jan 14, 2011 at 4:41 PM, omsrobert

Re: GWT documentation for UiBinder typo ? Spriter or Sprite ?

2011-01-15 Thread zixzigma
how can I see what the generated code looks like ? what generated code you are talking about ? -- 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

ORM Servlet + GWT or FacesServlet + SmartGWT LGPL

2011-01-15 Thread SrArcos
Hello, I have a question for the forum. I need to do a proyect with JPA (with Hibernate) to manage the model, and I'd like to use SmartGWT LGPL as view. The question is if there is any implemented Servlet for free that sends the orm,s to the SmartGWT client, to populate the DataSource of the side

sequence of gwt custom dynamic widget

2011-01-15 Thread Luke
i insert multiple similar own-widget(MYCustomWidget) into div in uibinder (HOLDER_IN_UIBINDER) g:HTMLPanel ui:field=HOLDER_IN_UIBINDER //programically adding multiple MYCustomWidget ; each mycustomwidget is li element /g:HTMLPanel Before i'm using below code to retrieve value for each

Problem trying to use JSNI to eval() a JSON string

2011-01-15 Thread Glenn Simon
Here is some of my code: public abstract class Message extends JavaScriptObject implements Serializable { // does it need to be serializable? protected Message() {} public final native String getType() /*-{ return this.type; }-*/; public final native Long getTimeLeft()

What happened to CellList, CellTable, CellBrowser?

2011-01-15 Thread Chris Moore
I noticed today that although the Widget Gallery at http://code.google.com/webtoolkit/doc/latest/RefWidgetGallery.html still mentions CellList, CellTable, and CellBrowser, the links that should go to the Javadoc for these don't work anymore. I tried going up a level in the javadoc to

ORM Servlet + GWT or JSF Servlet + GWT

2011-01-15 Thread SrArcos
Hello all, This is my first post and I have a question for the grroup. I need to do a proyect with JPA (with Hibernate), and I'd like to use the RequestFactory on GWT. The question is if there is any implemented Servlet (or any extension of RequestFactoryServlet) that sends the orm,s to the GWT

Re: What happened to CellList, CellTable, CellBrowser?

2011-01-15 Thread Jim Douglas
http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/user/cellview/client/CellList.html http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/user/cellview/client/CellTable.html

Re: using new 2.1.1rc RequestFactory AutoBean in RESTful Architecture

2011-01-15 Thread David Chandler
Also, you may want to have a look at https://github.com/chirino/resty-gwt. It automates JSON--POJO mapping to REST-style services using a GWT generator. AutoBeans could certainly be used for JSON--POJO mapping, as RequestFactory uses both AutoBeans and JSON under the covers. However, the

Re: CellTable MVP

2011-01-15 Thread David Chandler
Hi Raymond, I've taken a stab at this in the listwidget sample project. I wanted the view screen to be its own Place for bookmarking, so I created a HyperlinkCell and use utility methods in RequestFactory and PlaceHistoryMapper to create a URL from an ID / Place. Here's the relevant code from

Re: Ideal vs Reality: How can RequestFactory deal with this situation?

2011-01-15 Thread Mike.G
thanks Thomas, however maybe you misunderstand my meaning? i'd like to do the *parse and fetch Bs* when the user just want to see only one A(the detail view), but if the user want to see a list of As, i should not parse and fetch B, because it's too heavy. -- You received this message because

Re: Security in GWT 2.1

2011-01-15 Thread agi
Hi I am also dealing with this problem now, trying to find some example for authentication for EJB + GWT .. and since I am total newbie to security topics, I would also appreciate some advise:) @Thomas I was thinking about using all those new 2.1 classes like UserInformation etc... but I have

[gwt-contrib] Re: Improve canvas for browsers (and permutations) with partial canvas support. (issue1296801)

2011-01-15 Thread jlabanca
LGTM I don't think we should expose any of the implementation classes. http://gwt-code-reviews.appspot.com/1296801/diff/1/4 File user/src/com/google/gwt/canvas/dom/client/CanvasElementSupportDetectedMaybe.java (right): http://gwt-code-reviews.appspot.com/1296801/diff/1/4#newcode28