Re: MVP - interface that implements setVisible()

2010-01-14 Thread Davis Ford
The nice thing about doing it this way is that you can still unit test it
100% in JUnit.

I used EasyMock to mock out my Display interface and any other classes my
presenter happened to depend on.  This way I could always mock return and
assert that the presenter did the right thing.

I punted on testing that my Display implementation actually did what it said
it would do via the interrace contract, but typically the code was so
minimal that I didn't care.

On Thu, Jan 14, 2010 at 10:31 PM, Dominik Steiner <
dominik.j.stei...@googlemail.com> wrote:

> Hi Davis,
>
> thanks for the fast reply.
>
> That is actually a good idea, I was always looking for getters to implement
> on the Display, never occured to me that simple methods that go the other
> way might be as efficient too.
>
> Thanks again for your help.
>
> Dominik
>
> Hi Dominik, why not have a display interface like this?
>
> interface Display {
>void toggleVisible(boolean toggle);
> }
>
> If you need the presenter to toggle specific widgets on the display create
> an enum:
>
> interface Display {
>
>   enum WidgetType {
>   BUTTON,
>   TEXTBOX
>   };
>
>   void toggleVisible(boolean toggle, WidgetType type);
> }
>
> On Thu, Jan 14, 2010 at 8:45 PM, Dominik Steiner <
> dominik.j.stei...@googlemail.com> wrote:
>
>> Hi there,
>>
>> I'm wondering how you best handle the situation that in your Presenter
>> you need to call setVisible() on some UI Object returned via the
>> Display interface?
>>
>> I could of course just write something like this in the Presenter
>>
>> interface Display{
>>  Widget getOkButton();
>> }
>>
>> but that would made the class not JUnit testable. So I'm wondering why
>> there are interfaces in GWT like HasText in order to set text on a
>> Label or something but no interface in order to pass that to the
>> Presenter for setting the visiblity of an UI element?
>>
>> Am I missing something?
>>
>> Dominik
>>
>> P.S. of course I could just extend the Widget class with my own custom
>> ones and let this implement a custom Interface that defines setVisible
>> () in order to pass that to the Presenter to make it testable, but
>> wondering if others have run into the same problem?
>>
>> --
>> 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.
>>
>>
>>
>>
>
>
> --
> Zeno Consulting, Inc.
> home: http://www.zenoconsulting.biz
> blog: http://zenoconsulting.wikidot.com
> p: 248.894.4922
> f: 313.884.2977
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>


-- 
Zeno Consulting, Inc.
home: http://www.zenoconsulting.biz
blog: http://zenoconsulting.wikidot.com
p: 248.894.4922
f: 313.884.2977
-- 

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: MVP - interface that implements setVisible()

2010-01-14 Thread Dominik Steiner

Hi Davis,

thanks for the fast reply.

That is actually a good idea, I was always looking for getters to  
implement on the Display, never occured to me that simple methods that  
go the other way might be as efficient too.


Thanks again for your help.

Dominik

Hi Dominik, why not have a display interface like this?

interface Display {
   void toggleVisible(boolean toggle);
}

If you need the presenter to toggle specific widgets on the display  
create an enum:


interface Display {

  enum WidgetType {
  BUTTON,
  TEXTBOX
  };

  void toggleVisible(boolean toggle, WidgetType type);
}

On Thu, Jan 14, 2010 at 8:45 PM, Dominik Steiner > wrote:

Hi there,

I'm wondering how you best handle the situation that in your Presenter
you need to call setVisible() on some UI Object returned via the
Display interface?

I could of course just write something like this in the Presenter

interface Display{
 Widget getOkButton();
}

but that would made the class not JUnit testable. So I'm wondering why
there are interfaces in GWT like HasText in order to set text on a
Label or something but no interface in order to pass that to the
Presenter for setting the visiblity of an UI element?

Am I missing something?

Dominik

P.S. of course I could just extend the Widget class with my own custom
ones and let this implement a custom Interface that defines setVisible
() in order to pass that to the Presenter to make it testable, but
wondering if others have run into the same problem?

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







--
Zeno Consulting, Inc.
home: http://www.zenoconsulting.biz
blog: http://zenoconsulting.wikidot.com
p: 248.894.4922
f: 313.884.2977
--
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 
.


-- 

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.

To post to this group, send email to google-web-tool...@googlegroups.com.

To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.



How to handle splitPanel resizing event

2010-01-14 Thread henryhuang
i want to handle splitPanel resizing event, but i don't know how to
add handler or listener on it.

looking forward your suggestion.
-- 
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: MVP - interface that implements setVisible()

2010-01-14 Thread Davis Ford
Hi Dominik, why not have a display interface like this?

interface Display {
   void toggleVisible(boolean toggle);
}

If you need the presenter to toggle specific widgets on the display create
an enum:

interface Display {

  enum WidgetType {
  BUTTON,
  TEXTBOX
  };

  void toggleVisible(boolean toggle, WidgetType type);
}

On Thu, Jan 14, 2010 at 8:45 PM, Dominik Steiner <
dominik.j.stei...@googlemail.com> wrote:

> Hi there,
>
> I'm wondering how you best handle the situation that in your Presenter
> you need to call setVisible() on some UI Object returned via the
> Display interface?
>
> I could of course just write something like this in the Presenter
>
> interface Display{
>  Widget getOkButton();
> }
>
> but that would made the class not JUnit testable. So I'm wondering why
> there are interfaces in GWT like HasText in order to set text on a
> Label or something but no interface in order to pass that to the
> Presenter for setting the visiblity of an UI element?
>
> Am I missing something?
>
> Dominik
>
> P.S. of course I could just extend the Widget class with my own custom
> ones and let this implement a custom Interface that defines setVisible
> () in order to pass that to the Presenter to make it testable, but
> wondering if others have run into the same problem?
>
> --
> 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.
>
>
>
>


-- 
Zeno Consulting, Inc.
home: http://www.zenoconsulting.biz
blog: http://zenoconsulting.wikidot.com
p: 248.894.4922
f: 313.884.2977
-- 

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: SplitLayoutPanel children don't show up ???

2010-01-14 Thread Stine Søndergaard
Hi :)

My guess is that you have not included the necessary CSS? The layout panels
of GWT 2 do not come with a default styling...

I have spent a lot of time being frustrated about this fact! ;D And it was
also the subject of for instance this thread:

http://groups.google.com/group/google-web-toolkit/browse_thread/thread/d5b86b6227730227/6e1e12c3e19be786

Cheers,
Stine
-- 

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.



MVP - interface that implements setVisible()

2010-01-14 Thread Dominik Steiner
Hi there,

I'm wondering how you best handle the situation that in your Presenter
you need to call setVisible() on some UI Object returned via the
Display interface?

I could of course just write something like this in the Presenter

interface Display{
  Widget getOkButton();
}

but that would made the class not JUnit testable. So I'm wondering why
there are interfaces in GWT like HasText in order to set text on a
Label or something but no interface in order to pass that to the
Presenter for setting the visiblity of an UI element?

Am I missing something?

Dominik

P.S. of course I could just extend the Widget class with my own custom
ones and let this implement a custom Interface that defines setVisible
() in order to pass that to the Presenter to make it testable, but
wondering if others have run into the same problem?
-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: Maven users survey

2010-01-14 Thread Davis Ford
Hi Keith, this is fantastic that you are taking up this initiative.

I built a GWT 1.7 app using maven and the codehaus plugin
http://mojo.codehaus.org/gwt-maven-plugin/

There are a couple of different variants of maven gwt plugins, but the
codehaus GWT plugin seems to be the best.

That said, my pain points were more with the plugin documentation.  I was
able to get it to do everything I needed to after wrestling with it for a
bit.  The documentation isn't horrible, it is just lacking a few good
examples.  It does foce you to stray a bit from the maven webapp layout
standard way of doing things, but I found this to not be a problem.

I'm off working on something else non-GWT related, sadly, so I have not
tried with GWT 2.0, but I know people are having success with it.

Some good resources for you might be the codehaus plugin mailing list.

http://mojo.codehaus.org/gwt-maven-plugin/mail-lists.html

I've also got a couple of maven-ized GWT sample projects on my blog -- you
can take a look at the pom.xml configuration of the GWT plugin.

http://zenoconsulting.wikidot.com/blog:17
http://zenoconsulting.wikidot.com/blog:16

So, when I was developing a GWT app, I would almost always launch hosted
mode via 'mvn gwt:run' -- and then do quick changes to the code/layout/css
and refresh to see the changes.

I tried not to use the debugger much, but when I did, I'd have to launch the
app from w/in Eclipse using the GWT eclipse plugin in debug mode.  The only
downside to this is it took a really long time to compile and come up, but
it worked.

Unit testing was a no-brainer once I implemented all our code with MVP -- I
was able to test 90% of all the UI logic this way with with pure JUnit tests
-- not GWT tests...so this worked fine in Maven with CI (e.g. Hudson).

Other standard stuff worked with maven:

e.g.

mvn package --> build war
mvn clean install -> clean, run tests, package, install war
mvn eclipse:eclipse -> create eclipse project that can be imported
mvn jetty:run -> run it in jetty
mvn tomcat:run -> run it in tomcat
mvn cargo:deploy cargo:start -> run it in container of choice configured via
cargo plugin

Hope that helps...

Regards,
Davis

On Wed, Jan 13, 2010 at 11:35 AM, Keith Platfoot wrote:

> Hi folks,
>
> For the next release of the Google Plugin for Eclipse, we're planning on
> making a few tweaks to make life easier for Maven users. That's right: we've
> seen the stars on the issue tracker, and have decided it's time to act. I
> would say, "we feel your pain", but the problem is, we don't. Which is to
> say, nobody on the plugin team actually uses Maven (everybody around here
> uses Ant). However, I've been researching Maven to determine exactly what
> changes we should make to allow it to work more seamlessly with the Google
> Eclipse Plugin. I've read the relevant issues and groups postings, so I
> think I have a rough idea of what needs to happen. However, before we go and
> make any changes, I wanted to ask for the community's advice.  So, here are
> some questions for you.
>
> What is the typical workflow of a GWT developer using Maven?
>
> I've installed Maven and the gwt-maven-plugin 1.2-SNAPSHOT and managed to
> create a GWT 2.0 app with the provided archetype. After some tweaking, I'm
> able to GWT compile, debug with Eclipse (though not via our Web App launch
> configuration), create a WAR, etc. However, I'm more interested in how
> you all are doing things. For example:
>
> How do you...
>
>
>- Create a new project?
>- Perform GWT compiles?
>- Debug with Eclipse?
>- Run your tests?
>- Create a WAR for deployment?
>
> What specific pain points do Maven users run into when using the Google
> plugin?
>
> I know one major obstacle is that our plugin currently treats the war
> directory as both an input (e.g. static resources, WEB-INF/lib,
> WEB-INF/web.xml) and output (WEB-INF/classes, GWT artifacts like nocache.js
> and hosted.html) . Maven convention, however, says that /src/main/webapp
> should be input only, which means that hosted mode (or development mode, in
> GWT 2.0) needs to run from a staging directory (e.g. gwt:run creates a /war
> folder on demand). This mismatch results in the plugin creating spurious
> validation errors and breaks our Web App launch configuration.
>
> Another incompatibility is that Maven projects depend on the GWT Jars in
> the Maven repo, whereas our plugin expects to always find a GWT SDK library
> on the classpath.
>
> Are my descriptions of these pain points accurate?  If so, one possible
> solution would be for the plugin to allow the definition of an input war
> directory (e.g. src/main/webapp) separate from a launch-time staging
> directory, and for us to relax the requirement that all GWT projects must
> have a GWT SDK library.  So tell me: would these changes adequately reduce
> the friction between Maven and the Google plugin?
>
> Also, are there other problems Maven users are running into when using the
> plugin?
>
> Thanks in

Where is the Chrome GWT Extension?

2010-01-14 Thread Joe
I have been unable to locate the GWT Dev Mode extension for Chrome.
Can someone please tell me from whence I can download the thing?

I've installed 2.0 in Eclipse, and when I do "Run As" it gives me a
URL to post into my browser, but after pasting that into Chrome, it
does not tell me to load an extension, yet does not stop at any
breakpoints I've set in Eclipse.

When I tried the same thing in Firefox, it said I had to download a
plugin, but when I clicked on "Install", it said it couldn't find it.

Thanks for any help,
Joe
-- 
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.




DecoratorPanel subclass and Widgets

2010-01-14 Thread jonathan.hollo...@gmail.com
Hi all,

I'm using GWT 2.0.  I've extended DecoratorPanel in order to add a
title bar which contains a title and a number of pushbuttons/images.
I've run into an issue here because when I add an image to the header
bar as follows:

image.addClickHandler(handler);
image.sinkEvents(Event.KEYEVENTS);
image.setStyleName(style);
DOM.appendChild(titleBarElement, image.getElement());
adopt(image);

the image appears fine on the title bar but the associated click
handler does not work at all.  Can anybody provide any further info
here?

I initially tried to add a PushButton (instead of an Image), but that
was worse : ) because the image was not rendered correctly on the
title bar, in fact it was completely missing, despite adding the image
to the PushButton via the constructor.

PushButton pushButton = new PushButton(image);
pushButton.addClickHandler(handler);
pushButton.setStyleName(style);
DOM.appendChild(titleBarElement, pushButton.getElement());
adopt(pushButton);

Many thanks,
Jon.


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




Mouse events in FocusPanel

2010-01-14 Thread Yossi
I think that this is relevant for any widget that has mouse events and
also can contain other widgets.

I use FocusPanel and inside the focus panel I have a HorizontalPanel
with a few buttons.
I created a mouseOver and mouseOut handlers that whenever the mouse
gets into the panel, the background changes and also a new button
appear.
If the mouse go out of the panel, the background changes back and the
button disappear.

The problem is this:
Whenever I move the mouse over one of the buttons, an event of
"mouseOut" is fired and the background changes and the new button
disappear - This happens for a flash of a second and the mouseOver
event is fired again.

