Please stop emailing me. No more. I have so many emails from thisĀ -----Original 
Message-----From: google-web-toolkit+nore...@googlegroups.comdate: 01/03/2010 
06:56 PMTo: "Digest Recipients" Subject: Re: Digest for 
google-web-toolkit@googlegroups.com - 25 Messages in 14 TopicsNote: Original 
message sent as attachment

-- 
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.

--- Begin Message ---
=============================================================================
Today's Topic Summary
=============================================================================

Group: google-web-toolkit@googlegroups.com
Url: http://groups.google.com/group/google-web-toolkit/topics

  - Read a file on the server at server startup [3 Updates]
    http://groups.google.com/group/google-web-toolkit/t/a178d7a9619ffbeb
  - GWT Compile [1 Update]
    http://groups.google.com/group/google-web-toolkit/t/e90968b5d7322c8a
  - RPC vs HTTP requests [1 Update]
    http://groups.google.com/group/google-web-toolkit/t/86c3f160b4363cc7
  - Deprecation warning in all RPCs dealing with collections on GWT 2.0 RC2 [1 
Update]
    http://groups.google.com/group/google-web-toolkit/t/cbf566637f03496a
  - SuggestBox and DTO [1 Update]
    http://groups.google.com/group/google-web-toolkit/t/3f8feae1547ab298
  - Borders on Decorator panel [1 Update]
    http://groups.google.com/group/google-web-toolkit/t/21995321405c2253
  - MVP Article... Source Code? [3 Updates]
    http://groups.google.com/group/google-web-toolkit/t/dcab092b8ee3c471
  - findResource(DynaTable/html.gwt.xml) --> Resource not found, returning null 
[2 Updates]
    http://groups.google.com/group/google-web-toolkit/t/bf18d4b6101f3e4f
  - GWT and Eclipse not working [2 Updates]
    http://groups.google.com/group/google-web-toolkit/t/f6e1e1f40cb9cb33
  - GWT maps 2.x version issue [2 Updates]
    http://groups.google.com/group/google-web-toolkit/t/f30526e660f484c1
  - Google Web Toolkit [1 Update]
    http://groups.google.com/group/google-web-toolkit/t/2e8d7be5069effb4
  - gwt 2.0 plugin crashes firefox 3.5 in OS X 10.4 [1 Update]
    http://groups.google.com/group/google-web-toolkit/t/50d912d37c59091e
  - JUnit tests from Eclipse: Refresh problem [1 Update]
    http://groups.google.com/group/google-web-toolkit/t/3c1dd7e567901074
  - packing custom gwt libraries [5 Updates]
    http://groups.google.com/group/google-web-toolkit/t/c1f1e1b0767d42e1


=============================================================================
Topic: Read a file on the server at server startup
Url: http://groups.google.com/group/google-web-toolkit/t/a178d7a9619ffbeb
=============================================================================

---------- 1 of 3 ----------
From: Lothar Kimmeringer <j...@kimmeringer.de>
Date: Jan 03 02:38PM +0100
Url: http://groups.google.com/group/google-web-toolkit/msg/a4786389b3b5194f

ky schrieb:

> But this does not work when deployed because the file paths are
> somehow different. How can I get the correct file path to access
> config.txt in the deployed version?

getClass().getResourceAsStream("/config.txt");
It returns null if the file can't be found. if you place the
config-file in the same package as the class reading it, you
can leave away the slash.


Regards, Lothar


---------- 2 of 3 ----------
From: ky <zane.t...@gmail.com>
Date: Jan 03 01:29PM -0800
Url: http://groups.google.com/group/google-web-toolkit/msg/34171dd9da6c5f6c

Just to reiterate, I would like best to find a way to obtain the base
path for the web application that lives inside the war.

@Lothar:

Thanks for the tip; I am calling getClass().getResourceAsStream
("config.txt") from ServiceImpl.java in the server package. It works
when I put config.txt in the server package, but I was hoping to put
it in the war in the same place as the main .html file, on the same
level where /WEB-INF resides. If I try getClass().getResourceAsStream
("/config.txt") however, I get a null. Any idea what I might be doing
wrong?


