Showing and Editor's errors

2012-08-08 Thread Alexander Orlov
If an Editor doesn't satisfy an Entity's constraints, it calls driverCtx.fire(new Receiver() { > @Override > public void onConstraintViolation(Set> > violations) { > dialog.setText("Errors detected"); > Driver.DRIVER.setConstraintViolations(violations); > L

SuperDevMode and server-side code

2012-08-06 Thread Alexander Orlov
I want to run my RequestFactory using GWT' SuperDevMode. The client-side code compiles&runs fine but as soon as I make any RF-using server call I get an exception because server-side code isn't supported in SuperDevMode yet. The reason is: Currently, Super Dev Mode doesn't support running Java

Delegate an Editor's edit() & save() functionality via Activities & Places' Presenter to an Activity class?

2012-07-30 Thread Alexander Orlov
I have an architectural question. I've introduced EntityWorkflow to my Activities & Placesenabled app. In GWT's *Activities &

Support for custom time zones in GWT

2012-07-13 Thread Alexander Orlov
GWT's Date object operates just like its JavaScript counterpart in a user's system time zone. Is there a way to override GWT's Date object time zone? Creating something like > public class FakeDate extends Date { > public FakeDate(String timeZoneConstantJson) { > FakeDate.timeZ

Re: CellTable vs DataGrid

2012-05-16 Thread Alexander Orlov
gt; > On Tuesday, March 20, 2012 6:23:08 AM UTC-7, Thomas Broyer wrote: >> >> >> >> On Monday, March 19, 2012 7:23:07 PM UTC+1, Alexander Orlov wrote: >>> >>> *CellTable vs DataGrid* — when to use which? DataGrid is for "large >>> data se

Re: RequestFactoryEditorDriver remains dirty

2012-03-26 Thread Alexander Orlov
Thx again, your hint simplified my code a lot! On Monday, March 26, 2012 4:22:27 PM UTC+2, Thomas Broyer wrote: > > > > On Monday, March 26, 2012 4:18:19 PM UTC+2, Alexander Orlov wrote: >> >> On Monday, March 26, 2012 1:49:59 PM UTC+2, Thomas Broyer wrote: >>>

Re: RequestFactoryEditorDriver remains dirty

2012-03-26 Thread Alexander Orlov
On Monday, March 26, 2012 1:49:59 PM UTC+2, Thomas Broyer wrote: > > The private field storing the LeafValueEditor's values is only initialized > in edit(), so in your case you have to call edit() again from your > onSuccess. > Thx, for the clarification in respect to *isDirty(). *In fact isDirt

RequestFactoryEditorDriver remains dirty

2012-03-26 Thread Alexander Orlov
I followed the Editor example using RequestFactoryEditorDriver for RF-driven persistence. But it doesn't work for me. When I call * * *public class EmployeeEditor extends Composite implements Editor * the model data is

CellTable vs DataGrid

2012-03-19 Thread Alexander Orlov
*CellTable vs DataGrid* — when to use which? DataGrid is for "large data sets" and CellTable for (kind of) smaller data sets. But is there a *reason not to use* the DataGrid Composite for all kinds of data sets? What would be the disadvantage, besides an (non-user-perceivable) init delay? -

An inherent and non-fixable GWTTestCase warning?

2012-03-05 Thread Alexander Orlov
*logging for HtmlUnit thread* * [WARN] Expected content type of 'application/javascript' or 'application/ecmascript' for remotely loaded JavaScript element at 'http://200.200.5.141:8011/dp.verp.actas.ActAs.JUnit/dp.verp.actas.ActAs.JUnit.nocache.js', but got 'application/x-javascript'.* How

Re: GWTTestCase and RequestFactory calls containing client code

2012-03-02 Thread Alexander Orlov
*Solution:* * * A * *in the **.gwt.xml* is your/my friend. -- 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/-/1HiOnmRNiTYJ. To post to this group,

Re: GWTTestCase and RequestFactory calls containing client code

2012-03-02 Thread Alexander Orlov
I guess, you're running your GWTTestCases with Eclipse? I'm using IntelliJ and when I run the test cases, no folder like *dp.verp.planer.Planer**.JUnit *is being created. However this folder is created when running the test cases with Eclipse (although they failed for other, Eclipse-specific re

Re: GWTTestCase and RequestFactory calls containing client code

2012-03-02 Thread Alexander Orlov
public void onSuccess(MyType response) {* *}* On Friday, March 2, 2012 10:31:13 PM UTC+1, Thomas Broyer wrote: > > > > On Friday, March 2, 2012 8:45:36 PM UTC+1, Alexander Orlov wrote: >> >> When I call RequestFactory calls containing methods from my >&

GWTTestCase and RequestFactory calls containing client code

2012-03-02 Thread Alexander Orlov
When I call RequestFactory calls containing methods from my *GWTTestCase*extending JUnit test I always get: *[WARN] 404 - POST /dp.verp.actas.ActAs.JUnit/gwtRequest (192.168.1.51) 1422 bytes * *Mar 2, 2012 7:36:54 PM com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJobManagerImpl

Is there a difference between int and Integer?

2012-01-18 Thread Alexander Orlov
In Java, *Integer* is an object and can be set to null whereas *int *is a primitive and cannot be set to null. In RequestFactory only the wrapped versions of primitives (= objects) are allowed. So you might use *Boolean* and *Integer* but not *boolean* and *int *. In GWT you can use both but *do

Re: Module inheritance problem: Refused to display document because display forbidden by X-Frame-Options.

2012-01-16 Thread Alexander Orlov
Solution: I haven't initialized the RequestFactory *before calling* *getI18nFacet()*. -- 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/-/rrKJPiXE

Re: Module inheritance problem: Refused to display document because display forbidden by X-Frame-Options.

2012-01-16 Thread Alexander Orlov
...the *onMouduleLoad()* code is located in *dp.verp.manager.client.**Main*. -- 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/-/OWB0hlTC8xkJ. To po

Module inheritance problem: Refused to display document because display forbidden by X-Frame-Options.

2012-01-16 Thread Alexander Orlov
I have two modules Manager.gwt.xml which inherits Planer.gwt.xml but when I call the Manager module I get *Refused to display document because display forbidden by X-Frame-Options.* which is displayed in the Web Inspector console. Everything works fine when I omit the *get

Re: RequestFactory: How to retrieve an EntityProxy within another EntityProxy?

2011-12-13 Thread Alexander Orlov
So you basically have to do sth. like *final Request> req = ctx.getReports(sessionId).with("user"); // user is the Report entity's UserProxy representation* ...which works perfectly. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To

RequestFactory: How to retrieve an EntityProxy within another EntityProxy?

2011-12-12 Thread Alexander Orlov
I've got sth. like: @ProxyFor(value = Report.class, locator = CommonLocator.class) public interface ReportProxy extends EntityProxy { // ... Integer getUserId(); *// works* void setUserId(Integer userId); UserProxy getUser(); *// doesn't work* void setUser(UserProxy user);

Re: Best practice for working with separate GWT modules and their inheritance

2011-12-08 Thread Alexander Orlov
Thanks again for the clarification! -- 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/-/3HEbjspCCxcJ. To post to this group, send email to google-we

Re: Best practice for working with separate GWT modules and their inheritance

2011-12-08 Thread Alexander Orlov
So I'll have a CustomerBase module (without an entry-point) that is inherited by both Customer *and* Manager (both with their specific entry-points)? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visi

Best practice for working with separate GWT modules and their inheritance

2011-12-08 Thread Alexander Orlov
Assumed I've a Customer.gwt.xml and a Manager.gwt.xml module. Manager inherits Customer because I want to use Customer's functionality and RF's proxy classes in Manager. Ok, those proxy classes could be also put into a Common.gwt.xml but let's omit this option for the moment. Now the problem is

Re: RequestFactory Security: prevent the user from retrieving other users content

2011-12-02 Thread Alexander Orlov
I'll go with the token approach because I assume, cookies require HTTP and if you want to use the same app over Web Sockets, the cookies approach would not work? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on

Re: RequestFactory Security: prevent the user from retrieving other users content

2011-12-02 Thread Alexander Orlov
That's what I had in mind too but I wanted to know if there is also a GWT-specific out-of-the-box solution. Thx! -- 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/go

RequestFactory Security: prevent the user from retrieving other users content

2011-12-02 Thread Alexander Orlov
A RF call retrieves bookings for the current user. How can I prevent the current user from opening Web Inspector, changing the *userId* of the RF call and retrive bookings from another user? A classic problem isn't it? :) Are there RF/GWT-specific solutions and/or best practices? -- You receiv

The RequestFactory version of GWT RPC XSRF protection

2011-11-07 Thread Alexander Orlov
There is the GWT RPC XSRF protection to make GWT apps more secure. I know that RequestFactory isn't using "GWT RPC" although RF is using JSON to communicate with the backend just like GWT RPC does. So does RF has a bui

Re: A static EventBus / SimpleEventBus: Pro & Contra

2011-11-07 Thread Alexander Orlov
Thank you all for your clarifications! So there are *no particular reasons for not using a static EventBus* but I agree with Jens that using a static EventBus, hides the fact that a particular View requires an EvenBus. So I'll use the instance version of the EventBus instead of its static versi

Re: A static EventBus / SimpleEventBus: Pro & Contra

2011-11-07 Thread Alexander Orlov
Maybe I've misguided you mentioning the SimpleEventBus implementation of the EventBus interface. The actual question was whether I should use a *static* EventBus that can be defined in a "Common" class and reference this static EventBus from any other view. E.g. using *MyView() {* *// MyView

A Maven repo with daily or at least weekly GWT snapshots?

2011-11-06 Thread Alexander Orlov
Is there a Maven repo that provides daily/weekly GWT 2.5 snapshots? -- 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/-/jFCgwj-Lt7UJ. To post to thi

Re: what does the symbol "@" mean?

2011-11-06 Thread Alexander Orlov
Seems to be a variable delimiter, a kind of "$my_variable$". -- 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/-/oh4sxHemgR8J. To post to this group

A static EventBus / SimpleEventBus: Pro & Contra

2011-11-06 Thread Alexander Orlov
EventBus is a really nice mechanism to *decouple methods from callbacks* by adding corresponding event handlers to an EventBus. By nature EventBus is something that should be known to both classes, the calling and the called class. So you can *1. pass an EventBus in a constructor or* *2. use a

Get more info out of a client-side UmbrellaException

2011-10-11 Thread Alexander Orlov
Sometimes I get *UmbrellaExceptions* in production mode that I don't get in development mode. Most of the time it happens when I fire GWT requests very frequently when I e.g. select different fields quickly. *How do I get more info out of this Umbrella?* Any clues? -- You received this messag

Re: Create custom callbacks to achieve synchronous code execution

2011-10-11 Thread Alexander Orlov
Thx a lot! Pretty much what I've looked for! -- 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/-/58zGUENhpooJ. To post to this group, send email to

RequestFactory: Request vs InstanceRequest

2011-10-09 Thread Alexander Orlov
There is no clear advice in the docs when you should use which kind of request. Using regular *Request*s (need to reference static methods on the server side) is not so verbose (on the client side) as using * InstanceRequest*s. But what's about the performance or other implications? -- You rece

Re: [SOLUTION] Re: Create custom callbacks to achieve synchronous code execution

2011-10-04 Thread Alexander Orlov
On Tue, Oct 4, 2011 at 7:53 PM, Jens wrote: > Yeah ok maybe I missunderstood your solution example. But your general idea > is correct: > > 1.) do the first async request > 2.) in the callbacks onSuccess method of the first request execute the > second async request. > > So basically you are chai

Re: Create custom callbacks to achieve synchronous code execution

2011-10-04 Thread Alexander Orlov
On Tue, Oct 4, 2011 at 6:53 PM, Ashton Thomas wrote: > My understanding is that the simple solution below would work. Is this > correct? > > service.getStuff(new AsyncCallback(){ > public void onSuccess(result){ > updateStuff(result); > } > } > > public void updateStuff(ThisThat obj){ >

Re: [SOLUTION] Re: Create custom callbacks to achieve synchronous code execution

2011-10-04 Thread Alexander Orlov
On Tue, Oct 4, 2011 at 6:37 PM, Jens wrote: > You shouldn't use this solution. GWT.runAsync is used to create a code > split point and not to execute things asynchronously. I don't want to execute things asynchronously. I want to execute things * synchronously*. > As far as I know these code

Re: Create custom callbacks to achieve synchronous code execution

2011-10-04 Thread Alexander Orlov
On Tue, Oct 4, 2011 at 5:59 PM, Ashton Thomas wrote: > Hey Alexander, I am not sure you are going about this the correct way. Dev > Mode is NOT synchronous and it functions just like production mode. There is > another reason why you are getting your results. It may be because the > requests take

[SOLUTION] Re: Create custom callbacks to achieve synchronous code execution

2011-10-04 Thread Alexander Orlov
Use code like: RunAsyncCallback getResourceItems = new RunAsyncCallback() { @Override public void onFailure(Throwable reason) { GWT.log(reason.getMessage()); } @Override public void onSuccess() { System.out.println("THIRD");

Create custom callbacks to achieve synchronous code execution

2011-10-04 Thread Alexander Orlov
It seems that Dev Mode code runs synchronously... Otherwise I can't explain a bug that occurs only in production mode where the results are already there before a table has been cleaned to receive those new results and still has its outdated results. So both are mixed, although I call "cleanView

Re: GWT + Server Paths

2011-09-20 Thread Alexander Orlov
Also using a */shop*, */news *pattern requires the browser to reload the page, each time you navigate from one path to another. With GWT you don't need to reload the page at all. Using *hashtags,* like already mentioned, enables you to implement a reload-less navigation structure: */#shop, /#new

Re: GWT module 'gwtclient' may need to be (re)compiled

2011-09-20 Thread Alexander Orlov
It's a common problem when your compiled GWT code is outdated. Basically your deployed *app.war* doesn't really contain up-to-date GWT code. Unzip the war file an look at the GWT output time stamps! -- You received this message because you are subscribed to the Google Groups "Google Web Toolki

Re: Using @UiHandler annotation on static fields

2011-09-20 Thread Alexander Orlov
On Monday, September 19, 2011 5:43:09 PM UTC+2, gwa wrote: > > *@UiHandler("dialogOk")* > *void dialogOk(final ClickEvent event) {* > *yourOtherClass.doSomething();* > *}* > > > Imagine your other class is an Activity (Presenter from MVP pattern), and > you have a correcttly

Re: A DateBox where I can select the time and hide the DatePicker

2011-09-20 Thread Alexander Orlov
Thx, however I try to avoid third-party extensions as *much as possible*. Really, with time their maintenance can become the biggest pain in ones behind. So I suppose, I have to use a TextBox. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" gro

Re: Using @UiHandler annotation on static fields

2011-09-19 Thread Alexander Orlov
On Monday, September 19, 2011 5:23:32 PM UTC+2, Eric Metcalf wrote: > > Why don't you want to do the 2 things you mentioned? > > > I want to avoid putting this code into "another" class or using the * > In this case I have to make a method (that is called by *dialogOk()*) in THIS class static

Using @UiHandler annotation on static fields

2011-09-19 Thread Alexander Orlov
I have *@UiHandler("dialogOk")* *void dialogOk(final ClickEvent event) {* *// do something* *}* * * This is perfectly valid code if dialogOk is within THIS class but how can I add a ClickHandler to a static Widget that is defined in "another" class? I want to avoid putting t

Re: Panel exposed as url?

2011-09-19 Thread Alexander Orlov
I mean rather something like *http://host/index.html?showWidget=infoPanel* -- 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/-/TWvZ0Mw8s1YJ. To post

Re: Panel exposed as url?

2011-09-19 Thread Alexander Orlov
As far as I understand you, you can do the following: *http://path/showWidget=infoPanel* String widgetToShow = Window.Location.getParameter("showWidget"); if(widgetToShow.equals("infoPanel")) { // DO something to "expose your Panel" to the user // infoPanel should be *visible="false"* by defaul

A DateBox where I can select the time and hide the DatePicker

2011-09-19 Thread Alexander Orlov
final DateBox.Format format = new DateBox.DefaultFormat(DateTimeFormat.getFormat(DateTimeFormat.PredefinedFormat.TIME_SHORT)); begin.setFormat(format); begin.hideDatePicker(); I have two problems with this DateBox 1. I don't want it

Re: Dart & GWT

2011-09-18 Thread Alexander Orlov
On Sunday, September 18, 2011 11:11:51 PM UTC+2, nino wrote: > > Is Dart even out yet ? > Not yet and therefore I'm asking those questions. Dart will be introduced on 10-12th Oct. during the GOTO Conference. -- You received this message because you are subscribed to the Google Groups "Googl

Dart & GWT

2011-09-18 Thread Alexander Orlov
Some of you maybe already read this mail. Yes, Google's new "structural web programming language" aka Dart... Also I suppose that some of you are even working on its integration into GWT. Keeping it within your NDA frame, is it possible to tell how

Re: java.lang.NoClassDefFoundError:org/json/JSONException

2011-09-16 Thread Alexander Orlov
On Friday, September 16, 2011 4:45:45 PM UTC+2, Cristian Rinaldi wrote: > > I have an error when the application is deployed. > The exception is "Caused by: java.lang.NoClassDefFoundError: org/json/ > JSONException". But the rare is that I have all libraries in de WEB- > INF/lib > > gwt-servl

Re: Generating module.cache.js instead of module.nocache.js

2011-09-16 Thread Alexander Orlov
On Friday, September 16, 2011 12:00:59 PM UTC+2, Thomas Broyer wrote: > > *.cache.* and *.nocache.* are just naming conventions adopted by GWT to > help setup the "perfect > caching"configurations.

Generating module.cache.js instead of module.nocache.js

2011-09-16 Thread Alexander Orlov
The default behavior of GWT is to generate the *module.nocache.js* versions. But how can I generate a *module.cache.js* version of a module? I've foundsome informationabout this issue but it seems to be obsolete. Also what does *cac

Re: Cannot lo0ad my application since the upgrade to gwt 2.4

2011-09-16 Thread Alexander Orlov
You need to add validation-api-1.0.0.GA.jar to your classpath. -- 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/-/vLXHE6By7CAJ. To post to this gro

Re: RequestFactory error

2011-09-12 Thread Alexander Orlov
On Monday, September 12, 2011 6:36:45 PM UTC+2, Pavel Byles wrote: > > So now I'm getting a 500 error: Problem accessing /gwtRequest > 500? You would get Error 404 when */* isn't your app context what's mostly the case. My url-pattern is *planer/gwtRequest *because in my *.gwt.xml I've **. If yo

Re: RequestFactory error

2011-09-12 Thread Alexander Orlov
in your case maybe: */gwtRequest* -- 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/-/BuTwBMjVxgQJ. To post to this group, send email to google-web-

Re: RequestFactory error

2011-09-12 Thread Alexander Orlov
Did you add a corresponding RF servlet handler to your web.xml? reqFactory com.google.web.bindery.requestfactory.server.RequestFactoryServlet reqFactory planer/gwtRequest -- You received this message because you are subscribed to the Google Gr

Re: RequestFactory error

2011-09-12 Thread Alexander Orlov
"Compile" scope in Maven means that it's also available at runtime. I had exact the same error several times and as far as I remember I solved it by adding gwt-servlet-deps.jar to the system scope which is basically the same as the compile scope in Maven. Also gwt-servlet-deps.jar has *JSONExce

Re: Sb. uses the Unit Test pattern w/ GWT?

2011-09-12 Thread Alexander Orlov
On Monday, September 12, 2011 12:33:20 PM UTC+2, Thomas Broyer wrote: > > What do you mean by "GWT's JUnit"? (and actually how do you expect it to > shorten startup or re-compilation time?) I mean GWT's GWTTestCase extending JUnit that's not redering any UI. Therefore the dev mode re-compilatio

Re: Autoboxing

2011-09-12 Thread Alexander Orlov
I suppose: In JS there is no distinction between *Integer* and *int*. In JS there's only a single *var* type*.* -- 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/goog

Sb. uses the Unit Test pattern w/ GWT?

2011-09-12 Thread Alexander Orlov
I've tried it and found that the GWT startup or re-compilation time wasn't shortened which was the primary reason I've tried it. Has sb. gained real production advantages using *GWT's JUnit*? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" grou

Re: RequestFactory error

2011-09-12 Thread Alexander Orlov
Try to include gwt-servlet-deps.jar in compile scope, although you don't need it at all... This is the minimal configuration for RF . -- You received this message because you are subscribed to the Google Groups "Google

Re: Calling *.nocache.js from a remote page

2011-09-10 Thread Alexander Orlov
Thx, worked like a charm! -- 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/-/C2LP4XKZjcQJ. To post to this group, send email to google-web-toolkit@

Re: 2.4: Is gwt-servlet still necessary when using RF instead of RPC?

2011-09-09 Thread Alexander Orlov
/p/google-web-toolkit/source/browse/trunk/samples/mobilewebapp/pom.xml > > For explanation on using RequestFactory with Maven, see > > > http://code.google.com/p/google-web-toolkit/wiki/RequestFactoryInterfaceValidation#Maven_builds > http://code.google.com/p/google-web-toolkit/

2.4: Is gwt-servlet still necessary when using RF instead of RPC?

2011-09-09 Thread Alexander Orlov
On Fri, Sep 9, 2011 at 10:50 AM, Thomas Broyer wrote: > Make sure you have gwt-servlet.jar (and check the version) or > requestfactory-server.jar in your WEB-INF/lib. > Ah, thx! I've added requestfactory-server and thought it would make gwt-servlet obsolete. So I've removed gwt-servlet completel

2.4: Is gwt-user required at runtime?

2011-09-09 Thread Alexander Orlov
In 2.3 ** *com.google.gwt* *gwt-user* *${gwt.ver}* ** *provided* ** worked fine for me. Now I have to use compile scope to avoid this [WARN] Server class 'com.google.web.bindery.requestfactory.server.RequestFactoryServl

Re: Error while compiling gwt module ?.

2011-08-23 Thread Alexander Orlov
On Tue, Aug 23, 2011 at 4:03 PM, suresh babu wrote: > > But I don't known where this jar is used. > It's a dependency for some *CellWidgets*. You should be able to compile your code without this dependency using GWT 2.4-rc1. -- You received this message because you are subscribed to the Google G

Re: DevMode turnaround times: Very slow view recompilation

2011-08-23 Thread Alexander Orlov
Just recognized that sub-classing classes which already have sub-classed * Composite* also greatly increases the refresh time. Using the *@UiChild*annotation achieves almost the same effects in 1/3 of the time. -- You received this message because you are subscribed to the Google Groups "Google

Re: Error while compiling gwt module ?.

2011-08-23 Thread Alexander Orlov
On Tue, Aug 23, 2011 at 3:08 PM, suresh babu wrote: > Even after adding in > gwt.xml it shows same error. Are validation-api-*.jar and validation-api-*-sources.jar in your classpath? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To

Re: Error while compiling gwt module ?.

2011-08-23 Thread Alexander Orlov
Putting ** into your *.gwt.xml might solve the problem. -- 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/-/engnMcr5PiMJ. To post to this group,

DevMode turnaround times: Very slow view recompilation

2011-08-23 Thread Alexander Orlov
I'm working with a really fast desktop machine with a SSD but a view refresh in DevMode still takes 5-10s using GWT 2.3 (only for client-side code). Is the situation going to improve anytime soon? I've read about some compilation caching mechanisms in 2.4... Are there any other tweaks one can m

Re: Remove ALL CSS from GWT

2011-08-22 Thread Alexander Orlov
On Mon, Aug 22, 2011 at 1:36 PM, Sudhakar Abraham < s.abra...@datastoregwt.com> wrote: > > Change the property in gwt.xml file as follows. > > In the Project.gwt.xml file do not inherit the css file. > comment as follows > ...is supposed to work only if you are using "non-Layout" widgets, i.e.

Re: Remove ALL CSS from GWT

2011-08-19 Thread Alexander Orlov
Using RootPanel.get().add(app); instead of RootLayoutPanel.get().add(app); ...was the solution. Eventually you should add to your *.gwt.xml as described here . -- You received this message because you are subsc

Remove ALL CSS from GWT

2011-08-19 Thread Alexander Orlov
Even if you don't specify any specific theme in the *.gwt.xml some CSS directives are always inserted into the app. How can I specify that GWT should not insert any single line of CSS into the app? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit

Re: RequestFactory: Advantages of using the ServiceLocator pattern

2011-08-18 Thread Alexander Orlov
On Thursday, August 18, 2011 2:43:47 PM UTC+2, Alexander Orlov wrote: > public void setUser(final Integer userId) { > this.user = User.find(userId); // this is what I need to do using > the "static" way > > // below is what I hav

Re: Aw: Re: RequestFactory: Advantages of using the ServiceLocator pattern

2011-08-18 Thread Alexander Orlov
On Thursday, August 18, 2011 2:59:43 PM UTC+2, Jens wrote: > > Of course in this example using a SL doesn't seem nice..but the example > itself isn't really nice to me :) > Agree :) This is called "successively grown". -- You received this message because you are subscribed to the Google Group

Re: RequestFactory: Advantages of using the ServiceLocator pattern

2011-08-18 Thread Alexander Orlov
On Thursday, August 18, 2011 2:48:56 PM UTC+2, Magno Machado wrote: > > I didn't understand your exemple. Who is responsible for doing all of this > stuff is the requestfactory framework, not you > I haven't implemented SL for all entities. So I still rely on this static server-side method to k

Re: RequestFactory: Advantages of using the ServiceLocator pattern

2011-08-18 Thread Alexander Orlov
But what's about this case: This method is from a server-side entity class that has to associate it's *user* field with a given user (retrieved by its userId). public void setUser(final Integer userId) { this.user = User.find(userId); // this is what I need to do using the "static"

RequestFactory: Advantages of using the ServiceLocator pattern

2011-08-18 Thread Alexander Orlov
I think using ServiceLocator boils down to "Methods that return a Request object in the client interface are implemented as static methods in the service class. Alternatively, they may be implemented as instance methods in a service object returned by a ServiceLocator." what pretty much descr

Re: Obtaining the click position of the underlying widget from an overlay widget

2011-08-16 Thread Alexander Orlov
o matter where on the FocusPanel I click, the value remain static. When I click on another FocusPanel the values change but reamin static within the same FocusPanel. > > > On Tue, Aug 16, 2011 at 7:26 PM, Alexander Orlov < > alexander.or...@loxal.net> wrote: > >> I have

Obtaining the click position of the underlying widget from an overlay widget

2011-08-16 Thread Alexander Orlov
I have something like The FocusPanel is attached to a random place within the ScrollPanel. Now I want to get the position of the place where the user places his click. I've tried the following focusPanel.addClickHandler(new ClickHandler() { @Override public voi

Resizable panel-like widget

2011-08-11 Thread Alexander Orlov
I'm looking for a panel-like widget that can be resized (vertically) when the users clicks and moves its bottom/top end. Couldn't find anything suitable in GWT's Showcase app. -Alex -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To vie

Re: Offline Google Web Toolkit

2011-08-08 Thread Alexander Orlov
The most convenient and appropriate way would be to use the newly added Canvas (part of the HTML5 spec) API. Here is a demo of GWT using Canvas . I doubt that using all these GWT extension stuff

Re: Aw: Re: Best practice for using values returned in callbacks (RequestFactory)

2011-08-05 Thread Alexander Orlov
On Friday, August 5, 2011 1:06:14 PM UTC+2, Jens wrote: > > Yes you have to use chaining or you introduce a new service method that > does all the work in just one server request. If you have code flows like > finding an ID_b for a given ID_a and then immediately use ID_b to fetch the > final ob

Re: Best practice for using values returned in callbacks (RequestFactory)

2011-08-05 Thread Alexander Orlov
On Fri, Aug 5, 2011 at 12:15 PM, Jens wrote: > You can assign your response to an instance variable, you just can not > write this.variable inside onSuccess because that references the Receiver > and not the real class that contains the async call. Just omit "this" and it > should work. Yep, th

Best practice for using values returned in callbacks (RequestFactory)

2011-08-05 Thread Alexander Orlov
In GWT and particularly the RequestFactory framework many callbacks are used to retrieve certain values void callBack(final Integer userId) { final MainRequestFactory.ResourceRequest reqFactory = mainRequestFactory.resourceRequest(); final com.google.web.bindery.requestfactor

Re: GWT is for "apps" — right? But what's about static pages? (GWT's Future Plans...)

2011-08-04 Thread Alexander Orlov
her UIBinder page? > > > > * Can UIBinder page be identifiable like jsp/html page on > > server ??? > > > > -Venuhttp://schoolk12.appspot.com/ > > > > On Aug 4, 6:45 am, Alexander Orlov wrote: > > > > > > > > > > > > > >

Re: GWT is for "apps" — right? But what's about static pages? (GWT's Future Plans...)

2011-08-04 Thread Alexander Orlov
On Thu, Aug 4, 2011 at 3:11 PM, Alex Dobjanschi wrote: > As far as it goes, you're basically running Javascript code, in a > (simple-to-complex) app, inside client code (browser sandbox). I don't how > crawling such an app would be straightforward. > > The "apps parts of an app" shouldn't be crawl

Re: GWT is for "apps" — right? But what's about static pages? (GWT's Future Plans...)

2011-08-04 Thread Alexander Orlov
On Thu, Aug 4, 2011 at 11:27 AM, Jambi wrote: > > I don´t think this is a good idea. The dynamic content, that should be > crawlable, doesn´t exist at compile time. What I mean is that you should be able to annotate static parts of your "app" that might be relevant for crawlers and put default va

Re: GWT is for "apps" — right? But what's about static pages? (GWT's Future Plans...)

2011-08-04 Thread Alexander Orlov
On Thursday, August 4, 2011 5:57:23 AM UTC+2, Nick Hristov wrote: > > If I am understanding you correctly, you want to have the server > generate some html page content and the the embedded gwt module will > A server-side approach that generates static snapshots of every — in a certain way anno

GWT is for "apps" — right? But what's about static pages? (GWT's Future Plans...)

2011-08-03 Thread Alexander Orlov
GWT is a framework for building Ajax apps that act as clients and (optionally) communicate with a kinda RESTful backend via RPC or using RequestFactory (both are JSON based). That's my to the point understanding of GWT. But what's about static pages? To deliver static content, especially for s

Re: Converting raw JSON to a JSONObject / JSONValue

2011-08-03 Thread Alexander Orlov
Thx! GWT has a pretty idiosyncratic style! Btw, were my assumptions how to construct a JSONObject right? -Alex -- 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/goo

Converting raw JSON to a JSONObject / JSONValue

2011-08-03 Thread Alexander Orlov
The JSONObject takes only JavaScriptObject as its constructor parameter. JavaScriptObject can be returned only by a JSNI function which I wrote: public static native JavaScriptObject parseJson(String jsonStr) /*-{ return eval(jsonStr); }-*/; but when I do String json = "{\"user

Re: How to get GWT's Session Key?

2011-08-01 Thread Alexander Orlov
On Wednesday, May 11, 2011 7:42:07 PM UTC+2, Juan Pablo Gardella wrote: > > For what? To get this "session key"...? Also to understand the how this "session key" is integrated into GWT and to understand its functionality. So to sum up: How can I get "AaGq!pC9K[JE$8q}" in "Session key: AaGq!pC

Re: GWT/GPE 2.4.0 RC1 is available

2011-07-29 Thread Alexander Orlov
David, you've mentioned that you would also upload the requestfactory-*.jars to Maven Central. Currently I can find only the gwt-*.jars but no rf-*.jars. I'd like to replace gwt-servlet monster JAR by rf-server+client.jars as I'm not using GWT-RPC but only the RF. Are both, rf-server and rf-cli

Re: Declare an array of panels in UiBinder

2011-07-26 Thread Alexander Orlov
On Tue, Jul 26, 2011 at 1:28 AM, Tomasz Gawel wrote: > > a list or an array? it's not > the right place because these are visiual templates, and a visual > That (variable list) was basically what I wanted to do. I know that UiBinder is a declarative descriptor but I've thought that a "variable co

Re: Declare an array of panels in UiBinder

2011-07-25 Thread Alexander Orlov
On Jul 25, 3:16 pm, Tomasz Gawel wrote: > Yes, you're right. It's a mistake. I copied your method signature and > forgot to remove void after adding FocusPanel as a return type. I've got your example working... kind of, thanks. But I still can't add any FocusPanels to slots although slots is a Li

Re: Declare an array of panels in UiBinder

2011-07-25 Thread Alexander Orlov
On Jul 25, 12:09 pm, Tomasz Gawel wrote: > List slots; > @UiField FlowPanel slotTargetPanel; > > @UiFactory FocusPanel void addSlot() { I suppose this should be @UiFactory FocusPanel addSlot() { >    FocusPanel slot = new FocusPanel(); >    slots.add(slot); Here I get: ERROR: Failed to create a

  1   2   >