All of the time the mouse stays on the focusPanel

My question is, why is the mouseOut event is fired and how can I
implement the require behavior?

Thank you very much
Yossi
-- 
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.




RPC error with 1.5 client and 1.7 server (or vice versa)

2010-01-14 Thread Allen Firstenberg
We encountered an odd problem that we are trying to understand and prevent.
 We recently updated our server, and in the process had recompiled the GWT
components to use 1.7 (previously they were using 1.5).

After the upgrade, we starting noticing errors on the server of the form:
java.lang.RuntimeException:
com.google.gwt.user.client.rpc.SerializationException: Type
'com.example.Foo' was not assignable to
'com.google.gwt.user.client.rpc.IsSerializable' and did not have a custom
field serializer.  For security purposes, this type will not be serialized.

While it is true that Foo does not implement IsSerializable, it does
implement Serialized.  Furthermore, everyone who had reloaded the page and
gotten the 1.7 version of the client had no problems - but people who were
still running with the 1.5 client were causing this error.

Although we're currently trying things out, I wanted to ask the list if
anyone else has experience with this sort of thing?  Is there anything we
can do to prevent it or better handle it in the future? If we downgrade to
1.5, will people who still have the 1.7 client loaded have problems?

Any thoughts and pointers appreciated.
-- 

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.

To post to this group, send email to google-web-tool...@googlegroups.com.

To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Use smartgwt or not

2010-01-14 Thread ckendrick
@yozons
> Hmm, but if you want to use the server side code, the primary reason for
> buying a license I'd guess because you have to be pretty crazy to be
> concerned about LGPL for a widget library since that's a good thing, then
> you'd likely include that code in your code base, so then you couldn't also
> offer your code as OSS as it would now include non-LGPL code.  That was my
> point.

Once again, incorrect.  If you are using just the functionality of our
LGPL and you purchase a license from Isomorphic, you can offer your
customers either LGPL licensing or commercial licensing for SmartGWT.

The (several) companies choosing this option are not crazy.  They are
selling into systems that move literally tens of billions of dollars a
year.  The people running these systems are more than happy to cover a
~$700 per developer license fee to eliminate even the faintest
possibility of risk with respect to software licensing.

It would frankly be better if more developers realized the monetary
context in which they work and produce software.  We see so many
examples of developers spending months of extra time to "save the
company money", they seem to forget they themselves are drawing a
paycheck which dwarfs the "savings" :)  Let alone the value of on-time
delivery..

The vast differences between different projects is also why "use
SmartGWT or not" is not a yes or no question - any person who answers
this question without spelling out what they are trying to build is
providing zero data.  In certain circumstances, Isomorphic will
happily tell prospects that SmartGWT is not the right solution for
them, but there are countless companies for which SmartGWT is the best
solution, and many for whom it is the *only* solution that can deliver
what they want in the relevant timeframe.

You have to compare your requirements and your delivery expectations
to the capabilities of the software.  There are no shortcuts to doing
at least the first level of such analysis.
-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




How to find out the Attributes for an UI Element

2010-01-14 Thread Ewald Pankratz
How can I find out which attribute are available for an UI-Element.
e.g. I want to find out what else I can set for a FlexTable. I work
with eclipse.


  

  


Thanks


-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: GWT RPC with Command Pattern Sample

2010-01-14 Thread ctasada
If you check this article you will find the application sample used by
Ryan:
 http://code.google.com/webtoolkit/doc/latest/tutorial/mvp-architecture.html

hope it helps

On Jan 13, 3:43 pm, Patrick Gumball  wrote:
> Hallo everyone, I'm coding a GWT 2.0 app with Gilead 1.3 + Hibernate
> and after watching Ray Ryan best practice video I decided to try to
> implement all my RPCs with the Command Pattern. I don't want to link
> to gwt-dispatch or other libraries that uses GIN\GUICE but I couldn't
> get it working without a working sample.
> Here [1] you can see a thread on this topic but the example mentioned
> by martinhansen (GWTPattern.zip) has been deleted by rapidshare...
>
> I'm wondering if any of you have a working basic sample that shows the
> interaction between Action\Response\RPC
>
> Thank you very much and Best regards.
>
> Patrick.
>
> [1]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 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: Charset Problem

2010-01-14 Thread nacho


On Jan 14, 9:34 am, Lothar Kimmeringer  wrote:
> nachoschrieb:
>
> > I tried but, GWT renders the link like this
>
> > laquo; Back to Inbox
>
> Try setting the text with setHTML instead of setting it in
> the constructor.
>
> What charset is specified in your development-environment when
> saving the java-source? AFAIR is not part of latin1 or
> cp1252 (Windows Latin1). So if you don't save the source with
> UTF8 or similar, you already end up with a different character
> there and the problem is not GWT.

This was the trouble Thanks man! It works great now.

:D

>
> Regards, Lothar
-- 
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: Different solution for deprecated event.getTarget()?

2010-01-14 Thread Youngster
Thanks!! That was all what I needed..