@Mariyan:

This is a file that the server needs to load that the client knows
nothing about. I am new to java web application development though, so
I am open to suggestions about best practices. I've read about
properties files in XML that reside on the server but I can't find how
to set them up. I suppose I could manually add a property for the
correct path if I can't programatically determine it.



---------- 3 of 3 ----------
From: ky <zane.t...@gmail.com>
Date: Jan 03 02:16PM -0800
Url: http://groups.google.com/group/google-web-toolkit/msg/e42db321816d1702

The way I'm getting around the issue is by calling

String root = getServletContext().getRealPath("/");

after the server has initialized (i.e. outside ServiceImpl.java's
constructor). Apparently you simply cannot get the ServletContext in
the constructor of ServiceImpl? I suppose that makes sense.




=============================================================================
Topic: GWT Compile
Url: http://groups.google.com/group/google-web-toolkit/t/e90968b5d7322c8a
=============================================================================

---------- 1 of 1 ----------
From: gatty <hemant.gupt...@gmail.com>
Date: Jan 03 02:13PM -0800
Url: http://groups.google.com/group/google-web-toolkit/msg/d284ceb9b4e1a2eb

HI,

When i am trying to GWT Compile in eclipse it is deleting
CSS,JS,images files from workspace.

What can be the problem?



=============================================================================
Topic: RPC vs HTTP requests
Url: http://groups.google.com/group/google-web-toolkit/t/86c3f160b4363cc7
=============================================================================

---------- 1 of 1 ----------
From: Nathan Wells <nwwe...@gmail.com>
Date: Jan 03 01:34PM -0800
Url: http://groups.google.com/group/google-web-toolkit/msg/59cb6c987eae51ac

I don't agree about the separation of concerns factor with GWT-RPC.
GWT has gone to great lengths (to the point of being annoying in my
case) to ensure that a developer knows exactly where the code is that
is being written.

As far as the RPC vs RESTful debate, I think most everyone would agree
that REST is better from an abstract interface perspective. However,
in many cases RPC is faster to develop in, GWT RPC is a faster
transport, and makes life easier than json and overlay types. This is,
of course, IMHO.

Not that I'm saying GWT-RPC is a silver bullet. I'm just saying if the
following are true for you, then GWT-RPC may be good for you:

(1) My GWT-based webapp is (and will always be) the only consumer of
my server resources (i.e. servlets)
(2) A Java server will always be used
(3) In a tradeoff between perfect design and perfect performance, I
tend towards performance.




=============================================================================
Topic: Deprecation warning in all RPCs dealing with collections on GWT 2.0 RC2
Url: http://groups.google.com/group/google-web-toolkit/t/cbf566637f03496a
=============================================================================

---------- 1 of 1 ----------
From: Chris Ramsdale <cramsd...@google.com>
Date: Jan 03 04:32PM -0500
Url: http://groups.google.com/group/google-web-toolkit/msg/361e65df35ec05c9

This is a bug. The List<List<Object>> return type is causing the compiler to
generate serialization code for any class X that extends List<T>, where T is
an interface that has a implementing class that extends class X. The
following code will reproduce the issue:

@Deprecated
public class MyTest extends java.util.ArrayList<MyTestInterface>{}

public class MyTestInterfaceImpl extends MyTest implements MyTestInterface
{}

public class MyTestInterfaceImpl extends MyTest implements MyTestInterface
{}


Could you add a bug to the GWT issue
tracker<http://code.google.com/p/google-web-toolkit/issues/list>
?

- Chris

On Fri, Dec 11, 2009 at 2:39 PM, Luis Fernando Planella Gonzalez <



=============================================================================
Topic: SuggestBox and DTO
Url: http://groups.google.com/group/google-web-toolkit/t/3f8feae1547ab298
=============================================================================

---------- 1 of 1 ----------
From: ale <aleee...@gmail.com>
Date: Jan 03 01:02PM -0800
Url: http://groups.google.com/group/google-web-toolkit/msg/81b2334de8062e70

Hi,
I would like to add object to a suggest box, and when selected I would
like to get the object.
Is it possible?