On Jan 14, 12:18 am, Thomas Broyer  wrote:
> On 13 jan, 21:42, Youngster  wrote:
>
> > I can't find out how to replace the deprecated event.getTarget().
> > I have the following code:
>
> > @Override
> >         public void onBrowserEvent(Event event) {
> >                 Element target = event.getTarget();
> >                 if (DOM.eventGetType(event) == Event.ONCLICK) {
> >                         for (Widget widget : widgets) {
> >                                 if (widget.getElement() == target) {
> >                                     
>
> > Now event.getTarget says: Deprecated. use NativeEvent.getEventTarget()
> > instead.
>
> Element target = event.getEventTarget().cast();
>
> (if you shift+click or ctrl+click in Eclipse, you'll see that it's
> exactly what Event.getTarget() 
> does:http://code.google.com/p/google-web-toolkit/source/browse/releases/2
> )
>
> > Can anyone tell me how test on which widget was clicked, using
> > NativeEvent.getEventTarget() ??
>
> Your code above will fail if any widget contains a child element (in
> case this child element is clicked, widget.getElement() will be false
> for all widgets).
> Try using Node.isOrHasChild() instead of comparison for equality
> (though there might be another, better/faster, algorithm)
>
> > And another question: why should I use onBrowserEvent for a Composite?
> > Is it not better/easier to implement HasClickHandlers? Which one
> > should be used when?
>
> ClickHandler (assuming you meant ClickHandler rather than
> HasClickHandlers) will add a class (unless the composite implements it
> directly, which isn't a good idea in most, if not all, cases).
> onBrowserEvent is lighter-weight, but also a bit "lower level". None
> is "better" than the other, so I'd suggest you to use the one you find
> "easier" (you're the most comfortable with)
-- 
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: Eclipse plugin for GWT 1.7

2010-01-14 Thread Keith Platfoot
Hi Sanjay,

Actually, the Eclipse plugin and GWT are on separate release cycles and do
not have the same version number.  So, it is possible to use the latest
Eclipse plugin (which is version 1.2) with any of the recent versions of GWT
(2.0, 1.7, 1.6).  When you install from the update site, just be sure to
uncheck the optional GWT 2.0 component if you don't want to use it.

Hope this helps.  Let me know if I've misunderstood something.

Keith

On Thu, Jan 14, 2010 at 12:41 PM, Sanjay  wrote:

> Hi Keith,
>
> I am actually looking for eclipse plugin of 1.7 for some other reason.
> With GWT 2.0 I see some issues while accessing through wireless
> network or for that matter VPN from my home. It's extremely slow,
> hence more then functionality I want to revert to make my development
> faster. I always use browser from different PC (Win) and my
> development in on Linux.
>
> Thanks,
> Sanjay
>
> On Jan 13, 8:55 am, Keith Platfoot  wrote:
> > Hi Sanjay,
> >
> > The latest version of the plugin (1.2) is still backwards-compatible with
> > GWT 1.7.1.  You can find the update site URL on the plugin's Quick Start
> > page:
> >
> > http://code.google.com/eclipse/docs/getting_started.html
> >
> > KeithOn Wed, Jan 13, 2010 at 2:15 AM, Sanjay 
> wrote:
> > > Is there a location where I can get the eclipse plugin for GWT 1.7. I
> > > just happened to delete it from eclipse in the process of upgrading to
> > > 2.0.
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Google Web Toolkit" group.
> > > To post to this group, send email to
> google-web-tool...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-web-toolkit+unsubscr...@googlegroups.com
> 
> >
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>
>
-- 

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.

To post to this group, send email to google-web-tool...@googlegroups.com.

To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT Plugin for Eclipse does not register gwt-module.dtd

2010-01-14 Thread Jason Parekh
It lives at gwt-2.0.0/gwt-module.dtd.

jason

On Thu, Jan 14, 2010 at 1:35 PM, Cheshiremoe  wrote:

> Where is that file located in the GWT SDK?
>
> On Jan 14, 1:05 pm, Eric  wrote:
> > I just noticed that the GWT Plugin for Eclipse does not register gwt-
> > module.dtd with Eclipse's XML Catalog. Therefore, no one gets support
> > for editing *.gwt.xml files, and there are reasons to do that by hand.
> > Suppose one wants to use ?
> >
> > Respectfully,
> > Eric Jablow
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>
>
-- 

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.

To post to this group, send email to google-web-tool...@googlegroups.com.

To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT Plugin for Eclipse does not register gwt-module.dtd

2010-01-14 Thread Jason Parekh
Hey Eric,

That's a good suggestion, I've opened an issue at
http://code.google.com/p/google-web-toolkit/issues/detail?id=4494 .

Thanks,
jason

On Thu, Jan 14, 2010 at 1:05 PM, Eric  wrote:

> I just noticed that the GWT Plugin for Eclipse does not register gwt-
> module.dtd with Eclipse's XML Catalog. Therefore, no one gets support
> for editing *.gwt.xml files, and there are reasons to do that by hand.
> Suppose one wants to use ?
>
> Respectfully,
> Eric Jablow
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>
>
-- 

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.

To post to this group, send email to google-web-tool...@googlegroups.com.

To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.



Use of Widget.delegateEvent Method

2010-01-14 Thread Craig
Hi,

We are upgrading our code from GWT 1.4 to 1.7.1, and I have hit a
stumbling block. We have created a custom widget based on the
Composite class and have a RichTextArea embedded within the custom
widget class. When a user of the custom widget subscribes to Blur
(used to be Focus) events for the custom class (ultimately fired by
the RichTextArea widget), we need the handlers to think that the
source of the event is the new custom widget (NOT the RichTextArea
widget, which they know nothing about). This was easily done using the
DelegatingFocusListenerCollection class, but the new API reference
says this is deprecated and we need to use the new
Widget.delegateEvent method.

I cannot see how this can be done using this method, especially since
the documentation for the method provides no useful information. I
tried searching for examples on the web, but could find none. I am
guessing that I need to somehow call delegateEvent on the RichTextArea
widget and pass a reference to our new custom Composite widget,
correct? If so, this is a protected method and can therefore only be
called if I extend the RichTextArea widget and make the call from the
newly extended class. If so, it is not obvious when this method should
be called (in the constructor?). It seems like it should be called
when an event is fired.

An example should clear it up.

Any help would be appreciated.

Thanks,

- Craig
-- 
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: docklayoutpanel in a dialogbox in ie8

2010-01-14 Thread will vuong
anyone?  is this a bug that i should file an issue for?

On Jan 12, 6:55 pm, will vuong  wrote:
> i did a little more poking around with ie.  apparently this works as
> expected in ie8:
>
>                 DockLayoutPanel root = new DockLayoutPanel(Unit.EM);
>                 root.addNorth(new HTML("north"), 2);
>                 root.addSouth(new HTML("south"), 2);
>                 root.add(new HTML("center"));
>                 root.setSize("700px", "300px");
>
>                 dialog = new DialogBox();
>                 dialog.add(root);
>                 dialog.setModal(true);
>                 dialog.setAnimationEnabled(true);
>                 dialog.setText("DialogBox with DockLayoutPanel");
>                 dialog.setGlassEnabled(true);
>                 dialog.setAutoHideEnabled(true);
>                 dialog.show();
>                 dialog.center();
>
> but if i comment out dialog.show() and dialog.center() at the end and
> call those methods later on in the program (ie, i want to construct
> the dialogbox but keep it hidden until the user clicks a button later
> for instance), then the dialog box is rendered without the north/south
> regions in ie8.
>
> so oddly enough, if i construct the dialogbox and show it immediately,
> it works fine in ie8.  but if i don't call show() immediately, then it
> doesn't work in ie8.  it works correctly in firefox though!
>
> anybody with any ideas?  am i missing something trivial?
-- 
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.




plugin for firefox

2010-01-14 Thread Ewald Pankratz
I work with ubuntu 9.10 64 bit and use firefox 3.57. I work with the
lastest release of GWT and GA. I installed the plugin for my browser
some weeks before and everything looked fine. Suddenly I got error
messages on firefox. I can't properly remember. It was something with
the connection. I uninstalled the plugin in firefox and tried to
install it again. But now I am not longer able to install the plugin.
It tells me "no suitable plugin found".
Any idea what to do. Why is there no plugin for chrome. I use chrome
version 4.0.249.43 on my system.
Thanks a lot for any response.
-- 
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: Eclipse plugin for GWT 1.7

2010-01-14 Thread Sanjay
Hi Keith,

I am actually looking for eclipse plugin of 1.7 for some other reason.
With GWT 2.0 I see some issues while accessing through wireless
network or for that matter VPN from my home. It's extremely slow,
hence more then functionality I want to revert to make my development
faster. I always use browser from different PC (Win) and my
development in on Linux.

Thanks,
Sanjay

On Jan 13, 8:55 am, Keith Platfoot  wrote:
> Hi Sanjay,
>
> The latest version of the plugin (1.2) is still backwards-compatible with
> GWT 1.7.1.  You can find the update site URL on the plugin's Quick Start
> page:
>
> http://code.google.com/eclipse/docs/getting_started.html
>
> KeithOn Wed, Jan 13, 2010 at 2:15 AM, Sanjay  wrote:
> > Is there a location where I can get the eclipse plugin for GWT 1.7. I
> > just happened to delete it from eclipse in the process of upgrading to
> > 2.0.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
-- 
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.




IncompatibleRemoteServiceException with -noserver argument in gwt 2.0

2010-01-14 Thread denis56
His,

I have been struggling with
com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException
(which finds several entries in web)
for a while and was able to find a clumsy workaround. Could anyone
please suggest a solution  in the following case as I believe it may
be either my configuration error or gwt bug.

Here is a sample project structure to refer to:
- java
- modules
| -- gwtclient

There is an ant task that compiles gwt code and puts it generated code
under modules/gwtclient, this folder is than zipped as war file and
deployed to jboss. It all runs then smoothly in a browser.

However should I start DevMode with "-noserver" option and the "-war"
option pointing at NOT PACKAGED directory modules/gwtclient in the
project structure, the following exception
"com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException:
Type 'XYZ' was not assignable to
'com.google.gwt.user.client.rpc.IsSerializable' and did not have a
custom field serializer. For security purposes, this type will not be
deserialized."
will be thrown.
I noticed that on every start DevMode creates new .gwt.rpc file under
modules/gwtclient (and not to deployed war) and that the exception
disappears if the modules/gwtclient is packaged and redeployed as
DevMode runs.

>From 
>http://groups.google.com/group/google-web-toolkit/browse_thread/thread/d026ef687c504eef#
I understand that the server (jboss' tomcat?) cannot find
suitable .gwt.rpc file and falls back to LegacySerializationPolicy
which demands IsSerializable interface.

Shouldn't DevMode running with -noserver argument be able create
new .gwt.prc files direct in the war file deployed to jboss or not
create it at all?
Is this a bug or my DevMode configuration mistake?

Thanks
-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: Loading images from local filesystem.

2010-01-14 Thread Manuel Carrasco Moñino
Take a look into Gwtupload , it has
examples and server code which can help you.

Cheers
Manolo

On Wed, Jan 13, 2010 at 2:53 PM, Alex  wrote:

> The JavaDoc for the FileUpload GWT widget contains an example of the
> client side of the interaction.You'll get back the html/text returned
> by whatever object on the server processes the request. I imagine that
> this will be the name that should be used by the client to request the
> image in the Image object. So the flow would be, form is submitted,
> file data received by server and stored in some location, server
> returns the url under which the image is available, client receives
> FormSubmitCompleteEvent and uses text it contains to set the url of
> the Image object, Image object makes request to server for image.
>
> On Jan 13, 6:06 am, Abdullah Shaikh 
> wrote:
> > To upload image to your server you need to use FormPanel and set some
> > properties of FormPanel.
> >
> > FormPanel form = new FormPanel();
> > form.setAction("PATH OF YOUR SERVLET");  - this servlet
> will
> > get the image data
> > form.setEncoding(FormPanel.ENCODING_MULTIPART);  - to send binary data
> > form.setMethod(FormPanel.METHOD_POST);
> >
> > form.setWidget("your widget which contains FileUpload control");
> >
> > - Abdullah
> >
> >
> >
> > On Wed, Jan 13, 2010 at 5:14 PM, Juan M.M.M. 
> wrote:
> > > Yes I understand what u say. I will try to, I don't know how but I
> > > will try it.
> >
> > > P.D.: I did it in a web application with C#.
> >
> > > Thanks!!!
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Google Web Toolkit" group.
> > > To post to this group, send email to
> google-web-tool...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-web-toolkit+unsubscr...@googlegroups.com cr...@googlegroups.com>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>
>
-- 

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.

To post to this group, send email to google-web-tool...@googlegroups.com.

To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.



Re: submitting a form using RPC

2010-01-14 Thread loucat

> As always, look for Ray Ryan's presentation at Google I/O 2009.

Thank you too,
now I solved the problem of passing a string by RPC but I don't know
how to pass more than one thing (lots of fields of the form).
I'm downloading that presentation and maybe I'll find some help there.

lou
-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: GWT 2.0 runAsync code works fine in development mode but fails in normal mode

2010-01-14 Thread mably
Oops, sorry...  It's asynchronous, so my list object is most probably
always null when I read it.

What is strange is why it's not null in development mode

Is runAsync running synchronously in dev mode ?

On 14 jan, 13:29, mably  wrote:
> Hi everybody,
>
> I have some GWT 2.0 runAsync code that works perfectly fine in dev
> mode but fails in normal mode.
>
> Is it a GWT bug or am I doing something wrong ?
>
> Is there some way to identify where the probleme comes from exactly ?
>
> The only information I have is a Chrome Developer Tools javascript
> error that says : "Uncaught TypeError: Cannot call method 'Lc' of
> null".  And nothing in Eclipse while running in dev mode.
>
> Here is my java code using runAsync :
>
> public class GwtListHelper {
>
>         private Map lists = new HashMap();
>
>         public GwtList getList(String type) {
>                 GwtList list = lists.get(type);
>                 if (list == null) {
>                         ListWrapper lw = new ListWrapper();
>                         getListAsync(type, lw);
>                         list = lw.getList();
>                         lists.put(type, list);
>                 }
>                 return list;
>         }
>
>         private void getListAsync(final String type, final ListWrapper lw) {
>                 if ("user".equals(type)) {
>                         GWT.runAsync(new RunAsyncCallback() {
>                                 public void onSuccess() {
>                                         lw.setList(new UserList());
>                                 }
>                                 public void onFailure(Throwable reason) {
>                                         Window.alert(type + " list not loaded 
> !");
>                                 }
>                         });
>                 }
>         }
>
>         private class ListWrapper {
>                 GwtList list;
>                 public void setList(GwtList list) {
>                         this.list = list;
>                 }
>                 public GwtList getList() {
>                         return this.list;
>                 }
>         }
>
>
>
> }
-- 
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: Deploying GWT 2.0 client app ?

2010-01-14 Thread Chris Lercher
Hi,

what happens if you start the development server as usual (Run As->Web
Application), and then instead of 
http://localhost:/Login.html?gwt.codesvr=192.168.1.22:9997
you go to http://localhost:/Login.html in your browser?

- If this doesn't work, it means that the compilation step didn't work
for some reason. (What steps are you taking in order to compile your
app? http://code.google.com/webtoolkit/doc/latest/tutorial/compile.html
)
- If it does work from localhost, but not from your ftp server, it
probably means that the directory layout on your ftp server isn't
correct.

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




Wiki Pages Overgrown

2010-01-14 Thread jie...@gmail.com
Hello,

The wiki pages are a bit overgrown, which can make it harder for new
people to find the information they need. Here is a first pass at wiki
pages I thought might be able to be marked as 'deprecated', and thus
will not be listed unless specifically requested to do so:

http://code.google.com/p/google-web-toolkit/wiki/CompilationUnit_1_5
http://code.google.com/p/google-web-toolkit/wiki/DesignOOPHM
http://code.google.com/p/google-web-toolkit/wiki/DevPlan_1_4
http://code.google.com/p/google-web-toolkit/wiki/DevPlan_1_5
http://code.google.com/p/google-web-toolkit/wiki/EngMeeting_2007_01_29
http://code.google.com/p/google-web-toolkit/wiki/EngMeeting_2007_02_12
http://code.google.com/p/google-web-toolkit/wiki/EngMeeting_2007_04_25
http://code.google.com/p/google-web-toolkit/wiki/LinkerDesign
http://code.google.com/p/google-web-toolkit/wiki/OophmForMacBasedGwtContributors
http://code.google.com/p/google-web-toolkit/wiki/TroubleshootingOOPHM
http://code.google.com/p/google-web-toolkit/wiki/UsingOOPHM
http://code.google.com/p/google-web-toolkit/wiki/WAR_Design_1_6

-Jesse
-- 
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: Announcing GWT 2.0 and much, much more...

2010-01-14 Thread Rouche
I am unable to install.
Is there a way to download an Archived update site?

I click all the options, i also enable "Contact all update sites"

I end up getting this error:
Unable to read repository at
http://dl.google.com/eclipse/plugin/3.5/plugins/com.google.appengine.eclipse.sdkbundle.1.3.0_1.3.0.v200912141120.jar.

java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:258)
at java.io.BufferedInputStream.read(BufferedInputStream.java:317)
at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:687)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:632)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream
(HttpURLConnection.java:1072)
at
org.eclipse.ecf.provider.filetransfer.retrieve.UrlConnectionRetrieveFileTransfer.getDecompressedStream
(UrlConnectionRetrieveFileTransfer.java:468)
at
org.eclipse.ecf.provider.filetransfer.retrieve.UrlConnectionRetrieveFileTransfer.openStreams
(UrlConnectionRetrieveFileTransfer.java:288)
at
org.eclipse.ecf.provider.filetransfer.retrieve.AbstractRetrieveFileTransfer.sendRetrieveRequest
(AbstractRetrieveFileTransfer.java:808)
at
org.eclipse.ecf.provider.filetransfer.retrieve.AbstractRetrieveFileTransfer.sendRetrieveRequest
(AbstractRetrieveFileTransfer.java:506)
at
org.eclipse.ecf.provider.filetransfer.retrieve.MultiProtocolRetrieveAdapter.sendRetrieveRequest
(MultiProtocolRetrieveAdapter.java:98)
at
org.eclipse.equinox.internal.p2.repository.FileReader.sendRetrieveRequest
(FileReader.java:317)
at org.eclipse.equinox.internal.p2.repository.FileReader.readInto
(FileReader.java:263)
at
org.eclipse.equinox.internal.p2.repository.RepositoryTransport.download
(RepositoryTransport.java:71)
at
org.eclipse.equinox.internal.p2.repository.RepositoryTransport.download
(RepositoryTransport.java:127)
at
org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.downloadArtifact
(SimpleArtifactRepository.java:468)
at
org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.downloadArtifact
(SimpleArtifactRepository.java:451)
at
org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getArtifact
(SimpleArtifactRepository.java:518)
at
org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.getArtifact
(MirrorRequest.java:200)
at
org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.transferSingle
(MirrorRequest.java:175)
at
org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.transfer
(MirrorRequest.java:159)
at
org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.perform
(MirrorRequest.java:95)
at
org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getArtifact
(SimpleArtifactRepository.java:507)
at
org.eclipse.equinox.internal.p2.artifact.repository.simple.DownloadJob.run
(DownloadJob.java:64)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)


On Dec 8 2009, 10:13 pm, Miguel Méndez  wrote:
> Hi Folks!
>
> We have some very exciting announcements today.  Please check out the
> following blog post that covers the GWT 2.0 SDK, Google Plugin for Eclipse,
> and -- brand new in GWT 2.0 -- a performance analysis tool called Speed
> Tracer.  I think that you will find it pretty interesting...
>
> http://googlewebtoolkit.blogspot.com/2009/12/introducing-google-web-t...
>
> --
> Miguel on behalf of the GWT team
-- 
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.




Key Value Observation ?

2010-01-14 Thread jbar
Hi all,

There are these 2 frameworks out there in the same "cloud application"
space as GWT: Sproutcore and Cappuccino.

Cappuccino is Cocoa for the web, Sproutcore is Cocoa-like and one very
central idea in both is Key Value Observation where the framework
itself provides the glue to change all dependencies of an object when
it changes, and you only have to declare those dependencies.

If that was too poorly expressed please see this presentation:
http://www.infoq.com/presentations/subelsky-sproutcore-intro

Since the pattern reduces the amount of code you type it reduces the
number of bugs. Maybe it's too much to ask but I would like to have
that *and* all the benefits of Eclipse/compiler that come with GWT.

Is there support for this in GWT, or a library already developed?
Or maybe there is support in some of the component libraries for GWT
out there?

Thanks
jbar


-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




GWT 2.0 runAsync code works fine in development mode but fails in normal mode

2010-01-14 Thread mably
Hi everybody,

I have some GWT 2.0 runAsync code that works perfectly fine in dev
mode but fails in normal mode.

Is it a GWT bug or am I doing something wrong ?

Is there some way to identify where the probleme comes from exactly ?

The only information I have is a Chrome Developer Tools javascript
error that says : "Uncaught TypeError: Cannot call method 'Lc' of
null".  And nothing in Eclipse while running in dev mode.

Here is my java code using runAsync :

public class GwtListHelper {

private Map lists = new HashMap();

public GwtList getList(String type) {
GwtList list = lists.get(type);
if (list == null) {
ListWrapper lw = new ListWrapper();
getListAsync(type, lw);
list = lw.getList();
lists.put(type, list);
}
return list;
}

private void getListAsync(final String type, final ListWrapper lw) {
if ("user".equals(type)) {
GWT.runAsync(new RunAsyncCallback() {
public void onSuccess() {
lw.setList(new UserList());
}
public void onFailure(Throwable reason) {
Window.alert(type + " list not loaded 
!");
}
});
}
}

private class ListWrapper {
GwtList list;
public void setList(GwtList list) {
this.list = list;
}
public GwtList getList() {
return this.list;
}
}
}
-- 
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.




Determine if iFrame is visible in window

2010-01-14 Thread AndyM
Hi. I did ask this question this morning but it doesn't look like it
went through. Anyway...

We have a website where we provide content and we have agreed to
provide this content to a publisher (who has numerous websites) who
will display our content in an iFrame (please note, this is cross-
domain).

We currently use GWT to collect various stats on our site. What we
want to be able to do is determine whether our content is visible
(appearing on the screen) on these various sites, and subsequently, if
the iFrame is not initially on screen then whether the visitor has
scrolled and is then able to view the content of the iFrame.

We do not want to set any values, just read to determine the iFrame's
location in the window.

Does anybody know how we can do this (or point us in the right
direction) using GWT?

Many thanks.
-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Loading my GWT app with parameters

2010-01-14 Thread ERSA
Hi,

I am a newbie in GWT and in Javascript.
I have to finish the development of an already-begun GWT User
Interface for an already-existing J2EE application.

I must load my GWT User Interface with parameters from a previous
step.
During the development, I use a mock for this previous step.

I have a JSP page containing a form with the mock data.
When the form is submitted, form data is POST-transmitted to another
JSP page called home.jsp.

In home.jsp, I have this tag :


which I understand to be the tag launching my GWT UI.

I've found how I could retrieve these parameters for example in the
onModuleLoad function of my GWT application (by using
Window.Location.getParameter method) but I don't know how to send them
from home.jsp (I hope I am understandable).

I need your help :-(
-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Validate iframe is visible on screen

2010-01-14 Thread AndyM
Hi. We have an arrangement where a publisher of various sites displays
our content in an iFrame. What we are trying to do using GWT is to
validate whether the iframe (and our content) is actually visible in
the window (screen) or whether somebody scrolls and the iframe comes
into view.

This is complicated by the fact that we have no control over the
publisher's website and therefore cannot set up a trusting
relationship between our sites, and therefore the cross-domain
security policy comes into play.

We don't want to set any values of the parent window, simply read and
validate if the iFrame is visible on the screen and not hidden.

Can anybody assist?

Cheers.
-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




GWT, mod_ssl & client authentication

2010-01-14 Thread Tory
Hi all,
I have a question regarding the use of GWT-RPC using client-cert
authentication over Apache with mod_ssl  and mod_jk.  Our application
generally works fine, but in test environments, we frequently have
multiple users logging in to the application with the same
certificate.  Sometimes, when one user logs in, the user that already
has the app up on another machine gets a generic InvocationException
on any RPC requests they try to make.  The problem goes away as soon
as they refresh the browser.  This appears to me to be a mod_ssl issue
rather than a GWT issue, as I would think the InvocationException
means GWT isn't even able to make the request, but is likely getting
hung up at the SSL layer, especially given that a browser refresh
fixes it (therefore renegotiating the SSL session).

Has anybody seen this before?  Is there a clever workaround I can make
on the GWT side?  Anybody know of some Apache magic to work around
it?

By the way, the testers are using MS IE 7.
-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: GWT 2.0 with C# back-end

2010-01-14 Thread ChorltonTheDragon
On Dec 16 2009, 6:49 pm, joe  wrote:
> yeah it looks like the link was butchered when I send the post.
>
> http://www.gwtapps.com/doc/html/com.google.gwt.http.client.html
>
> I have tried what you are using. However, after looking into the
> problem more I see that Same Origin Policy seems to be my issue. It
> looks like without using JSONP I can not call my self hosted C#WCF
> application. This is due to the port miss match (Jetty server runs on
>  and my self hostedWCfapp runs on 80) which violates S.O.P.
>
> According to Google's docs I can not do this without some 'hack' on
> the GWT 
> side.http://code.google.com/webtoolkit/doc/1.6/FAQ_Server.html#How_can_I_d...
>
> I have looked into using JSONP withWCFbut I have been unable to
> locate a way to send a pure JSONP object to GWT. The only thing I have
> been able to do it send a string that holds my JSONP string. so there
> are leading and trailing ". I would assume that GWT won't like this.
>
> So right now I have no other option but to write a GWT back-end proxy
> so that GWT front end can call my C# app to request data, unless
> anyone has any ideas.
>
> Thank you
>
> On Dec 16, 3:25 am, rjcarr  wrote:
>
> > The link you posted is dead, and I didn't completely understand what
> > you were asking.  However, I make some non-GWTrequests in my project
> > so maybe this will help you out.
>
> > RequestBuilder reqbuilder = new RequestBuilder(RequestBuilder.GET,
> > URL);
>
> > reqbuilder.sendRequest(
> >         null, // OK to use null for GET type
> >         new RequestCallback() {
> >                 public void onResponseReceived(Request request, Response 
> > response) {
> >                         if(response.getStatusCode() == 200) {
> >                                 // SUCCESS
> >                                 log(response.getText());
>
> >                         } else {
> >                                 // ERROR
> >                                 log(response.getStatusCode());
> >                                 log(response.getStatusText());
> >                         }
> >                 }
>
> >                 public void onError(Request request, Throwable t) {
> >                         // ERROR
> >                         log(t.getMessage());
> >                 }
> >         }
> > );
>
> > On Dec 15, 7:59 am, joe  wrote:
>
> > > I'm having an issue withGWT2.0requesting XML data from aC#self
> > > hosted Web Service. Using the GET request tutorial 
> > > (http://www.gwtapps.com/doc/html/com.google.gwt.http.client.html) I was 
> > > able
> > > to retrieve the XML data usingGWT1.7. After upgrading to2.0all I
> > > return is an empty String using response.getTest(). The headers are
> > > also empty and response.getStatusCode() returned is 0.
>
> > > Running theC#app in debug I find that it is sending the XML data
> > > out, but it looks like theGWTside isn't receiving it. If I call the
> > > URL from the browser I see the XML data.
>
> > > I have also tried to use this same method to call other web services
> > > as well as websites. Still status code 0 and no text in the
> > > response.getTest().
>
> > > This leads me to believe that I missed some configuration in setting
> > > up my app toGWT2.0. However, I have clue where to start.
>
> > > Any help would be greatly appreciated.

This post is a few weeks old and you've probably solved your problem
by now - but, in case you haven't, it is possible to fix the same
origin policy issue for a JSON WCF web service by doing this in your
operation implementation:

public SomeData MyOperation(SomeParameters args)
{
WebOperationContext.Current.OutgoingResponse.Headers.Add
("Access-Control-Allow-Origin:*");

// Rest of operation code...
}

You only have to do this during development. In a production scenario
you definitely don't want to be setting this header! Note that it's
also possible to do the above in a WCF behavior which extends
DispatchRuntime or DispatchOperation. That way you can decide in
configuration whether this header gets set.

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




PopupPanel memory leak in IE (was huge, now just pesky)

2010-01-14 Thread phb
Has anyone else noticed that if you put a big JPG into a PopupPanel,
show it, and then clean it up, there's a significant memory leak (but
only on IE)?  It seems like it should be cleaned up by default, but I
also tried building my on onUnload(), which is being called, and doing
all manner of aggressive things within it to try to tell the browser
that I'm okay with freeing up the content, but to no avail.  Sieve
shows that whatever I have inside that panel retains at least one
reference count, and so the item leaks.  Issue 2329 sort of tracks
this, but doesn't quite acknowledge that at least in GWT 1.7 the basic
case is as broken as the GWT 2.0 setGlassEnabled() one.  I see it with
simply the following:

popup = new PopupPanel(true);
popup.add(popupImage);
popup.show();

However, the leak was really huge earlier, and the GWT team provided a
very effective, very simple workaround that really saved me, so I
thought I should share it here.  I have a fairly elaborate dialog in a
PopupPanel(), with nice rounded corners and various icons.  To support
transparency, IE was using an offscreen buffer which was getting
pretty huge (50-100MB) and then later got leaked.  The leak is still
there, but the hugeness is gone, thanks to the following four lines
added to the myModule.gwt.xml file:


  
  


Note that this does mean that PNG rendering in IE6 is now ugly, but
for my customers that's not nearly as big an issue as the browser
falling over because it's chewed up all available system memory.  YMMV
-  you'll want to test your site in IE6 before deploying this change.

Cheers,
Geoff
-- 
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.




UiBinder with custom Messages instance

2010-01-14 Thread tomsn
Hallo,

is it possbile to use an own instance of an implementation of the
com.google.gwt.i18n.client.Messages interface inside UI scripts to
resolve message/ constants keys?

This would be necessary for us, due to the creation of the MyMessages
instance is based on a more or less complex generation strategy, based
on deferred binding.

To clarify my example:

interface MyMessages extends Messages{
//my keys..
}
To instantiate MyMessages I do the following:
MyMessages msgs = ((MyMsgProviderFactory) GWT.create
(MyMsgProviderFactory.class)).getMsgs();

The concrete MyMsgProviderFactory is determined by several 'replace-
with' declarations in my Main.gwt.xml.
Each concrete factory then knows how to instantiate the required
MyMessages instance, which I want to use in my UiBinder scripts.

So, I use a sort of overlays to generate a user-specific MyMessages
instance, basically working like the following article describes:
http://eskatos.wordpress.com/2008/07/19/customer-i18n-overlays-with-gwt/

Thanks..

Regards
Tom
-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: GWT 2.0 - Problem with Eclipse plugin and UiBinder "Field xxx has no corresponding field in template file yyy.ui.xml"

2010-01-14 Thread nickajderian
I also had this problem. I had 2 files:

1. HitTimeSheet/src/TimeSheetItem.ui.xml
2. HitTimeSheet/src/uk.co.hattjoys.hittimesheet.client/
TimeSheetItem.ui.xml

I do not know where 1 came from but I spent 15 minutes editing it and
pulling out my hair before I realised 2 existed. 1 is not needed.
Hope this helps save someone else's hair...
-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: GWT MySQL

2010-01-14 Thread etwa
Hi,

try using the hibernate entity manager. I am also producing a web
pages based on mysql.
Remeber to disable the App Engine of the GWT project in eclipse and
delete the all the jar file related with datanucleus in your
buildpath.
Datanucleus is not compatible with hibernate the application will
consistenly complain that it cannot correctly configure the JDO
datasource.

etwa

On Jan 13, 3:36 pm, ANDRES BRUN  wrote:
> Hello everybody
>
> Which is the better way for work with GWT and MySQL, jsp's, php's,
> webservices or what? I want to access to MySQL from a GWT application but I
> don't know which is the better way.
>
> Thank you for your words.
>
> Andres Brun
-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




How to declare dependent style names with UiBinder

2010-01-14 Thread driftplaces
I have a simple UiBinder widget containing a TextArea:


http://dl.google.com/gwt/DTD/xhtml.ent";>






I want to control the background color of this textarea for writeable
and read only states. GWT uses the "-readonly" style name decorator to
achieve this. So I try this:

http://dl.google.com/gwt/DTD/xhtml.ent";>



.textBoxStyle {
background-color:yellow;
}
.textBoxStyle-readonly {
background-color:lightgray;
}






Obviously this won't work because style names are obfuscated for
CssResources resulting in something like this:

.G1x26wpeN {
background-color:yellow
 }
.G1x26wpeO {
background-color: lightgray;
}


The result HTML for writeable textarea looks like this:



The read only textarea looks like this:



How do I declare the style so GWT will obfuscate the primary part but
not the "-readonly" decdorator?

I know that I can disable the obfuscation for the entire style name.
But I'd like to keep the obfuscation while making use of the
decorators.
-- 
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.




Deploying GWT 2.0 client app ?

2010-01-14 Thread Kryo`
Hello,

I've made a little gwt 2.0 client app : "Login".

I can launch the debug and go to "http://localhost:/Login.html?
gwt.codesvr=192.168.1.22:9997" to see the result of my app.

Now I want to put this app on a website in order to let it be public.
So I've uploaded the content of the "war" folder on my ftp.
Then, when I go on my webpage on "Login.html" I have the following
message: "gwt module may need to be re compiled"...
(If I add "?gwt.codesvr=192.168.1.22:9997" it works but I don't want
to view it in development mode, I want the app to be public).

I've tried to re-compile and re-upload many times but it still doesn't
work... I really don't see what I'm doing wrong :(

The only thing I've found about this subject on the docs is :
"Deploying a GWT application to a web server is straightforward. All
you need to do is copy the generated GWT application files after
compilation and host them on your web server."

I'd be please if someone could help me :)
-- 
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.




Anyone know how to *undo* addWindowClosingHandler()?

2010-01-14 Thread phb
I wanted to prevent people from inadvertently leaving our app, so I
used this:

handler = Window.addWindowClosingHandler(new ClosingHandler() {
@Override
public void onWindowClosing(ClosingEvent event) {
event.setMessage("Are you sure?");
}
});

Worked like a charm.  However, there are some times when this is
unhelpful, and at these times I'd like to be able to selectively allow
users to leave without being prompted.

I tried handler.removeHandler().  No detectable effect.
I tried event.setMessage(""), event.setMessage(null), and
event.setMessage("New msg").  Only fixed FF.
I tried changing over to the old Listeners and calling
removeWindowCloseListener().  No detectable effect.
I tried adding a native $wnd.onunload = null.  No detectable effect.
I tried adding $wnd.document.body.onbeforeunload = null.  Only fixed
IE.
There doesn't seem to be a preventDefault() on the onWindowClosing
event class, and that's probably a good thing (but it might have
worked).

I don't see any GWT bugs open against this, and I'm running out of
ideas.

I'm running GWT 1.7 if that matters (putting off the 2.0 upgrade until
we get the current version out to some customers).

An acceptable workaround for my two current cases would be to be able
to mailto and download actions without the WindowCloseHandler
triggering, and without leaving a dangling blank window if the default
mail app is not the browser.  Opera does both, Safari does mailto, but
which I can't get IE, Chrome or FF to behave.  Any hints on this front
would also be appreciated.

The fact that I could get more or less acceptable results with FF,
Safari, and Opera leads me to think of this as a browser bug, rather
than a GWT bug, but it doesn't help my users to hear this...

Thanks,
Geoff
-- 
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.




Injecting Spring beans into GWT services

2010-01-14 Thread marko
Hi,

I'd like to be able to inject Spring (3.0) beans into GWT (2.0)
services using annotations.
People seem to be using somewhat different approaches for doing this
but have any best practices emerged regarding this issue with the
latest Spring and GWT versions?

marko
-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Problem accessing filesystem in eclipse development mode

2010-01-14 Thread Watzman
Hello,

I'm trying to create files inside the servlet directory using eclipse
with gwt-plugin.
As I understand I have to set permissions allowing file access to the
local directory for the servlet container.
Where do I have to set those permissions? Do I have to set special
properties in appengine-web.xml?


Regards,
Watzman
-- 
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.




Proper use of GWT

2010-01-14 Thread Hugh Acland
Hi,

I have been experimenting with GWT for a few weeks now and am very
impressed. Especially with 2.0 and now that Netbeans plugin is fully
functional. Works like a treat! However, I have yet to pin down
exactly what GWT should be used for. As far as I can tell it is
primarily for building rich internet applications which will be
made available to subscribers through the ubiquitous browser and most
often through secure logon. I can see the power of using GWT in this
way.

For the past few years I have been quick to ridicule anyone who wanted
to build web-apps for use in a browser. Anything more complicated than
the most basic application soon became a complete nightmare to
implement and sometimes actually functionally impossible. I wrote one
such app for a client who wanted the 'user experience' to be as good
as a standard desktop VB/Swing application. It didn't matter how much
I protested, my pay cheque was dependent upon me complying with his
wish. So I hacked together a really nasty bunch of Servlets with a
gazillion 'out.write('...html, html, html ')' lines. The
whole thing was really, really grubby and a real pain to maintain.

Now some might say that I could have used JSP/JSF/tags blah blah but
seriously?!! I love Java and all things J2EE except for the God-awful
presentation layer. It is unnatural. It is freakish hell. So GWT comes
along and looks just the ticket! So am I right in saying that GWT
should not be used for mickey-mouse JS? And that it really is intended
for serious hard-core browser-based apps - which may also have a
standard desktop version running off the same server business logic?

One other thing. I have fallen in love with a project called Ape (Ajax
Push Engine) - www.ape-project.org To me, all my dreams will have come
true if I can integrate Ape into a GWT-based web-app. I can already
hear the cash tills ringing as this is the ultimate missing brick in
true browser-based applications. Has anyone managed to get the two
playing nicely together? Wouldn't it be so cool to have a real time
update (pushed) data into a GWT (or ExtJS) grid? That would really
float my boat so I would love to hear if this has been achieved yet..

Thanks for reading and if you can I would welcome answers and comments
Cheers
Hugh
-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




gwt.xml support for servlet init-param and wildcard mappings

2010-01-14 Thread hi...@hiramchirino.com
Hi,

I'd like to use hosted mode junit tests against some jersey services.
The first problem is that I need to pass init-param to the jersey
servlet.  The second problem is I need to use a wildcard servlet
mapping.

Ideally i could just add something like this to the gwt.xml:



  com.sun.jersey.config.property.packages
  my.package



Well either that or get the hosted mode junit stuff to use the web.xml
file for the servlet configuration.  Any ideas how to get this to work
in 2.0???
-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




GWT mature example

2010-01-14 Thread Alexander
Hello,

What big project I could use to learn as example of "true" GWT style? I fed
up with all these simple example applications. What huge and mature
application I could learn from you know? Sure it must be opensource :)

-- 
Regards,
Alexander
-- 

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: submitting a form using RPC

2010-01-14 Thread Eric


On Jan 14, 6:24 am, loucat  wrote:
> Hi all !
>
> I'm having some problems with the communication client-server, i just
> have to submit a form but I read it's better to use RPC so I've
> deleted all the reference of FormPanel and trying to do it calling a
> server, but it doesn't work :(

The only thing you need FormPanel for is uploading files; AJAX can't
handle that for security reasons.  Upload file widgets cannot be
scripted with Javascript.

As always, look for Ray Ryan's presentation at Google I/O 2009.

Eric
-- 
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: Is GQuery planned to be integrated with GWT.

2010-01-14 Thread Chris Ramsdale
Deanna,

Right now there is no plan of integrating GQuery into the mainline of GWT,
as we're focused on puling in features from the Incubator project as well as
completely new features. Thanks for the input, and we'll keep you posted if
this changes.

- Chris

On Wed, Jan 13, 2010 at 4:36 PM, Deanna Bonds wrote:

> After last years google io I expected to see GQuery on the roadmap.
> Looks like a great core piece to help create our own composites
> without requiring everything to be a gwt object.   Is this (still)
> planned?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>
>
-- 

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.

To post to this group, send email to google-web-tool...@googlegroups.com.

To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Live Stock Ticker Data?

2010-01-14 Thread Russ
Thanks for the reply. What I'm hoping to do is have my servlet
communicate with the outside data source, and then have my client make
periodic RPC calls to the servlet to retrieve the stock prices. Is
this how it's normally done? If not, is this method do-able?

Thanks again,
-Russ
-- 
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: submitting a form using RPC

2010-01-14 Thread loucat
Oh yes!!!
That was the problem!
thank you so much! You can't imagine how many hours I've lost ! :)

Now I have to pass all the other fields of the form... is it normal to
have a method with a lot of input parameter? Maybe there's a better
way to do it...
but at least it should work :)

I also have to use a token to generate an email and then interact with
some struts2 action (and I think this will be the hardest part), so I
hope someone is used to these things because I could come back here
soon.
thank you again!!!

lou


On 14 Gen, 15:55, Chris Ramsdale  wrote:
> You shouldn't have to do the following:
>
> ServiceDefTarget target = (ServiceDefTarget) prenotaService;
> target.setServiceEntryPoint(GWT.getModuleBaseURL() +
> "/provatesina/prenota");
>
> Your RPC->URL mapping is defined within your war/WEB-INF/web.xml and the
> RemoteServiceRelativePath annotations within your client side code.
>
> On Thu, Jan 14, 2010 at 6:24 AM, loucat  wrote:
> > Hi all !
>
> > I'm having some problems with the communication client-server, i just
> > have to submit a form but I read it's better to use RPC so I've
> > deleted all the reference of FormPanel and trying to do it calling a
> > server, but it doesn't work :(
>
> > Am I supposed to pass all the fields of the form through the method of
> > the ServiceInterfaceAsync?
> > Up to now I'm trying to pass tha "name" field as a String parameter in
> > that method, but I always get back the "onFailure" result.
>
> > I think I configured everything properly but obviously I'm not sure
> > about it.
> > what url shoud I put here? ->  target.setServiceEntryPoint
> > (GWT.getModuleBaseURL() + "/provatesina/prenota");
>
> > This is the code I have in the main GWT class, it's inside the method
> > "onModuleLoad":
>
> >            final PrenotaServiceAsync prenotaService = (PrenotaServiceAsync)
> > GWT.create(PrenotaService.class);
> >            ServiceDefTarget target = (ServiceDefTarget) prenotaService;
>
> >            target.setServiceEntryPoint(GWT.getModuleBaseURL() + "/
> > provatesina/prenota");
>
> >            submit.addClickHandler(new ClickHandler() {
> >                    public void onClick(ClickEvent event) {
>
> >                        Window.alert("submitting the form");
>
> >                    prenotaService.prenota(nome.getText(), new
> > AsyncCallback () {
> >                             public void onFailure(Throwable caught) {
> >                               Window.alert("RPC to prenota() failed.");
> >                             }
> >                             public void onSuccess(String result) {
> >                               lab.setText(result);
> >                             }
>
> >                    });
> >            };
>
> >        });
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: Maven users survey

2010-01-14 Thread LH.
Keith,

Thanks you for taking this on!

I think you've got a decent grasp of the issues; I've basically been
forcing the GWT project to have a different structure than is
recommended/required because I can't get the maven plugin to work
right otherwise.

My answers to your questions (but mostly because of how broken things
are) go something like this:
- I don't create new projects (or haven't lately), so I'm useless
here.
- I compile at the command line (mvn gwt:compile)
-- I also use m2eclipse plugin (http://m2eclipse.sonatype.org/
update/), but in a GWT context, it's not terribly reliable about
picking up changes I've made in one file that break compilation in
other files.
- I  haven't succeeded in debugging with Eclipse, and mostly don't
try.  (The server side of the app is GAE-python; I'm sure it's
possible, but hasn't been worth the neurons.)
- I run unit tests at the command line (mvn test)
- I don't really create a war.  Mostly, I link (or, for real
deployment, copy & check in) the /html directory of my python app to
the output directory of the GWT project

I should note that I'm a particularly tough case--this project has
been around since (?before?) GWT-1.5 (and certainly before java was
available on the appengine), so we had to do something about the
transition to the war structure.  We also used the totsp maven plugin
to start with, and had to do something to move to the current codehaus
plugin.  Mostly, that "something" in both cases was a combination of
hacking and finessing.  (I'm not a real maven expert either, so I
probably haven't worked out the right answers.  But they work.)

Hope this helps; I'm happy to send along a (redacted) pom if it would
help.

Best,
LH

On Jan 13, 11:35 am, Keith Platfoot  wrote:
> Hi folks,
>
> For the next release of the Google Plugin for Eclipse, we're planning on
> making a few tweaks to make life easier for Maven users. That's right: we've
> seen the stars on the issue tracker, and have decided it's time to act. I
> would say, "we feel your pain", but the problem is, we don't. Which is to
> say, nobody on the plugin team actually uses Maven (everybody around here
> uses Ant). However, I've been researching Maven to determine exactly what
> changes we should make to allow it to work more seamlessly with the Google
> Eclipse Plugin. I've read the relevant issues and groups postings, so I
> think I have a rough idea of what needs to happen. However, before we go and
> make any changes, I wanted to ask for the community's advice.  So, here are
> some questions for you.
>
> What is the typical workflow of a GWT developer using Maven?
>
> I've installed Maven and the gwt-maven-plugin 1.2-SNAPSHOT and managed to
> create a GWT 2.0 app with the provided archetype. After some tweaking, I'm
> able to GWT compile, debug with Eclipse (though not via our Web App launch
> configuration), create a WAR, etc. However, I'm more interested in how you all
> are doing things. For example:
>
> How do you...
>
>    - Create a new project?
>    - Perform GWT compiles?
>    - Debug with Eclipse?
>    - Run your tests?
>    - Create a WAR for deployment?
>
> What specific pain points do Maven users run into when using the Google
> plugin?
>
> I know one major obstacle is that our plugin currently treats the war
> directory as both an input (e.g. static resources, WEB-INF/lib,
> WEB-INF/web.xml) and output (WEB-INF/classes, GWT artifacts like nocache.js
> and hosted.html) . Maven convention, however, says that /src/main/webapp
> should be input only, which means that hosted mode (or development mode, in
> GWT 2.0) needs to run from a staging directory (e.g. gwt:run creates a /war
> folder on demand). This mismatch results in the plugin creating spurious
> validation errors and breaks our Web App launch configuration.
>
> Another incompatibility is that Maven projects depend on the GWT Jars in the
> Maven repo, whereas our plugin expects to always find a GWT SDK library on
> the classpath.
>
> Are my descriptions of these pain points accurate?  If so, one possible
> solution would be for the plugin to allow the definition of an input war
> directory (e.g. src/main/webapp) separate from a launch-time staging
> directory, and for us to relax the requirement that all GWT projects must
> have a GWT SDK library.  So tell me: would these changes adequately reduce
> the friction between Maven and the Google plugin?
>
> Also, are there other problems Maven users are running into when using the
> plugin?
>
> Thanks in advance for all feedback,
>
> Keith, on behalf of the Google Plugin for Eclipse team
-- 
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.




Add GWT (SmartGWT) to existing project with Spring and Hibernate

2010-01-14 Thread MaEcTPo
Hi,
I have very simple question for you..
We have some project which use Spring, Hibernate, Maven and so on. I
can run it under Apache TomCat 6.0, open the browser and try it.
So, question is.. How can I add GWT to this project? Can you show me
any examples which work good? Or get me a step by step "how to".
Please..

I played with GWT. After I played with SmartGWT and I love it and
would like to use it in our new project. Please, help.

I read a lot of information, tried some projects which was very old
and didn't work...
-- 
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: Request data

2010-01-14 Thread Olivier
Yes, thanks.

Oli

On 14 Jan 2010, at 15:43, DaveS wrote:

> Oli
> 
> It's easy to get back both lists in a single RPC call, by defining a
> ResultType class such as:-
> 
> class MyResult implements Serializable {
>  public List items;
>  public List filters;
> }
> 
> where both classes "Item" and "Filter" are also serializable. Then
> have a method like
> 
> public MyResult sendRequest(args...);
> 
> defined in the RPC interface.
> 
> I hope this makes sense
> 
>  Dave.
> 
> On Jan 14, 10:39 am, Olivier  wrote:
>> Hi everyone,
>> 
>> I have a form that is send to request some data on the server. The result I 
>> need is a list of items and a list of filters.
>> What would better, sending one request that will get me both list or sending 
>> 2 different requests, one for each list ?
>> 
>> Thanks
>> Oli
>> 
>> ---
>> Olivier
>> Digiworks
>> 
>> Política de Protección de Datos de Carácter Personal
>> En cumplimiento de la Ley Orgánica 15/1999, de 13 de diciembre,  sobre 
>> protección de Datos de Carácter Personal (LOPD) DIGIWORKS SPAIN, S.L. 
>> informa a los usuarios de que:
>> 
>> Los Datos de Carácter Personal que recoge son objeto de tratamiento 
>> automatizado y se incorporan en los ficheros correspondientes,  debidamente 
>> registrados en la Agencia Española de Protección de Datos. El usuario podrá, 
>>  en todo momento, ejercitar los derechos reconocidos en la LOPD, de acceso, 
>> rectificación, cancelación y oposición. El ejercicio de estos derechos puede 
>> realizarlo el propio usuario mediante comunicación escrita en la siguiente 
>> dirección postal:
>> 
>> DIGIWORKS SPAIN, S.L.
>> AVDA SAN RAFAEL, 11, LOCAL 2
>> 03580 ALFAZ DEL PI
>> ALICANTE
>> 
>> También pueden ejercitar estos derechos en los términos que la normativa 
>> aplicable establece y que puede consultar enwww.agpd.es.
> -- 
> 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.
> 
> 


---
Olivier
Digiworks

Política de Protección de Datos de Carácter Personal
En cumplimiento de la Ley Orgánica 15/1999, de 13 de diciembre,  sobre 
protección de Datos de Carácter Personal (LOPD) DIGIWORKS SPAIN, S.L. informa a 
los usuarios de que:

Los Datos de Carácter Personal que recoge son objeto de tratamiento 
automatizado y se incorporan en los ficheros correspondientes,  debidamente 
registrados en la Agencia Española de Protección de Datos. El usuario podrá,  
en todo momento, ejercitar los derechos reconocidos en la LOPD, de acceso, 
rectificación, cancelación y oposición. El ejercicio de estos derechos puede 
realizarlo el propio usuario mediante comunicación escrita en la siguiente 
dirección postal:

DIGIWORKS SPAIN, S.L.
AVDA SAN RAFAEL, 11, LOCAL 2
03580 ALFAZ DEL PI
ALICANTE

También pueden ejercitar estos derechos en los términos que la normativa 
aplicable establece y que puede consultar en www.agpd.es.

-- 

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: MVP design help for Display interface

2010-01-14 Thread Jeff Irving
Thanks for your feedback, Thomas. It gave me lots of food for thought.
This is new territory for me and so I wanted to explore your
suggestions before responding.

So far, I've been able to get something working using the single
HasSelectionHandlers approach you described. The approach I
took was to have my View:

a) extends Composite
b) implements HasSelectionHandlers
c) can implement addSelectionHandler(...) by simply calling
Widget.addHandler(handler, SelectionEvent.getType()) because Composite
extends Widget
d) inherits an implementation of fireEvent(...) from Widget
c) have various SelectionEvent.fire(this, "targetObject:userAction")
calls throughout my code invoked in response to ClickEvents arising
from "user action" widgets (simple Label)

Does that sound about right?

It's working fine and I can see how I could replace the  with
 in the HasSelectionHandlers interface to improve type safety
and avoid string parsing.

But I'm unclear as to how the "action-specific" strategy (ex.
HasSelectionHandlers getDiscard()) would work in terms of the View
implementation. What would actually be returned to the Presenter? In
other words, what would the SelectionHandler to be added to? There
is no widget that aggregates all of the 'discard' widgets and so I'm
left wondering what would implement the HasSelectionHandlers
interface. A custom collection-type class?

Please let me know if my question has been lost in this admittedly
convoluted phrasing.

Thanks again for your help.
Jeff


On Jan 11, 5:46 pm, Thomas Broyer  wrote:
> On 9 jan, 01:16,JeffIrving wrote:
>
> > Hello everyone.
>
> > I'm hoping to elicit some suggestions regarding how to apply an MVP
> > design to my particular application. My situation is that I have some
> > tabular model data that includes row-specific user actions (ex.
> > 'discard', 'reprocess', 'submit', etc.) that are ultimately presented
> > as widgets (ex Label) to which action-specific ClickHandlers should be
> > attached. Getting the model into the view has been discussed in other
> > postings and I'm leaning towards passing in the model objects directly
> > rather than having the Presenter decompose them into more generic
> > elements. But I'm totally at a loss as to how the Presenter.Display
> > interface should be structured to retrieve the row-specific user
> > actions in a way that allows me to attach the correct ClickHandler
> > logic.
>
> We use SelectionEvents in this case. There are several ways to chose
> from:
>  - use an HasSelectionHandler per action where X is either an object's
> identifier or an object itself, we chose to use identifiers):
>    public HasSelectionHandler getDiscard();
>    public HasSelectionHandler getReprocess()
>    ...
>  - use a unique HasSelectionHandler where X is either a String
> composed of the action and the object's identifier (e.g. discard:1,
> reprocess:2, ...) or a Pair object with getAction() and getTargetObject
> ()
>
> > I've looked at the "Contacts" example and it was very helpful to
> > demonstrate how to determine which row/Contact was clicked. But the
> > same ClickHandler logic is applicable to each row. In my case, each
> > displayed "user action" requires unique processing.
>
> In our case, the ClickEvent-to-SelectionEvent is handled by the view
> (as well as the row-index-to-item-identifier mapping, which somehow
> breaks the MVP design pattern too), the presenter only deals with
> SelectionEvents.
>
> You can keep using the Contacts same approach and just add a method to
> retrieved the action too:
>    public int getClickedRow(ClickEvent event);
>    public String getClickedAction(ClickedEvent event);
> or similarly to what I proposed above:
>    public Pair getClickedAction(ClickEvent event);
> where Pair could be a Map.Entry or whatever.
-- 
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: submitting a form using RPC

2010-01-14 Thread Chris Ramsdale
You shouldn't have to do the following:

ServiceDefTarget target = (ServiceDefTarget) prenotaService;
target.setServiceEntryPoint(GWT.getModuleBaseURL() +
"/provatesina/prenota");

Your RPC->URL mapping is defined within your war/WEB-INF/web.xml and the
RemoteServiceRelativePath annotations within your client side code.

On Thu, Jan 14, 2010 at 6:24 AM, loucat  wrote:

> Hi all !
>
> I'm having some problems with the communication client-server, i just
> have to submit a form but I read it's better to use RPC so I've
> deleted all the reference of FormPanel and trying to do it calling a
> server, but it doesn't work :(
>
> Am I supposed to pass all the fields of the form through the method of
> the ServiceInterfaceAsync?
> Up to now I'm trying to pass tha "name" field as a String parameter in
> that method, but I always get back the "onFailure" result.
>
> I think I configured everything properly but obviously I'm not sure
> about it.
> what url shoud I put here? ->  target.setServiceEntryPoint
> (GWT.getModuleBaseURL() + "/provatesina/prenota");
>
>
> This is the code I have in the main GWT class, it's inside the method
> "onModuleLoad":
>
>
>final PrenotaServiceAsync prenotaService = (PrenotaServiceAsync)
> GWT.create(PrenotaService.class);
>ServiceDefTarget target = (ServiceDefTarget) prenotaService;
>
>target.setServiceEntryPoint(GWT.getModuleBaseURL() + "/
> provatesina/prenota");
>
>
>
>submit.addClickHandler(new ClickHandler() {
>public void onClick(ClickEvent event) {
>
>Window.alert("submitting the form");
>
>prenotaService.prenota(nome.getText(), new
> AsyncCallback () {
> public void onFailure(Throwable caught) {
>   Window.alert("RPC to prenota() failed.");
> }
> public void onSuccess(String result) {
>   lab.setText(result);
> }
>
>});
>};
>
>});
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>
>
-- 

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.

To post to this group, send email to google-web-tool...@googlegroups.com.

To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Request data

2010-01-14 Thread Lothar Kimmeringer
Olivier schrieb:

> I have a form that is send to request some data on the server. The
> result I need is a list of items and a list of filters.
> What would better, sending one request that will get me both list or
> sending 2 different requests, one for each list ?

Depends. If the retrieval of items and filters is independent from
each other you might start two parallel requests. If the server
can create the list of items and filters at the same time (e.g.
because you need the values of the first list to be able to fill
the second list), you should get both lists in one request to
avoid the repeated work of getting the first list on server-side.

The same can be said if your application needs both lists before
being able to continue the workflow.

So without knowing you concrete application at all I would suggest
to put both lists in one request. If your application also loads
each list separately in other parts, you can add a parameter to
the request leading to the effect that the corresponding member
in that class is null allowing you to reuse that remote method.


Regards, Lothar
-- 
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: Live Stock Ticker Data?

2010-01-14 Thread mariyan nenchev
Hi,

there are various companies that can provide real time data channeling, How
ever they have their APIs that you must use. Some use the FIX protocol for
example.
But all channel the data to your server and you have to send it in some way
on the gwt client side(with server push or polling). I do not think anyone
can offer you gwt client side subscribtion to live data feed.

On Thu, Jan 14, 2010 at 4:03 PM, Russ  wrote:

> Hi all,
> Does anyone know of a service that supplies live updated stock market
> data that I can use in my GWT app?
>
> Thanks,
> -Russ
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>
>
-- 

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.

To post to this group, send email to google-web-tool...@googlegroups.com.

To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT Group spam this morning

2010-01-14 Thread Stefan Bachert
Hi,

No receiver of this group is responsible for that problem.
It is caused by poor administration of the group software.

Check the eMail-Headers. The field
"Reply-To" is set to this group. That is a very bad idea.

Give your administrators the task to check "Reply-To" and "Return-To"
fields.

Stefan Bachert

On 13 Jan., 16:49, Chris Ramsdale  wrote:
> Most of you probably noticed a flood of emails from "postoffice" this
> morning (actually Yahoo's mail hosting service). The root cause of
> this were email digests that were failing to a specific account. After
> being queued up for a fair amount of time, the sends fail out for good
> and a response (in this cases responses...quite a few of them) are
> sent back to the user, i.e. google-web-toolkit
> +dig...@googlegroups.com.
>
> For now we've turned off email digests for this user, in an effort to
> prevent this from happening again.
>
> - Chris
-- 
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: Request data

2010-01-14 Thread DaveS
Oli

It's easy to get back both lists in a single RPC call, by defining a
ResultType class such as:-

class MyResult implements Serializable {
  public List items;
  public List filters;
}

where both classes "Item" and "Filter" are also serializable. Then
have a method like

public MyResult sendRequest(args...);

defined in the RPC interface.

I hope this makes sense

  Dave.

On Jan 14, 10:39 am, Olivier  wrote:
> Hi everyone,
>
> I have a form that is send to request some data on the server. The result I 
> need is a list of items and a list of filters.
> What would better, sending one request that will get me both list or sending 
> 2 different requests, one for each list ?
>
> Thanks
> Oli
>
> ---
> Olivier
> Digiworks
>
> Política de Protección de Datos de Carácter Personal
> En cumplimiento de la Ley Orgánica 15/1999, de 13 de diciembre,  sobre 
> protección de Datos de Carácter Personal (LOPD) DIGIWORKS SPAIN, S.L. informa 
> a los usuarios de que:
>
> Los Datos de Carácter Personal que recoge son objeto de tratamiento 
> automatizado y se incorporan en los ficheros correspondientes,  debidamente 
> registrados en la Agencia Española de Protección de Datos. El usuario podrá,  
> en todo momento, ejercitar los derechos reconocidos en la LOPD, de acceso, 
> rectificación, cancelación y oposición. El ejercicio de estos derechos puede 
> realizarlo el propio usuario mediante comunicación escrita en la siguiente 
> dirección postal:
>
> DIGIWORKS SPAIN, S.L.
> AVDA SAN RAFAEL, 11, LOCAL 2
> 03580 ALFAZ DEL PI
> ALICANTE
>
> También pueden ejercitar estos derechos en los términos que la normativa 
> aplicable establece y que puede consultar enwww.agpd.es.
-- 
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.




Live Stock Ticker Data?

2010-01-14 Thread Russ
Hi all,
Does anyone know of a service that supplies live updated stock market
data that I can use in my GWT app?

Thanks,
-Russ
-- 
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: Prevent class conversion when compiling modules

2010-01-14 Thread Chris Lercher
Well, it works for me. I didn't try it with TopLink - I used POJOs
instead - but when I declare the field transient, it works (according
to the SOYC Compile Report).

--
Example:

public class WantThat implements Serializable {
private transient DontWantThat dontWantThat;

public DontWantThat getDontWantThat() {
return dontWantThat;
}
}

public class DontWantThat implements Serializable {

}

@RemoteServiceRelativePath("some")
public interface SomeService extends RemoteService {
  WantThat getWantThat();
}
-

DontWantThat is not in my Compile Report. If I remove the transient
keyword, it is.

Maybe there's something different with your case. Maybe something is
accessing your "getDontWantThat()"? Circular references at least?
-- 
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: Prevent class conversion when compiling modules

2010-01-14 Thread Warpitaly
We tried that and it works as said in my previous post: the presence
of class A in the method signature is enough to make it required.
Actually, the same applies to mere transient fields: even if the field
is transient and doesn't have a getter/setter, the class is still
required...
Quite disappointing honestly!

On 14 Gen, 14:12, Chris Lercher  wrote:
> I'm not so sure about that. If your client never uses the getter/
> setter, it can (theoretically) be pruned. The reason such pruning
> cannot be done with a non-transient field is that this would incur
> data loss (when sending the object back to the server).
-- 
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: deRPC issues

2010-01-14 Thread Mike Noordermeer


On Wed, Jan 13, 2010 at 9:28 PM, Chris Ramsdale > wrote:


@Mike (either one), do you have a small test project that reproduces
these issues? If so, would you mind sending it to me?


Testcase for the second issue is at 
http://souterrain.flatnet.tudelft.nl/~mike/derpctest.tar.gz


It simply sends an 'TestObject' that contains a boolean from server to 
client, and then back to server. This causes a 500 in production mode 
(GWT compile is already included, just run the server and visit the page 
without the dev plugin). Probably fixed by changing the boolean to a 
Boolean.


For the first issue you should deploy a .war onto a server outside of 
the RootContext, then all calls fail. But I think that's already covered 
in issue .


--
Mike Noordermeer
m...@normi.net
-- 
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: Prevent class conversion when compiling modules

2010-01-14 Thread Chris Lercher
On Jan 14, 2:00 pm, Warpitaly  wrote:
> I don't think so: the GWT compiler would find a method whose signature
> contains class A, hence including it again.

I'm not so sure about that. If your client never uses the getter/
setter, it can (theoretically) be pruned. The reason such pruning
cannot be done with a non-transient field is that this would incur
data loss (when sending the object back to the server).
-- 
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: TabLayoutPanel...

2010-01-14 Thread Stine Søndergaard
They are... as they show up when the label is non-empty :) Well..
-- 

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: Prevent class conversion when compiling modules

2010-01-14 Thread Warpitaly
I don't think so: the GWT compiler would find a method whose signature
contains class A, hence including it again.

I'm afraid the only way is to create a Bb class, that is identical to
B except it doesn't contain any reference to A.
But you will ALL agree that this is quite a lame solution...

On 14 Gen, 10:53, Chris Lercher  wrote:
> Just an idea - i haven't tried it: Can you mark your field transient,
> but have getters/setters with JPA annotations which read/modify the
> field?
-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: Maven users survey

2010-01-14 Thread milan
Hi Keith,

basically my issues re described here:
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/de0941a7c657c8f0/cbbf6292588041f8?#cbbf6292588041f8.

1. We have gwt as a maven 2 project where you can find these plugins
in pom file. Plus dependencies to other modules(ommited)



org.codehaus.mojo
gwt-maven-plugin
1.1

${basedir}/war
INFO
OBF
true
-Xmx512m -Xss2048k
Project.html

com.project.Project

true




compile






maven-antrun-plugin


package
















run





maven-assembly-plugin


src/main/assembly/assembly.xml




make-assembly
package

attached






2. We use m2eclipse plugin (http://m2eclipse.sonatype.org/update/)

3. For importing GWT project to eclipse I choose Import Maven project
in eclipse. I get project set up with all possible maven dependencies
etc.

4. I have to mark project as GWT Project. Properties->Google->Web
toolkit-> Use google web toolkit.  Then I can start project as GWT web
application. But with the result mentioned in my previous post.

5. We compile whole thing with maven 2, but as I said we are in phase
where we don't have some concrete routines for packing our GWT GUI
layer with our existing app(struts based). but I believe generated
pages and jar will be in the same web app package as other stuff - so
not as a special GWT web app.

6. In eclipse we just start Debug as Web application. (with all
libraries manually copied into war/WEB-INF/lib)

7. UNIT tests: We haven't come so far ;)

So far we learned gwt principles, we managed to integrate it with
spring, managed to integrate it into our existing struts GUI, managed
to build with maven etc. - so more like infrastructure tasks. Now we
want to use our existing modules with screens we created in GWT.

8. WAR for deployement: see 5.

So our major problem with GWT is that we have to copy all maven
dependencies manually to war/WEB-INF/lib in hosted mode. Quite a issue
for modules that changes quite often. Without this need, I believe, we
would consider GWT-maven integration as very good.

Hope you get an idea how do we work.

Regards,

milan



On Jan 13, 5:35 pm, Keith Platfoot  wrote:
> Hi folks,
>
> For the next release of the Google Plugin for Eclipse, we're planning on
> making a few tweaks to make life easier for Maven users. That's right: we've
> seen the stars on the issue tracker, and have decided it's time to act. I
> would say, "we feel your pain", but the problem is, we don't. Which is to
> say, nobody on the plugin team actually uses Maven (everybody around here
> uses Ant). However, I've been researching Maven to determine exactly what
> changes we should make to allow it to work more seamlessly with the Google
> Eclipse Plugin. I've read the relevant issues and groups postings, so I
> think I have a rough idea of what needs to happen. However, before we go and
> make any changes, I wanted to ask for the community's advice.  So, here are
> some questions for you.
>
> What is the typical workflow of a GWT developer using Maven?
>
> I've installed Maven and the gwt-maven-plugin 1.2-SNAPSHOT and managed to
> create a GWT 2.0 app with the provided archetype. After some tweaking, I'm
> able to GWT compile, debug with Eclipse (though not via our Web App launch
> configuration), create a WAR, etc. However, I'm more interested in how you all
> are doing things. For example:
>
> How do you...
>
>    - Create a new project?
>    - Perform GWT compiles?
>    

Re: deRPC issues

2010-01-14 Thread Mike Noordermeer
I don't have one atm, will try to produce one...

On Wed, Jan 13, 2010 at 9:28 PM, Chris Ramsdale wrote:

> @Mike (either one), do you have a small test project that reproduces these
> issues? If so, would you mind sending it to me?
>
> Thanks,
> Chris
>
> On Tue, Jan 5, 2010 at 2:12 PM, MikeN  wrote:
>
>> Hi,
>>
>> I think I've found two issues in the new deRPC code, but I would like
>> some confirmation before spamming the issuetracker. I'm using the GWT
>> 2.0 release codebase, on various platforms.
>>
>> The first issue is in RpcServlet. By default the code can't find the
>> *.gwt.rpc files (in production mode) if the webapp is not deployed at
>> the root of the server. When determining the path to the ModuleBase,
>> in getRequestModuleBasePath(), the code simply gets a client-side
>> header and strips the host and port part (isn't this a security issue
>> anyway?). Problem is, webapps/servlets don't have to be deployed to
>> the root of the server. When deployed at an other path, for instance /
>> webapps/myWebapp/, the client will send this in de ModuleBase header,
>> but it shouldn't be included in the getServletContext
>> ().getResourceAsStream(resourcePath) call as the resourcePath. I
>> 'fixed' this by overriding findClientOracleDate(), but that shouldn't
>> be necessary...
>>
>> The next issue took me somewhat longer to debug. When using a custom
>> object, containing a bool, and sending that to the client and then
>> back to the server, deserialization at the serverside fails with a
>> ClassCastException (can't cast from Double to Boolean) (only in
>> production mode). This is because the bool gets send over as a double
>> (I see D1 in the request, instead of Z1). I'm not quite sure where the
>> problem is, probably somewhere in
>> CommandClientSerializationStreamWriter. I fixed it by using a Boolean
>> instead of a bool in my object.
>>
>> Has anyone seen these bugs before, or is anyone able to reproduce
>> them?
>>
>> Regards,
>>
>> --Mike
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to google-web-tool...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>>
>>
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>


-- 
Mike Noordermeer
m...@normi.net
-- 

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: one servlet, many clients with gwt-rpc

2010-01-14 Thread shed
Hi Michael,

is it also possible to use this ProxyServlet if I want to integrate my
GWT application into an external webpage?

Current status:
My server and client are running on the same server (http://localhost:
) and I use GWT-RPC to communicate with the server.
Now I want to integrate my gwt application into an external webpage
(for testing running on http://localhost:8080). In this external
application I therefore load the no-cache.js to load my client.
Now I have the problem that I can not do GWT-RPC calls because of the
same origin policy (different ports).

Can I use the ProxyServlet you recommended to solve this problem? Or
can you recommend me another approach to solve this problem?

Thanks in advance.


On 9 Jan., 12:42, Peter Simun  wrote:
> Hello Michael,
>
> we are using exactly the same architecture in our most complex GWT
> project.
> Server (handling all services) is deployed in tomcat and many client
> applications are connecting to this services.
>
> You have to use a ProxyServlet because of "Same origin policy"
> restriction in GWT and define a rules for proxying.
>
> Application is accesing service using URL /super-server/service/test
> and the initialization is following:
>
> SeviceAsync service = GWT.create(Service.class);
> ServiceDefTarget endpoint = (ServiceDefTarget) service;
> endpoint.setServiceEntryPoint("/super-server/service/test");
>
> and ProxyServlet willproxythe request to the server and send back
> the response to the client.
>
> Only thing you have to do is to define a ProxySerlvet in your client
> web.xml.
>
> Please, see all details 
> here:http://code.google.com/p/acris/wiki/SeparateClientAndServer
>
> All sources are opensourced so you can use it as you want.
>
> On Jan 8, 4:56 pm, Michael Vogt  wrote:
>
> > Hello.
>
> > I just received a question, if it is possible to access one central
> >servlet(extending RemoteServiceServlet) that can be accessed by
> > several gwt client applications. The interface that is implemented by
> > theservletis fixed. The same interface is used by every client
> > application.
>
> > I could not find any specific information about it in the docs and on
> > this list, so I tried it out. When accessing the service, I get a null
> > pointer exception - stacktrace below. My guess is, this has something
> > to do with the rpc policy file.
>
> > What seem to work is, when we install the client apps into the same
> > war file as theservlet. The problem exists, when we try to install
> > the client applications as separate war files.
>
> > Any comments if this should work at all, and how to get it running is 
> > welcome.
>
> > We are using for this GWT 1.7.1 and Glassfish 2.1
>
> > Thanks,
> > Michael
>
> > Here is the stacktrace:
>
> > WebModule[/AppsAWC]Exception while dispatching incoming RPC call
> > java.lang.NullPointerException
> >         at
> > com.sun.enterprise.web.logger.LoggerBase.write(LoggerBase.java:215)
> >         at
> > com.sun.enterprise.web.logger.LoggerBase.log(LoggerBase.java:172)
> >         at
> > org.apache.catalina.core.ApplicationContext.log(ApplicationContext.java:839 
> > )
> >         at
> > org.apache.catalina.core.ApplicationContextFacade.log(ApplicationContextFac 
> > ade.java:323)
> >         at javax.servlet.GenericServlet.log(GenericServlet.java:335)
> >         at
> > com.google.gwt.user.server.rpc.RemoteServiceServlet.doGetSerializationPolic 
> > y(RemoteServiceServlet.java:219)
> >         at
> > com.google.gwt.user.server.rpc.RemoteServiceServlet.getSerializationPolicy( 
> > RemoteServiceServlet.java:117)
> >         at
> > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.prepare 
> > ToRead(ServerSerializationStreamReader.java:429)
> >         at
> > com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:234)
> >         at
> > com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServi 
> > ceServlet.java:164)
> >         at
> > com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceSer 
> > vlet.java:86)
> >         at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
> >         at jorapi.awc.server.AWC.service(AWC.java:314)
> >         at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
> >         at
> > org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationF 
> > ilterChain.java:427)
> >         at
> > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j 
> > ava:315)
> >         at
> > org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContex 
> > tValve.java:287)
> >         at
> > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j 
> > ava:218)
> >         at
> > org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:64 
> > 8)
> >         at
> > org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:59 
> > 3)
> >         at
> > com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)

Re: Charset Problem

2010-01-14 Thread Lothar Kimmeringer
nacho schrieb:
> I tried but, GWT renders the link like this
> 
> laquo; Back to Inbox

Try setting the text with setHTML instead of setting it in
the constructor.

What charset is specified in your development-environment when
saving the java-source? AFAIR « is not part of latin1 or
cp1252 (Windows Latin1). So if you don't save the source with
UTF8 or similar, you already end up with a different character
there and the problem is not GWT.


Regards, Lothar
-- 
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.




Joseph Favara/HQ/Corp/OAI is out of the office.

2010-01-14 Thread Joseph . Favara

I will be out of the office starting  01/14/2010 and will not return until
01/15/2010.

I will respond to your message when I return. If this is urgnet please
contact Narayanan Pillai at 105986

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: GWT MySQL

2010-01-14 Thread ANDRES BRUN
Thanks everybody for your answers and I hope take a good decision. I like
PHP in the server because I think that is more speed than other technologies
but I like JSP/Servlets too. The server is Linux (Debian or Ubuntu) and the
DB is MySQL 5.

Thank you again.

On Thu, Jan 14, 2010 at 6:14 AM, Paul Robinson  wrote:

> ANDRES BRUN wrote:
> > Hello everybody
> >
> > Which is the better way for work with GWT and MySQL, jsp's, php's,
> > webservices or what? I want to access to MySQL from a GWT application
> > but I don't know which is the better way.
> >
> > Thank you for your words.
> >
> > Andres Brun
> >
> There is no "right" answer to this. It just depends on what server side
> technology you want to use. It seems most people here use a java server,
> some use php and some probably use something else. There are deployment
> differences (eg php is supported by dirt cheap hosting services) and
> development differences (eg java lets you use some of the same code in
> the client and the server).
>
> If there were a poll to find out how many people have chosen which
> method, it might be vaguely interesting, but still wouldn't tell you
> which method is the better.
>
> If you choose Java, then you may be interested in Hibernate and Gilead
> http://noon.gilead.free.fr/gilead/
>
> HTH
> Paul
>
> --
> 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.
>
>
>
>


-- 
ANDRES BRUN

WebSite Andres Brun http://www.andresbrun.tk
Blog - http://www.doyan.tk/
WebSite http://www.prolinetsystems.tk
GWT - http://groups.google.com/group/Google-Web-Toolkit?hl=en
-- 

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.

To post to this group, send email to google-web-tool...@googlegroups.com.

To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.



submitting a form using RPC

2010-01-14 Thread loucat
Hi all !

I'm having some problems with the communication client-server, i just
have to submit a form but I read it's better to use RPC so I've
deleted all the reference of FormPanel and trying to do it calling a
server, but it doesn't work :(

Am I supposed to pass all the fields of the form through the method of
the ServiceInterfaceAsync?
Up to now I'm trying to pass tha "name" field as a String parameter in
that method, but I always get back the "onFailure" result.

I think I configured everything properly but obviously I'm not sure
about it.
what url shoud I put here? ->  target.setServiceEntryPoint
(GWT.getModuleBaseURL() + "/provatesina/prenota");


This is the code I have in the main GWT class, it's inside the method
"onModuleLoad":


final PrenotaServiceAsync prenotaService = (PrenotaServiceAsync)
GWT.create(PrenotaService.class);
ServiceDefTarget target = (ServiceDefTarget) prenotaService;

target.setServiceEntryPoint(GWT.getModuleBaseURL() + "/
provatesina/prenota");



submit.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {

Window.alert("submitting the form");

prenotaService.prenota(nome.getText(), new
AsyncCallback () {
 public void onFailure(Throwable caught) {
   Window.alert("RPC to prenota() failed.");
 }
 public void onSuccess(String result) {
   lab.setText(result);
 }

});
};

});

-- 
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: MultiWordSuggestOracle and HTML display

2010-01-14 Thread Amos Sam
Well, I don't see any way without html tags. And with CSS style I
would have to use at least ; correct?
If you have some other ideas, you are welcome to tell them! :))
Also, the problem is also that only left aligned text should be
filtered...

I was hoping that i won't need to recode MultiWordSuggestOracle class,
but it seems that I will need to do it.
For my project I already created one widget, and it seems that there
is no end in modifying GWT to suit it my needs...
I don't like extGWT and similar projects, only 'main branch'...

Thank's anyway, and i will post my progress (if any! ;) ).

P.S. is any difference in GWT 2.0 ? currently i'm using 1.7.
-- 
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: Charset Problem

2010-01-14 Thread Martin Trummer
it's not enough to change the value of the content-type meta tag
your editor must also save the file in the corresponding content-type
in eclipse you can change the encoding of the file under File -
Properties - Resource

On 13 Jan., 21:41, nacho  wrote:
> Hi, i want to put a link like this:
>
> Hyperlink lnkBackToInbox = new Hyperlink("« Back to Inbox", "#");
>
> And in my hosted page i have the following line:
>
> 
>
> also i tried with
>
> 
>
> but when i put the link in the hosted page i get the following:
>
> Back to Inbox
>
> What i'm missing?
-- 
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: code splitting on smart gwt

2010-01-14 Thread mariyan nenchev
I think this is not possible, because smart gwt uses native wrappers.
On Thu, Jan 14, 2010 at 12:58 PM, ben fenster  wrote:

> how can i use code splitting on an external jar like smart gwt ?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>
>
-- 

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: Charset Problem

2010-01-14 Thread nacho
I tried but, GWT renders the link like this

laquo; Back to Inbox

:(

On Jan 13, 8:16 pm, Jeff Schwab  wrote:
> nacho wrote:
> > Hi, i want to put a link like this:
>
> > Hyperlink lnkBackToInbox = new Hyperlink("« Back to Inbox", "#");
> > but when i put the link in the hosted page i get the following:
>
> > Back to Inbox
>
> Could you just use the HTML entity for the symbol, rather than the
> actual code-point?
>
> new Hyperlink("« Back to Inbox", true, "#");
-- 
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.




code splitting on smart gwt

2010-01-14 Thread ben fenster
how can i use code splitting on an external jar like smart gwt ?
-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: UiBinder and FlexTable or Grid

2010-01-14 Thread nvrs
On Jan 6, 12:35 am, Thomas Broyer  wrote:

> There's only a single way currently: instanciate an empty FlexTable in
> UiBinder and then populate it in your Java code.
> Well, there's another: wrap your FlexTable code in a Composite and use
> the Composite in the UiBinder, but that's the same in the end.

I figured that out alright but it's sweeter than i originally thought.
As a matter of fact, if you instantiate a list of Widgets and a
FlexTable using UiBinder and then on the init code add the widgets to
the FlexTable, the Widgets show up in the FlexTable rows and not on
their container/parent!
Good thinking imho
-- 
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: SmartGWT?!

2010-01-14 Thread Sanjiv Jivan
As you mentioned in your previous mail, you are not a lawyer. So you can
come with theories and interpretations of LGPL and decide on use of a
library. I suspect you are a happy user of GWT and the widgets it provides
out of the box and that if you really wanted to use SmartGWT LGPL, you'd
consult the legal team of your company rather than speculation based on your
"non lawyer" interpretation of what really is pretty clearly spelled out in
the SmartGWT license file COPYING.html.

FYI Hibernate also adds the clarification on what they consider dynamic
linking and that use of Hibernate never affects the license of the users
code. https://www.hibernate.org/356.html
The SmartGWT license clarification was based on this. The use of Hibernate
is also not without caveats as you make it sound. Any application that users
Hibernate also runs into a gray area since due to dynamic proxying of
objects by Hibernate there is indeed modification involved. This is the very
reason that Hibernate too added the above license clarification.

If you are a user of Spring, Spring has a class
IdTransferringMergeEventListener
that extends org.hibernate.event.def.DefaultMergeEventListener and modifies
its runtime behavior.

Nobody is forcing anyone to use a free product - SmartGWT LGPL, and
similarly no favors are being done if anyone does chose to use the free
product.

This is getting off topic now. If anyone needs further LGPL clarifications
when using SmartGWT, feel free to post on the SmartGWT forum.

Sanjiv

On Thu, Jan 14, 2010 at 4:04 AM, Paul Robinson  wrote:

> Sanjiv Jivan wrote:
> > SmartGWT has had the same clause since for a long time now. Read the
> > actual license file - COPYING.html that is included in the SmartGWT
> > distribution.
> >
> >
> http://code.google.com/p/smartgwt/source/browse/trunk/distro-source/core/src/COPYING.html
> You're right. SmartGWT has modified/clarified their use of the LGPL
> specifically to cover this point.
> > It's worth noting that the widely used Hibernate library is also
> > licensed under LGPL terms.
> Yes, but Hibernate lives only on the server side, so doesn't suffer the
> same problem. The GWT-LGPL issue is strictly a client-side problem and
> this is why I'm happy to use Hibernate in my server code.
>
> Paul
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>
>
-- 

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.

To post to this group, send email to google-web-tool...@googlegroups.com.

To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.



SplitLayoutPanel children don't show up ???

2010-01-14 Thread shahid
I am trying to use the GWT 2 new SplitLayoutPanel for the first time
and I am adding 2 HTML widgets (north and center) to it but when I
browse to it, it always shows up empty !!! Here is how I am using it :

public Widget getInternalWidget(){

HTMLPanel mainPanel = new HTMLPanel("");
SplitLayoutPanel splitPanel = new SplitLayoutPanel();
splitPanel.addNorth(new HTML("summary text"), 250);
splitPanel.add(new HTML("Details panel"));
splitPanel.setSize("20em", "10em");
mainPanel.add(splitPanel, divId);
DecoratorPanel dp = new DecoratorPanel();
dp.add(this.mainPanel);
return dp;

}
-- 
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: TabLayoutPanel...

2010-01-14 Thread mariyan nenchev
You may want to debug with firebug, if the images are found.

On Thu, Jan 14, 2010 at 12:29 PM, Stine Søndergaard
wrote:

> Yup :) Except that I have a bit of a problem making the icons show up on
> the tabs ;D
>
> I am trying to make it work with...
>
>  private Label image = new Label();
>
>  private String inStyle = "blob";
>  private String outStyle = "blib";
>
> ... and...
>
> .blib {
> background: url(../images/emotion_unhappy_small.png) no-repeat left;
> width: 50px;
> }
>
> .blob {
> background: url(../images/emotion_happy_small.png) no-repeat left;
> width: 50px;
> }
>
> But no icons show up... until I change to for instance...
>
>  private Label image = new Label("*Sigh*");
>
> Hmm :)
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
-- 

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.

To post to this group, send email to google-web-tool...@googlegroups.com.

To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.



Request data

2010-01-14 Thread Olivier
Hi everyone,

I have a form that is send to request some data on the server. The result I 
need is a list of items and a list of filters.
What would better, sending one request that will get me both list or sending 2 
different requests, one for each list ?

Thanks
Oli

---
Olivier
Digiworks

Política de Protección de Datos de Carácter Personal
En cumplimiento de la Ley Orgánica 15/1999, de 13 de diciembre,  sobre 
protección de Datos de Carácter Personal (LOPD) DIGIWORKS SPAIN, S.L. informa a 
los usuarios de que:

Los Datos de Carácter Personal que recoge son objeto de tratamiento 
automatizado y se incorporan en los ficheros correspondientes,  debidamente 
registrados en la Agencia Española de Protección de Datos. El usuario podrá,  
en todo momento, ejercitar los derechos reconocidos en la LOPD, de acceso, 
rectificación, cancelación y oposición. El ejercicio de estos derechos puede 
realizarlo el propio usuario mediante comunicación escrita en la siguiente 
dirección postal:

DIGIWORKS SPAIN, S.L.
AVDA SAN RAFAEL, 11, LOCAL 2
03580 ALFAZ DEL PI
ALICANTE

También pueden ejercitar estos derechos en los términos que la normativa 
aplicable establece y que puede consultar en www.agpd.es.

-- 

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

2010-01-14 Thread Stine Søndergaard
Yup :) Except that I have a bit of a problem making the icons show up on the
tabs ;D

I am trying to make it work with...

 private Label image = new Label();

 private String inStyle = "blob";
 private String outStyle = "blib";

... and...

.blib {
background: url(../images/emotion_unhappy_small.png) no-repeat left;
width: 50px;
}

.blob {
background: url(../images/emotion_happy_small.png) no-repeat left;
width: 50px;
}

But no icons show up... until I change to for instance...

 private Label image = new Label("*Sigh*");

Hmm :)
-- 

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: Prevent class conversion when compiling modules

2010-01-14 Thread Chris Lercher
Just an idea - i haven't tried it: Can you mark your field transient,
but have getters/setters with JPA annotations which read/modify the
field?
-- 
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: TabLayoutPanel...

2010-01-14 Thread mariyan nenchev
Well, my code completely covers your needs.
Here is how to use it:
final ImagedTabPanel tab = new ImagedTabPanel();
VerticalPanel content1 = new VerticalPanel();
tab.add(content1, new ImagedTab("My Fancy Tab 1"));
final VerticalPanel content2 = new VerticalPanel();
tab.add(content2, new ImagedTab("My Fancy Tab 2"));
tab.selectTab(0);

On Thu, Jan 14, 2010 at 10:52 AM, Stine Søndergaard
wrote:

> But the example from the JavaDoc does not tell me how to make more complex
> tabs...
>
> Thanks a lot for your codes, Mariyan still I find it difficult to
> create a UI without it becoming a big mess ;)
>
> Thanks,
> Stine
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
-- 

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.

To post to this group, send email to google-web-tool...@googlegroups.com.

To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT MySQL

2010-01-14 Thread Paul Robinson
ANDRES BRUN wrote:
> Hello everybody
>
> Which is the better way for work with GWT and MySQL, jsp's, php's,
> webservices or what? I want to access to MySQL from a GWT application
> but I don't know which is the better way.
>
> Thank you for your words.
>
> Andres Brun
>
There is no "right" answer to this. It just depends on what server side
technology you want to use. It seems most people here use a java server,
some use php and some probably use something else. There are deployment
differences (eg php is supported by dirt cheap hosting services) and
development differences (eg java lets you use some of the same code in
the client and the server).

If there were a poll to find out how many people have chosen which
method, it might be vaguely interesting, but still wouldn't tell you
which method is the better.

If you choose Java, then you may be interested in Hibernate and Gilead
http://noon.gilead.free.fr/gilead/

HTH
Paul
-- 
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: SmartGWT?!

2010-01-14 Thread Paul Robinson
Sanjiv Jivan wrote:
> SmartGWT has had the same clause since for a long time now. Read the
> actual license file - COPYING.html that is included in the SmartGWT
> distribution.
>
> http://code.google.com/p/smartgwt/source/browse/trunk/distro-source/core/src/COPYING.html
You're right. SmartGWT has modified/clarified their use of the LGPL
specifically to cover this point.
> It's worth noting that the widely used Hibernate library is also
> licensed under LGPL terms.
Yes, but Hibernate lives only on the server side, so doesn't suffer the
same problem. The GWT-LGPL issue is strictly a client-side problem and
this is why I'm happy to use Hibernate in my server code.

Paul
-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Problem on create a tooltip!!

2010-01-14 Thread guaz wk
I want to create a tooltip similar with the Eclipse IDE, when mouse point to
a function name then it will popup a tooltip and if the mouse point to the
tooltip then the tooltip will remain open until we move out
the mouse pointer!!

So far, my tooltip will popup when the mouse point to a Image. I am not able
to do the one "point to tooltip, the tooltip will remain open until the
mouse pointer move out"

-- 
Best Regards,
Guaz Wei Kiat
-- 

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

2010-01-14 Thread Stine Søndergaard
But the example from the JavaDoc does not tell me how to make more complex
tabs...

Thanks a lot for your codes, Mariyan still I find it difficult to create
a UI without it becoming a big mess ;)

Thanks,
Stine
-- 

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: Problem with AjaxLoader and AJAX Feed API

2010-01-14 Thread ale
Ok, I will try (now I'm on an other pc, far from my project...)

It 'obvious that I can not use javascript from GWT :-), do yuo know
where can I  find a tutorial, or some doc?



thanks, thanks, thanks!

Ale

On Jan 14, 3:19 am, FKereki  wrote:
> I think you are forgetting to substitute $doc for document.
>
> Good luck!
> F.Kereki
-- 
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: Custom widgets and extended properties

2010-01-14 Thread Fazeel Kazi
Maybe you want something like what Messages interface provides.

http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/i18n/client/Messages.html



On Thu, Jan 14, 2010 at 3:24 AM, myapplicationquestions <
parag.bhag...@cgi.com> wrote:

> Hi All,
>
> I am trying to develop a custom widget, the behaviour of which can be
> controlled by external properties. For example this is what i want to
> do
>
> 1) create a new project
>
> 2) develop a simple widget which has 2 buttons YES and NO. the custom
> widgets have flags that say displayyes displayno by default both of
> them atre set to true.
>
> 3) i compile this project into a jar file.
>
> 4) Include this project in a different project by calling  tag.
>
> Now the questions is in the new project (step4) i want to be able to
> say
>
> 
>
>
> does GWT provide that flexibility?
> Thanks,
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>
>
-- 

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: Prevent class conversion when compiling modules

2010-01-14 Thread Warpitaly
Thanks for the reply.
We already used both Gilead and Dozer, but unfortunately Hibernate is
not Toplink: we need JPA2.

As regards the transient keyword, as per JPA specs it would apply to
the entity at whole (i.e., the field would not be persisted neither by
JPA).
"You can, however, override a field or property's default persistence
by marking it with the @Transient annotation or the Java keyword
transient."
(taken from http://java.sun.com/developer/technicalArticles/J2EE/jpa/
)

Hence, I'm not sure that the problem is solved...

On 13 Gen, 18:45, Chris Lercher  wrote:
> For Hibernate there's Gilead, which provides an @ServerOnly annotation
> (http://code.google.com/webtoolkit/articles/using_gwt_with_hibernate.html
> ). Maybe there exists a similar solution for TopLink?
>
> Also, have you actually tried the transient keyword? The DevGuide
> (http://code.google.com/webtoolkit/doc/latest/DevGuideServerCommunicat...
> ) says:
>
> "The transient keyword is honored, so values in transient fields are
> not exchanged during RPCs."
>
> This could indicate to gwtc, that it doesn't need to include the
> class, as long as it doesn't get instantiated anywhere in your client
> code.
-- 
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.