My problem is that I have a some DTO, that have and id and a
description, but the description is not unique:
so, in the suggest I have some description repeated (and this is ok),
but when I get the selection I would like to know exactly what object
was chose...

Is it possible?

Thanks, bye
Ale



=============================================================================
Topic: Borders on Decorator panel
Url: http://groups.google.com/group/google-web-toolkit/t/21995321405c2253
=============================================================================

---------- 1 of 1 ----------
From: Chris Ramsdale <cramsd...@google.com>
Date: Jan 03 03:12PM -0500
Url: http://groups.google.com/group/google-web-toolkit/msg/d2e021bb44bd928

I would suggest using addStyleName(), as it will allow you to tweak the look
and feel, and still leverage all of the existing DecoratorPanel CSS. The
following code worked for me:

public ContactsView() {
  DecoratorPanel contentTableDecorator = new DecoratorPanel();
  initWidget(contentTableDecorator);
  contentTableDecorator.addStyleName("orangeOutline");
  ...
}


With this CSS:

.orangeOutline {
  border-style: solid;
  border-width:1;
  border-color: #CC6600;
}
.gwt-DecoratorPanel .middleCenter {
  height: 100%;
  width: 100%;
 }





=============================================================================
Topic: MVP Article... Source Code?
Url: http://groups.google.com/group/google-web-toolkit/t/dcab092b8ee3c471
=============================================================================

---------- 1 of 3 ----------
From: Daniel Simons <daniel.simo...@gmail.com>
Date: Jan 03 09:38AM -0600
Url: http://groups.google.com/group/google-web-toolkit/msg/fb0619b5fe9c1d60

In my experience, the fewer components you have for a single view, the
easier it becomes to maintain code.  With that being said, there are some
cases where it makes more sense to combine a large number of UI components
into a single view, but you certainly can have many views and many
presenters on screen at one time.

The way that I allow this is to have a MainPresenter and MainView.  The main
view has several components that remain bound (exist in visible form within
the UI) regardless of the state of the application, and the MainPresenter
initializes all other presenters in my application. It determines what view
is shown with a number onEvent methods.

Daniel S



---------- 2 of 3 ----------
From: Chris Ramsdale <cramsd...@google.com>
Date: Jan 03 02:36PM -0500
Url: http://groups.google.com/group/google-web-toolkit/msg/217b5687c48f77dc

Yaakov,

Having multiple presenters driving a single view would be a bit strange.
Typically want to the presenter to define the display interface that the
view will implement. Having multiple presenters drive a single view means
that either a) the display interface is defined in some parent presenter
class, or b) one of the presenters is responsible for defining the display
interface. Either way, it decouples the presenter->display relationship that
is inherent to the MVP architecture.

For applications with large UI frontends, you could consider breaking the UI
up into smaller presenter/view pairs that are managed by some controller
class. Take for example Gmail; the folder list would be one presenter with
an associated view, the inbox list another, the Google Talk interface
another, and so on. All of these would then be managed by some
MainViewController class.

Keeping widget-based code out of the presenter for ease of testing is
golden. Beyond that it's really a question how much code you want to
maintain within a single presenter and view.



---------- 3 of 3 ----------
From: Flemming Boller <flemming.bol...@gmail.com>
Date: Jan 03 08:48PM +0100
Url: http://groups.google.com/group/google-web-toolkit/msg/a5714377a0db934e

Hi Chris


Thanks for you input around the dividing of presenters and views in bigger
apps like Gmail.

Do you have any brief input on how  runAsync and MVP play together?

/Flemming




=============================================================================
Topic: findResource(DynaTable/html.gwt.xml) --> Resource not found, returning 
null
Url: http://groups.google.com/group/google-web-toolkit/t/bf18d4b6101f3e4f
=============================================================================

---------- 1 of 2 ----------
From: Chris Ramsdale <cramsd...@google.com>
Date: Jan 03 02:03PM -0500
Url: http://groups.google.com/group/google-web-toolkit/msg/21375e8189058023

Do you see the following files under your root DynaTable directory?

./src/com/google/gwt/sample/dynatable/DynaTable.gwt.xml
./war/WEB-INF/classes/com/google/gwt/sample/dynatable/DynaTable.gwt.xml




---------- 2 of 2 ----------
From: Chris Ramsdale <cramsd...@google.com>
Date: Jan 03 02:44PM -0500
Url: http://groups.google.com/group/google-web-toolkit/msg/6085cae47d4a409e

Also, is there a particular reason that you're using
com.google.gwt.dev.GWTShell and not com.google.gwt.dev.DevMode?




=============================================================================
Topic: GWT and Eclipse not working
Url: http://groups.google.com/group/google-web-toolkit/t/f6e1e1f40cb9cb33
=============================================================================

---------- 1 of 2 ----------
From: Qian Qiao <qian.q...@gmail.com>
Date: Jan 04 02:47AM +0800
Url: http://groups.google.com/group/google-web-toolkit/msg/61c78a41f59897fe

> Also my browsers cannot connect to eclipse on port 9997?
> Please help and thank you!
> S

Try fiddling with -Xms -Xmx etc etc?

HTH.

-- Joe

-- 
Two things that are infinite, the universe and my stupidity, and I'm
not sure about the universe.


---------- 2 of 2 ----------
From: Chris Ramsdale <cramsd...@google.com>
Date: Jan 03 02:12PM -0500
Url: http://groups.google.com/group/google-web-toolkit/msg/16364a1a1d84b71d

Couple of diagnostic questions:

1. What version of Windows are you running (Vista, Windows 7, etc...)?
2. I'm assuming 32 bit architecture and not 64 bit. Is this correct?
3. What project are you trying to compile (custom or one of the samples)?
4. What do you see in the Eclipse log file (workspace/.metadata/.log)?

Regarding browsers connecting to port 9997, have you tried changing the
codesvr URL to reference "localhost" and not your assigned IP?

- Chris




=============================================================================
Topic: GWT maps 2.x version issue
Url: http://groups.google.com/group/google-web-toolkit/t/f30526e660f484c1
=============================================================================

---------- 1 of 2 ----------
From: Qian Qiao <qian.q...@gmail.com>
Date: Jan 04 02:44AM +0800
Url: http://groups.google.com/group/google-web-toolkit/msg/65841630c4df7768

> doesn't work properly with overlays in Opera browser.
> Has anybody some workaround for version definition in this case?
> Thanks.

It's probably too late since it sounds like your project is quite far
down the line, if it was at its early stage, I'd recommend using
Google Maps API from the gwt-google-api[1] project?

HTH.

-- Joe

[1] http://code.google.com/p/gwt-google-apis/

-- 
Two things that are infinite, the universe and my stupidity, and I'm
not sure about the universe.


---------- 2 of 2 ----------
From: Eric Ayers <zun...@google.com>
Date: Jan 03 02:11PM -0500
Url: http://groups.google.com/group/google-web-toolkit/msg/7a042cd26d6f33ed

There are some minimum version numbers required for the
gwt-google-apis - see the release notes.


-- 
Eric Z. Ayers
Google Web Toolkit, Atlanta, GA USA



=============================================================================
Topic: Google Web Toolkit
Url: http://groups.google.com/group/google-web-toolkit/t/2e8d7be5069effb4
=============================================================================

---------- 1 of 1 ----------
From: Chris Ramsdale <cramsd...@google.com>
Date: Jan 03 01:43PM -0500
Url: http://groups.google.com/group/google-web-toolkit/msg/7abde8decc2a3f8

Stating the obvious here, but the above URL is spam. Please do not click on
it. This user has been blocked from any further posts.

- Chris




=============================================================================
Topic: gwt 2.0 plugin crashes firefox 3.5 in OS X 10.4
Url: http://groups.google.com/group/google-web-toolkit/t/50d912d37c59091e
=============================================================================

---------- 1 of 1 ----------
From: Par <pardeeps...@gmail.com>
Date: Jan 03 06:53AM -0800
Url: http://groups.google.com/group/google-web-toolkit/msg/776e2c2ab8834101

Yes, this is the same issue.
It is already entered.

Thanks.
Pardeep




=============================================================================
Topic: JUnit tests from Eclipse: Refresh problem
Url: http://groups.google.com/group/google-web-toolkit/t/3c1dd7e567901074
=============================================================================

---------- 1 of 1 ----------
From: Chris Lercher <cl_for_mail...@gmx.net>
Date: Jan 03 06:01AM -0800
Url: http://groups.google.com/group/google-web-toolkit/msg/5a0900640f182973

Hi,

Eclipse seems to use old versions of my test classes. When I add a
method to my test class, and run the test via "Run as -> GWT JUnit
Test" or "Run as -> GWT JUnit Test (production mode)" or "Run as ->
JUnit Test", Eclipse doesn't see the new test method. Same for
removing old test methods. Even after I restart Eclipse. Only if I go
to the command line and run "ant test.dev", Eclipse picks up the
updated version of the Test.

Maybe it has something to do with the fact that I used webAppCreator
(with the -junit option) to create the project, instead of creating it
with the Eclipse wizard?

Does anybody else have the same problem?
Thanks
Chris

(
  Google Plugin for Eclipse 3.5 1.2.0.v200912062003
com.google.gdt.eclipse.suite.e35.feature.feature.group
  Google Web Toolkit SDK 2.0.0  2.0.0.v200912062003
com.google.gwt.eclipse.sdkbundle.e35.feature.2.0.0.feature.group
Mac OS X 10.6, Cocoa 32 bit
)



=============================================================================
Topic: packing custom gwt libraries
Url: http://groups.google.com/group/google-web-toolkit/t/c1f1e1b0767d42e1
=============================================================================

---------- 1 of 5 ----------
From: Qian Qiao <qian.q...@gmail.com>
Date: Jan 03 09:18PM +0800
Url: http://groups.google.com/group/google-web-toolkit/msg/7496cf259992faf6

> Any help will be appreciated
> Rodrigue
> Here are the error messages:
[snip]

Have you got an old version of gwt-user.jar on your server?

HTH

-- Joe


-- 
Two things that are infinite, the universe and my stupidity, and I'm
not sure about the universe.


---------- 2 of 5 ----------
From: Rodrigue Lagoue <rlag...@googlemail.com>
Date: Jan 03 02:25PM +0100
Url: http://groups.google.com/group/google-web-toolkit/msg/1975a6119325fc5f

Thanks for your answer..

No i have the new one... I think if it was the case, the java compilation
wouldn't work, since i use the new classes added with GWT2.0.



---------- 3 of 5 ----------
From: Qian Qiao <qian.q...@gmail.com>
Date: Jan 03 09:34PM +0800
Url: http://groups.google.com/group/google-web-toolkit/msg/1b25f7f53afb1c9f

> Thanks for your answer..
> No i have the new one... I think if it was the case, the java compilation
> wouldn't work, since i use the new classes added with GWT2.0.

The reason I asked whether you have GWT2.0 on your debian server is
that if you look at the error message, all missing classes are those
introduced in GWT 2.0, so my guess is that the GWT compile isn't
picking up the 2.0 gwt-user.jar

Are you using a different classpaths for the GWT compilation and the
Java compilation? You might want to check that.

-- Joe

-- 
Two things that are infinite, the universe and my stupidity, and I'm
not sure about the universe.


---------- 4 of 5 ----------
From: Rodrigue Lagoue <rlag...@googlemail.com>
Date: Jan 03 02:38PM +0100
Url: http://groups.google.com/group/google-web-toolkit/msg/9d38505885ff7384

Hi Quian Qiao,

i just looked at it more precisely and i fount out, that the path to
gwt-user.jar was wrong. I think i was tired last nignt :-)

thanks a lot for your support...

it works now

happy new year

Rodrigue



---------- 5 of 5 ----------
From: Qian Qiao <qian.q...@gmail.com>
Date: Jan 03 09:43PM +0800
Url: http://groups.google.com/group/google-web-toolkit/msg/c6c5e6dd76676b53

> it works now
> happy new year
> Rodrigue

Glad I could help. Happy new year to you too.

-- Joe

-- 
Two things that are infinite, the universe and my stupidity, and I'm
not sure about the universe.




--

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.



--- End Message ---

Reply via email to