Re: Gwt server side in maven

2010-02-04 Thread Ignat Alexeyenko
Hi again,

So, how do you use maven?
Which output it gives to you?

Please post maven log.

--
Kind regards,
Ignat Alexeyenko

On Thu, Feb 4, 2010 at 2:38 PM, יוסף נוגידאת  wrote:

> hello Ignat
>
> No i do not have any errors
>
>
> On Thu, Feb 4, 2010 at 2:31 PM, Ignat Alexeyenko <
> ignatalexeye...@gmail.com> wrote:
>
>> Hi
>>
>> Do you have any errors during maven work?
>>
>> --
>> Kind regards,
>> Ignat Alexeyenko.
>>
>> On Thu, Feb 4, 2010 at 11:13 AM, joe7935  wrote:
>>
>>> Hello all,
>>> I try to build a project in maven and gwt with server side.
>>> so i select to use a gwt-maven-plugin archetype as a maven project .
>>>
>>> here is my app :
>>>
>>> public class Application implements EntryPoint
>>> {
>>>
>>>  public void onModuleLoad()
>>>  {
>>>  final Button button = new Button();
>>>  final Label label = new Label("only for test");
>>>
>>>
>>>  button.addClickHandler(new ClickHandler()
>>>  {
>>>public void onClick(ClickEvent arg0)
>>>{
>>>GetStringServiceAsync service =
>>> (GetStringServiceAsync)
>>> GWT.create(GetStringService.class);
>>>service.getString("1", "2",new
>>> AsyncCallback()
>>>{
>>>public void
>>> onSuccess(String res)
>>>{
>>>
>>>  label.setText(res);
>>>}
>>>
>>>public void
>>> onFailure(Throwable arg0)
>>>{
>>>
>>>  label.setText("Error Connection");
>>>}
>>>});
>>>}
>>>});
>>> RootPanel.get().add(button);
>>> RootPanel.get().add(label);
>>>  }
>>> }
>>>
>>>
>>>
>>> server interface :
>>>
>>> public interface GetStringService extends RemoteService
>>> {
>>>public String getString(String name, String pass);
>>> }
>>>
>>> public interface GetStringServiceAsync
>>> {
>>>void getString(String name,String pass,AsyncCallback
>>> callback );
>>> }
>>>
>>>
>>> server Impi..
>>> @SuppressWarnings("serial")
>>> public class GetStringImpl extends RemoteServiceServlet implements
>>> GetStringService
>>> {
>>>public String getString(String name, String pass)
>>>{
>>>return "Hello every body ...";
>>>}
>>> }
>>>
>>>
>>> POM file :
>>>
>>>
>>> 
>>> http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://
>>> www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://
>>> maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";>
>>>  
>>>  4.0.0
>>>  com.hp.bsrm
>>>  ttt
>>>  war
>>>  0.0.1-SNAPSHOT
>>>
>>>  
>>>
>>>  
>>>  2.0.0
>>>
>>>  
>>>  1.5
>>>  1.5
>>>
>>>  
>>>
>>>  
>>>
>>>  
>>>
>>>  com.google.gwt
>>>  gwt-servlet
>>>  ${gwt.version}
>>>  runtime
>>>
>>>
>>>  com.google.gwt
>>>  gwt-user
>>>  ${gwt.version}
>>>  provided
>>>
>>>
>>>
>>>
>>>  junit
>>>  junit
>>>  4.7
>>>  test
>>>
>>>  
>>>
>>>  
>>>war/WEB-INF/classes
>>>
>>>  
>>>org.codehaus.mojo
>>>gwt-maven-plugin
>>>1.2
>>>
>>>  
>>>
>>>  compile
>>>  test
>>>
>>>  
>>>
>>>
>>>  com.hp.bsrm.ttt.Application/Application.html>> runTarget>
>>>
>>>  
>>>  
>>>  
>>>org.mortbay.jetty
>>>maven-jetty-plugin
>>>6.1.19
>>>
>>>
>>>>> implementation="org.mortbay.resource.ResourceCollection">
>>>
>>>src/main/webapp,$
>>> {project.build.directory}/${project.build.finalName}
>>>   
>>>
>>>
>>>
>>>
>>>
>>>
>>>  
>>>  org.apache.maven.plugins
>>>  maven-compiler-plugin
>>>  2.0.2
>>>  
>>>${maven.compiler.source}
>>>${maven.compiler.target}
>>>  
>>>  
>>>
>>>  
>>>
>>> 
>>>
>>>
>>> web.xml file :
>>>
>>> 
>>> >>PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
>>>"http://java.sun.com/dtd/web-app_2_3.dtd";>
>>>
>>> 
>>>
>>>  
>>>  
>>>greetServlet
>>>com.hp.bsrm.ttt.server.GreetingServiceImpl>> class>
>>>  
>>>
>>>  
>>>greetServlet
>>>/ttt/greet
>>>  
>>>
>>>  
>>>  
>>>Ttt.html
>>>  
>>>
>>> 
>>>
>>>
>>> I try to run the project in debug mode , when i try to get to server
>>> the project fielad
>>>
>>>
>>> please me.
>>> thanks
>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Google Web Toolkit"

Re: MVP with GWT 2.0/UiBinder could be simplified

2010-02-04 Thread mahjong
Thanks for the reply but some clarification seems to be needed here.
First of all I am not against the current MVP "best practice" at all
(I used it all the time with GWT 1.x). What my post concerned is
really these:
(1) most frameworks inspired by the Ray Ryan talk were pre-dated GWT
2.0 where UiBinder came to life
(2) with UiBinder in hand, whether and how (if it makes sense) to make
MVP even more straight forward

My argument is that, with UiBinder approach, MyView.ui.xml is pretty
much doing the view while MyView.java is already doing only event-
related processing, with none or minimal UI stuff. I wonder if
anything could be done to further clean up MyView.java (which usually
extends Composite type of container and also handles UI-level events).
Without using a 3rd party framework like gwt-presenter, GWT itself
does NOT enforce an MVP practice. But I think that GWT can go a step
forward to combine a lightweight presenter framework, which works best
with UiBinder.

At least at this point I haven't seen a Google paper/web page
discussing the "best practice" of doing MVP wiith UiBinder - take a
look at the end of this page here -
http://code.google.com/webtoolkit/doc/latest/tutorial/mvp-architecture.html,
Google DOES mention it wants to further elaborate on MVP+UiBinder. But
probably it hasn't had the chance to summarize it? Or thoughts still
have to be developed/speculated at this point?

I hope to make myself clear here that when using a gwt-presenter type
of framework along with UiBinder, we are dealing with two injection
systems, one from Gin and one from UiBinder. Not that we cannot handle
this, but wouldn't it be simpler to combine them? or at least to have
a "best practice" to use them simultaneously? I would like to hear if
anyone has had any experience to share, before Google's "guideline"
comes out.

There is no point of arguing the usefulness of presenter - I use it
heavily. To even simplify my question, how do you inject/create a
presenter, in the UiBinder context? I have ways of doing it but I
would like to find out an elegant way.

Thoughts?

On Feb 4, 6:05 pm, Thomas Broyer  wrote:
> On Feb 3, 5:51 am, mahjong  wrote:
>
>
>
> > Personally, I don't like the "Presenter.Display" approach where you
> > define a bunch of methods returning "HasClickHandler", "HasText",
> > "HasValue" type of things - though the presenter no longer cares about
> > the UI layout, it still needs to know about the component types in
> > that UI. How clean is such a separation?
>
> > To summarize, I would like to leverage UiBinder as View, and its
> > corresponding same-name java class as Presenter, and fire events
> > directly inside "@UiHandler" annotated methods. And that's it.
>
> > Any thoughts, anyone?
>
> The whole point of MVP *in GWT* is to make the presenter only depend
> on "pure Java" classes, so you can unit test it in pure Java (no
> GWTTestCase involved), which saves you precious seconds.
> The goal is absolutely not to make it possible to exchange the view
> with another implementation.
>
> In practice, it also happens that you generally deal with styling et
> al. in response to events; this much better fits in the view than in
> the presenter where you won't be interested into such details (the
> presenter doesn't care whether "view.highlight()" sets borders, a
> different background, makes text bold or blinking, either by
> manipulating the widget's getElement().getStyle() or setStyleName();
> the presenter doesn't care whether a "button" is actually a Button or
> a PushButton, or a Label or HTML, provided it HasClickHandlers; etc.)
>
> It's all about pragmatic, not at all about overengineering. The idea
> is to have as much things as possible in the presenter so you can unit
> test it, but nothing that depends on JSNI (i.e. no Widget) so you can
> unit test in pure Java.
>
> You should really (re)watch Ray Ryan's 
> talk:http://code.google.com/events/io/2009/sessions/GoogleWebToolkitBestPr...
>
> But in the end, this is all just a suggestion. You should do what you
> think is OK, not what people tell you is OK. (but if you refuse to
> follow some "best practice", you'd better understand what it's meant
> to be useful for, what problems it addresses, etc. and compare this to
> the pros and cons of your own approach before making a choice)

-- 
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: Source code availability to the GWT Compiler

2010-02-04 Thread Gal Dolber
Yes.. the GWT compiler needs to have available the java source code to work

2010/2/4 Micah 

> I currently have a GWT app that I'm looking to break into separate
> modules.  The build system is currently Maven2 and utilizing the gwt-
> maven-plugin[1].  When reading over the documentation on how to do
> this, I wonder what exactly are the requirements around the source
> code for a module being available for packaging another module.  Does
> the source (*.java)  have to be in the same jar or does it just have
> to be on the classpath?
>
> Maven's general approach is to make source available in a secondary
> artifact using the maven-source-jar[2].  This is nice because it
> removes bloat from my endstates but also I don't have to worry about
> shipping source code to each of my clients.
>
> So do I have to have *.java files in my jar or are there other means
> of accomplishing this to make the GWT compiler happy?
>
> Thanks for your help,
> Micah
>
> [1] -
> http://mojo.codehaus.org/gwt-maven-plugin/user-guide/multiproject.html
> [2] - http://maven.apache.org/plugins/maven-source-plugin/jar-mojo.html
>
> --
> 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: upgrade gwt 1.5 to 1.6 help!!

2010-02-04 Thread Gal Dolber
I recommend you to go straight to GWT 2.0. Just update the SDK and find the
deprecated's in your code.
The biggest problem you can have is with the ImageBundle, now you have to
use ClientBundle.
Also I don't remember if the Listeners -> Handlers transition was before of
after 1.6 ...
Anyway... you won't regret it
Best

2010/2/4 asle 

> Hello:
>
> We have a problem to upgrade gwt , and folowing the steps in
>
> http://code.google.com/intl/es/webtoolkit/doc/1.6/ReleaseNotes_1_6.html#Upgrading
> .
> The first step is ok, but de second step:
> Switch from GWTShell to HostedMode i am not understand how i do,
> because i do not know where  directory is the main class for swich.
> I need you help for indications to change the main class because i
> need folowing the steps for upgrating my project:
> "In order to eliminate this warning, change your main class from
> com.google.gwt.dev.GWTShell to com.google.gwt.dev.HostedMode"
>
> When i run the project, indicate this warning:
>
> WARNING: 'com.google.gwt.dev.GWTShell' is deprecated and will be
> removed in a future release.
> Use 'com.google.gwt.dev.HostedMode' instead.
>
>
> Sorry for the writing,  but i am not speak english
> 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: Hiding server-side code from the client?

2010-02-04 Thread Gal Dolber
I am 99% sure that if you don't use the method on the client the GWT
compiler will erase it. Regards

2010/2/4 Axel Rauschmayer 

> Use case: a data object has some methods that only the server needs.
>
> I'm currently using my own tool to create patched versions of a class
> with server-only code. It removes methods annotated with @GwtIgnore
> and places the result so that it overrides the server version whenever
> GWT is involved.
>
> Is this the best way of solving this problem?
>
> Maybe inheritance can be used (adding the additional methods to a
> server-only subclass), but that does not solve this issue if an
> inheritance chain is involved and several members of that chain have
> server-only code.
>
> Axel
>
> --
> 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.



NumberFormat problems(8 decimal places)

2010-02-04 Thread Tercio
Hi!

I have a NumberFormat with 8 decimal places, that the code:

NumberFormat format = NumberFormat.getFormat("#,##0.");
System.out.println(format.format(1234.5678d));

When I run, it prints: "1,234.7852517"

But should print: "1,234.5678"

If I reduce the zeros to 6, it works("1,234.567800")

Is this a bug or I'm doing something wrong?

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.



verttical scroll panel jumping around in 2.0

2010-02-04 Thread Calin M
Hi,

I have an application with a vertical split panel. Inside the left
pane I have a tree and its leafs are links. Sometimes the links are
too long and a horizontal scrollbar is created.

Since I upgraded to 2.0, whenever I click on a link, the horizontal
scrollbar repositions itself such that the right side of my link is
visible. This did not happen before and it's anoying to have the
scrollbar jump when you click on it. Is there anything I can do?

Thank you,

Calin

-- 
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: Ext/GXT/ExtGWT v2.1.0 vs. SmartGWT v2.0

2010-02-04 Thread Bogdan Maryniuck
On Thu, Feb 4, 2010 at 6:25 PM, mariyan nenchev
 wrote:
> Yes it has very fancy widgets but the integration with the server side is
> killing unless you decide to purchase pro/ee, which is why it is done that
> way, to show the devs how rich library it is and when they began to use it
> they understand that they must buy pro/ee else they will code hundreds lines
> of code to do something simple. No body told me how many steps are needed to
> list some data in table if your backend is EJBs and you are using GWT-RPC?

Dude, but after all, SmartGWT so far is the best among others, despite
its somewhat tragifunky API. Yes, for us, who are doing Swing as well,
SmartGWT is quite painful, although it intended to be like Swing for
Web. Yes, method names are wicked, composing widgets is weird etc. And
there is also a number of reasons why they're done this way — hence
let's don't regard them as fools — the guys, actually doing awesome
job. Because what else on the market is available right now that could
solve a huge number of a problems that we facing every day, making
enterprise software for the Web?

Personally I don't like concentrating on JavaScript horror and prefer
Java Swing over JNLP in most cases. In Enterprise controlled internal
network we never allow web stuff — there is only Swing and it works
rock stable. But it requires very clean and highly controlled
networks. Since outside the company, in the wild world, there are
anything you might expect, so browsers + JavaScript + HTML is the only
way. However, it is horrific way to make UIs, has no real standards,
is very unpredictable, slippery and unreliable.

So let's better think how we can help them instead, because everyone
can bashing things: that's no brainer...

-- 
bm

-- 
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: using ClientBundle for a themeable image set

2010-02-04 Thread Bob
Nobody? :-(

On Feb 3, 10:40 am, Bob  wrote:
> Hi,
>
> I have a set of static objects which are retrieved from the server and
> rendered in a custom widget on the client.  Each of these objects has
> an image associated with it.  I want these images to be themeable,
> such that the entire set of images used for these objects can be
> swapped out.  For example, say there is a Cat object and a Dog object,
> and there is a 'domestic' theme and a 'wild' theme.   The theme is a
> user option.  If the wild theme is selected, the images should be a
> cheetah and a dingo.  With the domestic theme they would be a calico
> cat and a golden retriever.
>
> My thought was that I could distribute these image themes as
> ClientBundles.  So I implemented something like this:
>
> public interface ImageTheme {
>     ImageResource cat();
>     ImageResource dog();
>
> }
>
> public interface WildImageTheme extends ClientBundle, ImageTheme {
>     @Source("cheetah.jpg")
>     ImageResource cat();
>
>     @Source("dingo.jpg")
>     ImageResource dog();
>
> }
>
> public interface DomesticImageTheme extends ClientBundle, ImageTheme {
>     @Source("calico.jpg")
>     ImageResource cat();
>
>     @Source("golden-retriever.jpg")
>     ImageResource dog();
>
> }
>
> But then I end up needing some ugly and hard-to-maintain binding code
> on the client like this:
>
> public static ImageTheme CURRENT_THEME = (ImageTheme) GWT.create
> (DomesticImageTheme.class)
>
> public ImageResource getImageResource(String animalName) {
>     if ("Cat".equals(animalName)) {
>         return CURRENT_THEME.cat();
>     } else if ("Dog".equals(animalName)) {
>         return CURRENT_THEME.dog();
>     }
>     [...]
>
> }
>
> If it were available to me, I could use reflection to bind the animal
> names to matching method names, but obviously it isn't.  Deferred
> binding is described as GWT's answer to reflection, but does it fit
> here?  Is my ClientBundle as theme pack paradigm flawed?  Does anyone
> have a suggestion for a better way to accomplish this?
>
> Thanks,
> Bob

-- 
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.1 out but Eclipse says "There is nothing to update"

2010-02-04 Thread Sky
Go to Help -> Install new software...
then choose "Google Plugin - http://dl.google.com/eclipse/plugin/3.5";
from the drop down or else add it if it isn't already there. It should
show both the App Engine and GWT under SDKs.

Check SDKs and click Next.

I had the same thing as you, but this way worked for me.
Hope this helps.

On Feb 4, 6:15 pm, Jaroslav Záruba  wrote:
> I"ve just noticed GWT 2.0.1 has been released, so I wanted to check
> how does "my" bug do in the new release, but Eclipse says there's
> nothing to update from the update site.
>
> When I browse available software from Google within "Available
> Software" the new version is actually listed (also when I check "Hide
> items that are already installed").
>
> Am I the only one experiencing this? Am I missing something?
>
> Regards
>   J. Záruba

-- 
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: BUG(chrome): TextBox inside FocusPanel can't be clicked

2010-02-04 Thread Sky
Fixed! GWT 2.0.1 solved the problem. Good job GWT development team!
Very much appreciated!

On Jan 19, 9:53 pm, Sky  wrote:
> Hi Thomas, thanks for your reply!
>
> I copied/pasted the xml you gave into my gwt.xml file and the DevMode
> was unable to find it. Here is the error:
>
> "[ERROR] [myproject] Unable to find 'myproject.gwt.xml' on your
> classpath; could be a typo, or maybe you forgot to include a classpath
> entry for source?"
>
> The xml you gave me was the only change that resulted in that error.
> Any idea what I might be doing wrong? I put it inside of 
> right at the end.
>
> Many thanks :)
>
> On Jan 17, 9:51 am, Thomas Broyer  wrote:
>
>
>
> > On Jan 17, 2:34 am, Sky  wrote:
>
> > > The following is a bug that only occurs in Chrome and therefore may be
> > > a Chrome bug and not a GWT bug.
>
> > > If I create a FocusPanel and place a TextBox inside it, it takes
> > > several (more than 4) mouse clicks on the TextBox to give focus to the
> > > TextBox so you can start typing. This problem does not exist in IE nor
> > > FF.
>
> > > This is easily reproducible. I created a new blank project and simply
> > > put a TextBox inside a FocusPanel.
>
> > > I want to find a workaround. If anyone can help me find one, that
> > > would be great!
>
> > > I currently do not know what is causing the problem, but I am curious
> > > as to the existence of the  that is created as the
> > > first inner child of all FocusPanel divs. I do not understand why that
> > > is necessary. Any DIV can have the key events, mouse events and focus
> > > events added to them, so why is that invisible input needed?
>
> > > I am thinking of writing my own version of the FocusPanel, but I'm not
> > > going to do that right away.
>
> > It looks like issue 1471 which will be fixed in the upcoming GWT 2.0.1
> > release:http://code.google.com/p/google-web-toolkit/issues/detail?id=1471
>
> > The workaround for now (accesskeys won't work though, and the
> > FocusPanel won't be focusable in Safari 3) is to add the following to
> > your gwt.xml:
> >    
> >        > name='com.google.gwt.user.client.ui.impl.FocusImpl' />
> >       
> >    

-- 
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: Blur event on FocusPanel is triggered immediately following MouseDown event

2010-02-04 Thread Sky
FIXED! GWT 2.0.1 fixed all of these issues!!! I am so incredibly
happy! Well done, GWT team! Pat on the back! Good job!

I hope you (GWT development team) feel appreciated for your hard work!

cheers!

On Feb 1, 7:04 pm, Sky  wrote:
> Wow! Now another FocusPanel's MouseDown event doesn't even fire!
> Except I can make it fire if I do the following. When I click on this
> element (object B) another element (object A) is losing focus, so if I
> put a breakpoint in the onBlur event on that item (object A), then
> when I click on the other item (object B) Eclipse breaks into that
> code, I hit F8 to continue and what do you know, the MouseDown event
> actually fires and everything runs. Do you understand? The MouseDown
> event on object B ONLY fires if I have a breakpoint in OnBlur event
> for object A!
>
> These problems are ONLY in chrome. All other browsers act as expected.
>
> I can't possibly fix something like this. Can anyone help me? These
> problems must be a GWT bug(s).
>
> I'm using GWT 2.0.0, the latest Eclipse, Stable channel of Chrome.
>
> On Feb 1, 6:15 pm, Sky  wrote:
>
>
>
> > I click on my FocusPanel and before MouseUp event fires, but after
> > MouseDown event, the Blur event is fired, which is very much
> > undesired.
>
> > This only happens in Chrome, so it may be a Chrome bug. It does not
> > happen in FF and IE.
>
> > It may be my fault, but I am not explicitly setting focus on any
> > elements in my MouseDown code. I do set other aspects of other
> > elements, like visibility.
>
> > Has anyone else experienced something like this before?

-- 
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.1 out but Eclipse says "There is nothing to update"

2010-02-04 Thread Jaroslav Záruba
I"ve just noticed GWT 2.0.1 has been released, so I wanted to check
how does "my" bug do in the new release, but Eclipse says there's
nothing to update from the update site.

When I browse available software from Google within "Available
Software" the new version is actually listed (also when I check "Hide
items that are already installed").

Am I the only one experiencing this? Am I missing something?

Regards
  J. Záruba

-- 
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-02-04 Thread Andrew Hughes
Any improvements in GWT-Maven support from Google would be excellent! Google
are 'maven friendly' :) THANKS KEITH AND OTHERS!

I can't speak highly enough of Maven. It's an instant injection of mature
engineering practices for projects and companies alike.  It's a shame it has
becoming increasingly difficult to work with GWT (2.0) in this (widely
accepted) lifecycle manager / project config.

If I was to give Google an example of what "they're missing" (not just for
GWT) I'd ask them to please have a look at this:
http://appfuse.org/display/APF/Home


Cheers and looking forward to future :)

p.s. thanks again Keith :)


On Fri, Feb 5, 2010 at 6:03 AM, Keith Platfoot  wrote:

> Yes, I've been meaning to reply back to this thread.  Thanks for reminding
> me, Brian! :-)
>
> Our plans for the next release of the Google Plugin for Eclipse (1.3)
> include 4 changes designed to make integration with Maven and J2EE projects
> easier:
>
>1. The WAR directory can now be configured to be *any* project-relative
>path (e.g. src/main/webapp if you're using Maven).  You'll also be able
>to specify whether that directory is source-only (typical Maven/J2EE
>scenario), or whether it should also function as the WAR output directory
>from which to run/debug or deploy to App Engine.  If your WAR directory is
>input *and* output (which will remain the default for new Web App
>projects), the plugin will manage synchronizing the contents of WEB-INF/lib
>WEB-INF/classes with your project's build path and compiled output.
> Otherwise, we'll leave your WAR source directory alone and you'll need to
>specify your WAR output location when launching, deploying, etc (the plugin
>will remember the location once you set it the first time).
>2. The Web App launch configuration UI is being redesigned to allow you
>to see, and if necessary change, *any* of the launch arguments.
> Previously, we were waiting until launch time to set many of these
>arguments based on heuristics that were invisible and inaccessible to you.
> Now you'll be in full control of how your projects get launched.  Also,
>we're adding the capability to automatically migrate your launch
>configurations when necessary, for example, updating the -javaagent flag
>when changing App Engine SDKs.
>3. GWT/App Engine projects will no longer require our SDK library on
>the classpath.  This means Maven users will be able to pull in JAR files
>from their M2 repository as they're accustomed to and the plugin won't mind
>a bit.
>4. The severity of any problem marker generated by the plugin will be
>fully customizable via an Errors/Warnings preference page (similar to the
>Java Errors/Warnings page), letting you specify either Error, Warning, or
>Ignore.
>
> We'll also be including a few smaller features and bug fixes as well.
>
> What does everyone think about the 4 changes outlined above?  We've been
> testing the plugin against various Maven and J2EE configurations to try to
> ensure that we've eliminated the most critical roadblocks.  However, we're
> very interested in also having you folks take it for a spin before the
> official release date (slated for next month).  We're not quite ready yet,
> but stay tuned for a 1.3 preview build to be made available hopefully in a
> few weeks.  We'll distribute it as a zip file for dropin 
> installation so
> it will come with the standard warnings and caveats (use with a clean
> Eclipse install and workspace, use at your risk, etc.).  However, it will
> hopefully give you a chance to give us any last-minute feedback about our
> changes before the final release.
>
> Thanks,
>
> Keith
>
> On Thu, Feb 4, 2010 at 12:55 PM, bkbonner wrote:
>
>> Keith, are you going to give the folks who replied to your message
>> some sort of thoughts on what you're going to implement and hopefully
>> let us try it before you end up releasing the next release of the
>> plugin?
>>
>> Brian
>>
>> 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

Re: GWT 2 - Different behavior when using DevMode/draftCompile then in Production mode

2010-02-04 Thread Steve Lancey
Just one more piece of information:

After removing the final and assigning the variable to itself we got
the same behavior in DevMode and Production Mode
String uniqueId = DOM.createUniqueId();
uniqueId = uniqueId;

It seems that the problem lies with the optimizer.

Anyone else faced similar issues?

Steve

On Feb 4, 1:12 pm, Steve Lancey  wrote:
> Hi,
>
> We are experiencing a strange problem: We have a piece of code in our
> application that is generating a html string which we are displaying
> at one point in the application flow.
> With GWT 1.5.x - GWT 1.7.x this worked without any issues. Moving to
> GWT 2 this functionality is broken:
> As a matter of fact, it is working in DevMode or with -draftCompile or
> with -style = Detailed || pretty, but NOT in production mode.
>
> E.g. one of the things that happen in production mode: a final
> variable (final String uniqueId = DOM.createUniqueId();) becomes null
> at one point. How is this even possible?
>
> Thanks + Regards,
>
> Steve

-- 
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: Deprecation warning

2010-02-04 Thread cretz
Nope, even @Deprecated isn't an acceptable workaround :-(

On Feb 4, 4:20 pm, cretz  wrote:
> I have a class w/ a couple of static JSNI methods referencing itself.
> I deprecated the class, but when the GWT compiler comes across my
> static JSNI method in the deprecated class, it shoots out a warning
> saying I am referencing a deprecated class like so:
>
>       [WARN] Warnings in 'file:/C:/dir/src/package/ClassFile.java'
>          [WARN] Line 42: Referencing deprecated class
> 'package.ClassFile'
>
> This should be consistent with Java and not give a deprecation warning
> if it's referencing itself. This can be worked around w/ a
> @SuppressWarnings("deprecation"), but Eclipse doesn't like that. Only
> workaround for now is to add @Deprecated to the JSNI methods. This
> prolly isn't worth a bug entry, just posting here for anyone else
> needing to know.

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



Deprecation warning

2010-02-04 Thread cretz
I have a class w/ a couple of static JSNI methods referencing itself.
I deprecated the class, but when the GWT compiler comes across my
static JSNI method in the deprecated class, it shoots out a warning
saying I am referencing a deprecated class like so:

  [WARN] Warnings in 'file:/C:/dir/src/package/ClassFile.java'
 [WARN] Line 42: Referencing deprecated class
'package.ClassFile'

This should be consistent with Java and not give a deprecation warning
if it's referencing itself. This can be worked around w/ a
@SuppressWarnings("deprecation"), but Eclipse doesn't like that. Only
workaround for now is to add @Deprecated to the JSNI methods. This
prolly isn't worth a bug entry, just posting here for anyone else
needing to know.

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



Exceptions in Event Handlers(inner classes) are not shown by Dev Mode Panel in Eclipse!

2010-02-04 Thread J-Pro
Good afternoon, dear GWT group members!

I've noticed that if I create an event handler, for example

ButtonItem btnSubmit = new ButtonItem();
btnSubmit.addClickHandler(new
com.smartgwt.client.widgets.form.fields.events.ClickHandler()
{
@Override
public void
onClick(com.smartgwt.client.widgets.form.fields.events.ClickEvent
event)
{
  int i = 5/0;
}
});

I can't see the problem in the Development Mode Panel in the Eclipse.
The last record there is "Module has been loaded". The application
itself behaves just as if nothing happened. You can try it by
yourself.

But if only I put "int i = 5/0;" after ButtonItem declaration, i.e.
not in inner class, the exception will be described in Development
Mode Panel.

Having this, it's very hard to catch errors... Can you advise anything
to me? Or is it a bug?


I use Eclipse 3.5 SR1, Google Plugin 1.2.0, GWT Toolkit SDK 2.0.1,
smartgwt 2.0, latest Firefox and Windows 7 x64 Ultimate.

Thank you very much in advance!

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-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.



Testing Methodologies Using Google Web Toolkit

2010-02-04 Thread Sesha
Hi,

Am new to GWT/MVP and was going through the tutorials. I was trying to
get hold of the source code illustrated in the tutorial at
http://code.google.com/webtoolkit/articles/testing_methodologies_using_gwt.html
by Sumit Chandel.

Where can I get hold of the source code for the same?

Thanks,
Sesha

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



Hiding server-side code from the client?

2010-02-04 Thread Axel Rauschmayer
Use case: a data object has some methods that only the server needs.

I'm currently using my own tool to create patched versions of a class
with server-only code. It removes methods annotated with @GwtIgnore
and places the result so that it overrides the server version whenever
GWT is involved.

Is this the best way of solving this problem?

Maybe inheritance can be used (adding the additional methods to a
server-only subclass), but that does not solve this issue if an
inheritance chain is involved and several members of that chain have
server-only code.

Axel

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



Source code availability to the GWT Compiler

2010-02-04 Thread Micah
I currently have a GWT app that I'm looking to break into separate
modules.  The build system is currently Maven2 and utilizing the gwt-
maven-plugin[1].  When reading over the documentation on how to do
this, I wonder what exactly are the requirements around the source
code for a module being available for packaging another module.  Does
the source (*.java)  have to be in the same jar or does it just have
to be on the classpath?

Maven's general approach is to make source available in a secondary
artifact using the maven-source-jar[2].  This is nice because it
removes bloat from my endstates but also I don't have to worry about
shipping source code to each of my clients.

So do I have to have *.java files in my jar or are there other means
of accomplishing this to make the GWT compiler happy?

Thanks for your help,
Micah

[1] - http://mojo.codehaus.org/gwt-maven-plugin/user-guide/multiproject.html
[2] - http://maven.apache.org/plugins/maven-source-plugin/jar-mojo.html

-- 
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: Ext/GXT/ExtGWT v2.1.0 vs. SmartGWT v2.0

2010-02-04 Thread ckendrick
@Jeff, ahhughes: as far as the built-in GWT widgets, they are well-
designed and fine for simple things, but if your requirement is to
have a grid that supports full-row inline editing, grouping,
filtering, frozen columns, paging through large datasets, resizable/
reorderable headers with persistence, nested headers, all of this
active at once - or if you need even a significant subset of this
functionality - this will take you a minimum of 2 years with core GWT
and you will achieve it really only with a ground-up custom widget
that you will need to maintain.  So it's just a matter of recognizing
that many people have requirements that go way, way beyond the core
GWT widgets.  Google employees have posted a number of times
acknowledging this.

Note that even if you don't have hard requirements for these features,
the fact is that they make your application better, and you will never
have to deal with a user request for such a feature: it's already
there.

ahhughes as far as your #2, please point to examples.  Almost everyone
who has *actually tried* SmartGWT remarks on the extremely low number
of bugs.

@Tercio, mariyan: unclear on why you found server integration with the
SmartGWT LGPL version difficult.  All you need to do is expose your
EJBs as REST services and there are countless tutorials on the web on
how to do this, as well as frameworks that can do this from Java
annotations.  People achieve this all the time.

Tercio in particular, I'm guessing this was you:

http://forums.smartclient.com/showthread.php?t=5632

You took the wrong approach, and our Support staff told you it wasn't
a good idea and gave you appropriate alternatives.

As far as "useless" features, if you think they're useless, you
frankly have not absorbed what they actually do.  Remember, Isomorphic
is a consulting company too.  We build applications in defense, life
sciences, insurance, financials and many other verticals.  We use the
features of Pro/EE *every single time*.

-- 
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: "fixing" javascript method names

2010-02-04 Thread Ryan Heaton
Thanks for your reply. But I'm having trouble understanding your code.

The "publishGetStuff" method refers to $entry. What is that?

The "staticGetStuff" method refers to a variable "service". Where is
that variable stored?

It looks like when users call $wnd.getStuff then they have to pass in
a function, when I want them to pass in an object with a function
defined that matches the name of MyCallback.onSuccess method.

Thanks-

-Ryan



On Feb 4, 10:52 am, Thomas Broyer  wrote:
> On Feb 4, 5:54 pm, Ryan Heaton  wrote:
>
>
>
> > Hi.
>
> > Here's my problem. I've got a GWT client-side service method that
> > makes a remote call to a server. Since the result of the remote call
> > is returned asynchronously, the service method takes a "callback" as a
> > parameter. It's basically just an interface with two methods
> > "onSuccess" and "onFailure".
>
> > So everything works great when invoking the service from GWT code, but
> > the problem is exposing this service method to be invokable by a
> > separate javascript library. Exposing the service method is possible
> > with tools akin to GWT exporter, but the problem is with the callback.
> > The "onSuccess" and "onFailure" methods are obfuscated by the compiler
> > so I have no reliable way to create a callback object from handwritten
> > javascript that will work when that method is invoked.
>
> > Here's an example for the sake of clarity. Let's say I've got a
> > service interface defined like this:
>
> > public interface MyService {
> >   void getStuff(new MyCallback());
>
> > }
>
> > And the "MyCallback" interface is defined like this:
>
> > public interface MyCallback {
> >   void onSuccess(Stuff stuff);
>
> > }
>
> > Let's say I bind the "getStuff" method to a javascript method of the
> > same name. I can then invoke the method from javascript, but I have no
> > way of reliably constructing an instance of "MyCallback" from
> > javascript because I don't know what the "onSuccess" method will be
> > named in javascript after is passes through the GWT compiler.
>
> > What I'd really like is to be able to define my callback like this:
>
> > public interface MyCallback {
> >   @PreserveMethodName //or some annotation like that.
> >   void onSuccess(Stuff stuff);
>
> > }
>
> > And then my javascript would look something like:
>
> > var callback = {};
> > callback.onSuccess = function(stuff) {...}
> > getStuff(callback);
>
> > Thoughts? Any suggestions for me?
>
> Something like this maybe (not tested, just an idea):
>
> private static void publishGetStuff(MyService service) /*-{
>    $wnd.getStuff = $entry(@my.package.Foo::staticGetStuff(Lcom/google/
> gwt/core/client/JavaScriptObject;));
>
> }-*/;
>
> private static void staticGetStuff(final JavaScriptObject onSuccessFn)
> {
>   service.getStuff(new MyCallBack() {
>     public void onSuccess(Stuff stuff) {
>       nativeOnSuccess(onSuccessFn, stuff);
>     }
>     private void native nativeOnSuccess(JavaScriptObject onSuccessFn,
> Stuff stuff) /*-{
>        onSuccessFn(stuff);
>     }-*/;
>   }
>
> }
>
>

-- 
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: forget DTO, Dozer and Gilead use @GwtTransient [tested on GWT 2.0.X]

2010-02-04 Thread Ed
Thanks for the idea Diego
This is nice for Hello World applications, but not for Enterprise like
apps with all kind of decouples buses/queues and security
restrictions

Thanks anyway :)

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



JSONParser bug ?

2010-02-04 Thread Costa
I have attempted the following code snippet:

String data = "new $wnd.Date(2010,0,28,17,8,48,0)";
JSONValue value = JSONParser.parse(data);

To my dismay it returns a JSONNumber !!

Now I looked in the source code (JSONParser.java: parse, evaluate &
createObject) and I created the following test program.


String data = "new $wnd.Date(2010,0,28,17,8,48,0)";
myParser(data);
...

  private native void myParser(String data) /*-{
var x = eval('(' + data + ')');
$wnd.alert(" typeof = " + typeof x + ", valueOf = " +
x.valueOf());

  }-*/;


The alert displays typeof = object and in valueOf = 1264727328000.

Because typeof = object the execution flow calls createObject:

private static native JSONValue createObject(Object o) /*-{
if (!o) {
  return @com.google.gwt.json.client.JSONNull::getInstance()();
}
var v = o.valueOf ? o.valueOf() : o;
if (v !== o) {
  // It was a primitive wrapper, unwrap it and try again.
  var func =
@com.google.gwt.json.client.JSONParser::typeMap[typeof v];
  return func ? func(v) :
@com.google.gwt.json.client.JSONParser::throwUnknownTypeException(Ljava/
lang/String;)(typeof v);
} else if (o instanceof Array || o instanceof $wnd.Array) {
  // Looks like an Array; wrap as JSONArray.
  // NOTE: this test can fail for objects coming from a different
window,
  // but we know of no reliable tests to determine if something is
an Array
  // in all cases.
  return @com.google.gwt.json.client.JSONArray::new(Lcom/google/
gwt/core/client/JavaScriptObject;)(o);
} else {
  // This is a basic JavaScript object; wrap as JSONObject.
  // Subobjects will be created on demand.
  return @com.google.gwt.json.client.JSONObject::new(Lcom/google/
gwt/core/client/JavaScriptObject;)(o);
}
  }-*/;


Please note the line:

var v = o.valueOf ? o.valueOf() : o;

What is the reason for doing this? It changes the type of object to
something that is not and that is a number.

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: Maven users survey

2010-02-04 Thread Keith Platfoot
Yes, I've been meaning to reply back to this thread.  Thanks for reminding
me, Brian! :-)

Our plans for the next release of the Google Plugin for Eclipse (1.3)
include 4 changes designed to make integration with Maven and J2EE projects
easier:

   1. The WAR directory can now be configured to be *any* project-relative
   path (e.g. src/main/webapp if you're using Maven).  You'll also be able
   to specify whether that directory is source-only (typical Maven/J2EE
   scenario), or whether it should also function as the WAR output directory
   from which to run/debug or deploy to App Engine.  If your WAR directory is
   input *and* output (which will remain the default for new Web App
   projects), the plugin will manage synchronizing the contents of WEB-INF/lib
   WEB-INF/classes with your project's build path and compiled output.
Otherwise, we'll leave your WAR source directory alone and you'll need to
   specify your WAR output location when launching, deploying, etc (the plugin
   will remember the location once you set it the first time).
   2. The Web App launch configuration UI is being redesigned to allow you
   to see, and if necessary change, *any* of the launch arguments.
Previously, we were waiting until launch time to set many of these
   arguments based on heuristics that were invisible and inaccessible to you.
Now you'll be in full control of how your projects get launched.  Also,
   we're adding the capability to automatically migrate your launch
   configurations when necessary, for example, updating the -javaagent flag
   when changing App Engine SDKs.
   3. GWT/App Engine projects will no longer require our SDK library on the
   classpath.  This means Maven users will be able to pull in JAR files from
   their M2 repository as they're accustomed to and the plugin won't mind a
   bit.
   4. The severity of any problem marker generated by the plugin will be
   fully customizable via an Errors/Warnings preference page (similar to the
   Java Errors/Warnings page), letting you specify either Error, Warning, or
   Ignore.

We'll also be including a few smaller features and bug fixes as well.

What does everyone think about the 4 changes outlined above?  We've been
testing the plugin against various Maven and J2EE configurations to try to
ensure that we've eliminated the most critical roadblocks.  However, we're
very interested in also having you folks take it for a spin before the
official release date (slated for next month).  We're not quite ready yet,
but stay tuned for a 1.3 preview build to be made available hopefully in a
few weeks.  We'll distribute it as a zip file for dropin
installation
so
it will come with the standard warnings and caveats (use with a clean
Eclipse install and workspace, use at your risk, etc.).  However, it will
hopefully give you a chance to give us any last-minute feedback about our
changes before the final release.

Thanks,

Keith

On Thu, Feb 4, 2010 at 12:55 PM, bkbonner  wrote:

> Keith, are you going to give the folks who replied to your message
> some sort of thoughts on what you're going to implement and hopefully
> let us try it before you end up releasing the next release of the
> plugin?
>
> Brian
>
> 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 resou

Cannot get code splitting to work

2010-02-04 Thread Jonathan
If I create a basic GWT 2.0 project, and add some basic code
splitting, it works perfectly fine.

But our main application is pretty massive and complex.  I cannot get
it to split ANY code whatsoever - even the most basic test.  I
generally confirm this by looking at the soyc compile report but it's
also obvious since there's no deferredjs folder.

My most basic test involves creating an incredibly basic POJO class
and referencing this class only from the onSuccess() method of the
runAsync callback.

GWT.runAsync(new RunAsyncCallback()
{
  public void onSuccess()
  {
  Info.display("Title", (new Bob("Code splitting
worked").getName()));
  }

  public void onFailure(Throwable reason)
  {
  Info.display("Code splitting failed", "Code splitting
failed");

  }
});

public class Bob
{
  private final String name;

  public Bob(String name)
  {
  this.name = name;
  }

  public String getName()
  {
  return name;
  }
}

The info messages (basic GXT class to display debug message) displays
"Code splitting worked".  But the report doesn't show any splits.  And
the class Bob shows up in the initial download. No matter where I put
these code splits and what I try to split, I cannot get any code split
to show.  There's no errors in the GWT compiler output.  We're using
the standard linker.  I really don't know how to proceed from here.
Can anyone provide any help?  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.



Cannot get code splitting to work

2010-02-04 Thread Jonathan
If I create a basic GWT 2.0 project, and add some basic code
splitting, it works perfectly fine.

But our main application is pretty massive and complex.  I cannot get
it to split ANY code whatsoever - even the most basic test.  I
generally confirm this by looking at the soyc compile report but it's
also obvious since there's no deferredjs folder.

My most basic test involves creating an incredibly basic POJO class
and referencing this class only from the onSuccess() method of the
runAsync callback.

GWT.runAsync(new RunAsyncCallback()
{
   public void onSuccess()
   {
   Info.display("Title", (new Bob("Code splitting
worked").getName()));
   }

   public void onFailure(Throwable reason)
   {
   Info.display("Code splitting failed", "Code splitting
failed");

   }
});

public class Bob
{
   private final String name;

   public Bob(String name)
   {
   this.name = name;
   }

   public String getName()
   {
   return name;
   }
}

The info messages (basic GXT class to display debug message) displays
"Code splitting worked".  But the report doesn't show any splits.  And
the class Bob shows up in the initial download. No matter where I put
these code splits and what I try to split, I cannot get any code split
to show.  There's no errors in the GWT compiler output.  We're using
the standard linker.  I really don't know how to proceed from here.
Can anyone provide any help?  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: IE bug in vertical sizing of elements

2010-02-04 Thread Thad
Yay!  Kudos Tom.  Thank you.  Changing DOCTYPE to
http://www.w3.org/
TR/html4/strict.dtd">
clears up this  height problem.  I am now looking at three
devmode browser windows--Firefox 3.5 in Linux, IE7 in WinXP, and
Safari 4 on MacOS 10.5--and they all look the same.

Moreover (and the real acid test) is that my database forms now have
the same appearance as the Windows and Mac applications I'm seeking to
emulate.  Even when I change my widgets' fonts between our six default
fonts (Arial, Comic, Courier, Georgia, Times, and Verdana), their
alignments are the same as the Windows platform (the Mac guys may have
to tweak their stuff; hehehe).

Thanks also for the tip on Safari's Develop menu.  I wonder why I've
never seen any mention of it or the IE toolbar before on this board
I'm sure I've seen the question about Firebug like tool before, but
the only I read was a page called domviewer.html from http://www.brainjar.com/.
It's a clever piece of work, but not nearly so easy to use.

Is there any mention of these tools in the GWT docs?  I think these
tools should be called out at least in the FAQ's Troubleshooting
section.

Thanks again, Tom.  Much appreciated.

On Feb 4, 12:57 pm, Thomas Broyer  wrote:
> On Feb 4, 5:51 pm, Thad  wrote:
>
> > Thanks, Tom.  It seems like a bug in IE:
>
> > 1) I'm already using
> > 
> > for my page.  Should I be using a different one?
>
> Yes, 
> definitely!http://hsivonen.iki.fi/doctype/test-quirks.php?doctype=%3C!DOCTYPE+HT...
> Seehttp://hsivonen.iki.fi/doctype/for details
>
>
>
> > 2) From Firebug, the Firefox style for the  is
> > "width: 128px; height: 1px; background-color: rgb(123, 123, 123);
> > position: absolute; left: 5px; top: 13px;"
> > From the IE Developer Toolbar the style is
> > "LEFT: 5px; WIDTH: 128px; POSITION: absolute; TOP: 13px; HEIGHT: 1px;
> > BACKGROUND-COLOR: #7b7b7b"
>
> > So it's been set correctly in the DOM, but it's drawing entirely
> > wrong.
>
> > If there are not other ideas, I guess I'm gonna experiment with an
> >  element with a noshade style and hope I can position that
> > correctly on my page.
>
> > BTW, Tom, thanks for the tip on the IE Developer Toolbar.  I've used
> > Firebug since its inception, but this is the first I've heard of the
> > IE Developer Toolbar, although I've seen many people here ask if there
> > was a Firebug like tool for IE.  Do you know if there is such a
> > creature for Safari?
>
> Yes, built-in, the Web Inspector. Enable the "developer menu" in the
> preferences and you'll find it there.

-- 
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 UIBinder - unrecognized text in g:VerticalPanel

2010-02-04 Thread bkbonner
Hey, question for you...How do reference the DialogBox in the java
code?   I was under the impression that it was only possible to do the
bind the java code to an entity with the same name.  Maybe I'm missing
something here.  Is the DialogBox an element of a Composite or is it a
separate definition.  I'm hoping it's a separate definition, but I
can't wrap my head around how to make it happen.

Any chance you can give a larger snippet of how you're referencing the
dialog?  Or maybe a working example?

Thanks,

Brian

On Jan 31, 5:13 am, Blessed Geek  wrote:
> Never mind!
>
> I moved stylename and animation todialogboxfrom verticalpanel. It
> works. Sorry for the confusion.
>
> OK! UI Binder is Gwwweat!
>
> Perhaps, much better than JavaFx or Silverlight (i.e., any plans for a
> desktop non-servlet version ofUIBinder?)
> What are the plans for GWT andUIBinderfor exploiting html5?

-- 
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 - Different behavior when using DevMode/draftCompile then in Production mode

2010-02-04 Thread Steve Lancey
Hi,

We are experiencing a strange problem: We have a piece of code in our
application that is generating a html string which we are displaying
at one point in the application flow.
With GWT 1.5.x - GWT 1.7.x this worked without any issues. Moving to
GWT 2 this functionality is broken:
As a matter of fact, it is working in DevMode or with -draftCompile or
with -style = Detailed || pretty, but NOT in production mode.

E.g. one of the things that happen in production mode: a final
variable (final String uniqueId = DOM.createUniqueId();) becomes null
at one point. How is this even possible?

Thanks + Regards,

Steve

-- 
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-02-04 Thread bkbonner
And hopefully (Nir mentioned this prior), there will be a way to
exclude  a specific set of classes via some 'ant matcher' from the
module.  We keep the path the same and it looks like GWT looks at both
directories and throws errors which I don't believe affect execution,
but are confusing:

   Validating newly compiled units
  [ERROR] Errors in 'file:/C:/work/bigproject/src/test/java/com/
example/gwt/client/ui/SampleUiTest.java'
 [ERROR] Line 43: No source code is available for type
org.mockito.Mockito; did you forget to inherit a required module?
 [ERROR] Line 48: No source code is available for type
org.mockito.Matchers; did you forget to inherit a required module?

In our module we have:

  
  

where client holds the UI code and common holds DTO classes between
the RPC Server and Client.  The common is probably redundant to a dto
package, but nevertheless.  If I move my test out of the package
specified by client, the error goes away.
gwt compile or specify ant expressions for gwt compile. Our convention
(and I believe a maven convention) is for test cases to exist in the
src/test tree with the same path as the class under test in the tree:
src/main.

Hopefully that makes sense.

Brian

On Feb 4, 12:55 pm, bkbonner  wrote:
> Keith, are you going to give the folks who replied to your message
> some sort of thoughts on what you're going to implement and hopefully
> let us try it before you end up releasing the next release of the
> plugin?
>
> Brian
>
> 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.



Re: Prevent class conversion when compiling modules

2010-02-04 Thread getaceres
You are right, I didn't realize about the polymorphism problem since
you can always get an Object or interface as parameter and then
execute any of its methods, so you don't know what class you might
get. I guess a simplification of the problem would be to mark as
invalid only the field and its getter and setter so, any other method
which use the field or the getter or setter, even in class B, must
fail the compilation and also fail if either the fields or its
accessors override any method.

On 4 feb, 15:44, Chris Lercher  wrote:
> GWT doesn't allow reflection, but it does allow polymorphism. Let's
> assume your client uses interface IC which is implemented by C1 and
> C2. Now C1.x() is marked as invalid, but C2.x() isn't. Now your client
> also can't use IC.x() anymore. It better not be toString()...
>
> This is just one example for the strange semantics this would create.
> I don't say that it's necessarily bad, but it's so different from the
> semantics we're used to expect from a compiler. For me, one of the
> most important things about a compiler is reliability. This doesn't
> only mean that it should ideally be free from bugs. It means, that it
> must be easy to determine which things will compile, and which won't.
> Otherwise, we'll end up with something that's even worse than a C++
> compiler: Slow, and little tooling support compared to Java (it's
> incredibly hard to write good tools for C++, because the semantics are
> too complex even for really good tool developers.)
>
> Still I somehow like your idea. It just shouldn't be part of the
> compiler. If it happens in a pre-compilation step that can be done
> independently of the compiler, everything is fine, because then we can
> keep our compiler simple and reliable.
>
> On Feb 4, 2:42 pm, getaceres  wrote:
>
>
>
> > I chose the wrong letter to describe my algorithm. Going to my
> > example:
>
> > Class A not serializable.
> > Class B serializable but with a B.field of type A marked as transient.
>
> > In this case, only B has to be taken into account, which is the only
> > class that uses A. The compiler would ignore completely A and mark
> > B.field and all the methods in B which use B.field as invalid (not
> > translatable). If any class C uses a method in B which has been marked
> > as invalid, then the compilation fails. In this case, there isn't any
> > possible mistake. The only way to use B.field or any invalid method in
> > B and not declaring it in the code would be to use reflection, which
> > is not supported by GWT so if the code compiles, it will work for
> > sure. At least, no one will ever call any method which uses directly
> > or indirectly something related to A because in that case, the
> > compilation would have failed.
>
> > I don't know much about modern compilers (apart from flex and yacc)
> > and much less about the GWT compiler, but I don't think that
> > implementing this would be very complex. On the code analysis of B
> > (lexical or semantical) you put some information in a Hash Table which
> > is consulted every time another class uses B.something. Of course,
> > this will slow the compilation process, specially if B is a overused
> > class which has a lot of functionality, but at least for me, it would
> > be worth the extra compilation time just to be able to reduce my
> > duplicated 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.



Re: RootPanel.get() problems

2010-02-04 Thread Thomas Broyer


On Feb 4, 3:27 pm, "Juan M.M.M."  wrote:
> hi!
>
> Thx for the reply. Is this Issue resolved in the new version of GWT
> (GWT-2.0.1) ?

The issue has been closed as "AsDesigned" so it won't change: "it's
not a bug, it's a feature"

-- 
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: IE bug in vertical sizing of elements

2010-02-04 Thread Thomas Broyer


On Feb 4, 5:51 pm, Thad  wrote:
> Thanks, Tom.  It seems like a bug in IE:
>
> 1) I'm already using
> 
> for my page.  Should I be using a different one?

Yes, definitely!
http://hsivonen.iki.fi/doctype/test-quirks.php?doctype=%3C!DOCTYPE+HTML+PUBLIC+%22-//W3C//DTD+HTML+4.01+Transitional//EN%22%3E
See http://hsivonen.iki.fi/doctype/ for details

> 2) From Firebug, the Firefox style for the  is
> "width: 128px; height: 1px; background-color: rgb(123, 123, 123);
> position: absolute; left: 5px; top: 13px;"
> From the IE Developer Toolbar the style is
> "LEFT: 5px; WIDTH: 128px; POSITION: absolute; TOP: 13px; HEIGHT: 1px;
> BACKGROUND-COLOR: #7b7b7b"
>
> So it's been set correctly in the DOM, but it's drawing entirely
> wrong.
>
> If there are not other ideas, I guess I'm gonna experiment with an
>  element with a noshade style and hope I can position that
> correctly on my page.
>
> BTW, Tom, thanks for the tip on the IE Developer Toolbar.  I've used
> Firebug since its inception, but this is the first I've heard of the
> IE Developer Toolbar, although I've seen many people here ask if there
> was a Firebug like tool for IE.  Do you know if there is such a
> creature for Safari?

Yes, built-in, the Web Inspector. Enable the "developer menu" in the
preferences and you'll find it there.

-- 
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-02-04 Thread bkbonner
Keith, are you going to give the folks who replied to your message
some sort of thoughts on what you're going to implement and hopefully
let us try it before you end up releasing the next release of the
plugin?

Brian

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.



Re: "fixing" javascript method names

2010-02-04 Thread Thomas Broyer


On Feb 4, 5:54 pm, Ryan Heaton  wrote:
> Hi.
>
> Here's my problem. I've got a GWT client-side service method that
> makes a remote call to a server. Since the result of the remote call
> is returned asynchronously, the service method takes a "callback" as a
> parameter. It's basically just an interface with two methods
> "onSuccess" and "onFailure".
>
> So everything works great when invoking the service from GWT code, but
> the problem is exposing this service method to be invokable by a
> separate javascript library. Exposing the service method is possible
> with tools akin to GWT exporter, but the problem is with the callback.
> The "onSuccess" and "onFailure" methods are obfuscated by the compiler
> so I have no reliable way to create a callback object from handwritten
> javascript that will work when that method is invoked.
>
> Here's an example for the sake of clarity. Let's say I've got a
> service interface defined like this:
>
> public interface MyService {
>   void getStuff(new MyCallback());
>
> }
>
> And the "MyCallback" interface is defined like this:
>
> public interface MyCallback {
>   void onSuccess(Stuff stuff);
>
> }
>
> Let's say I bind the "getStuff" method to a javascript method of the
> same name. I can then invoke the method from javascript, but I have no
> way of reliably constructing an instance of "MyCallback" from
> javascript because I don't know what the "onSuccess" method will be
> named in javascript after is passes through the GWT compiler.
>
> What I'd really like is to be able to define my callback like this:
>
> public interface MyCallback {
>   @PreserveMethodName //or some annotation like that.
>   void onSuccess(Stuff stuff);
>
> }
>
> And then my javascript would look something like:
>
> var callback = {};
> callback.onSuccess = function(stuff) {...}
> getStuff(callback);
>
> Thoughts? Any suggestions for me?

Something like this maybe (not tested, just an idea):

private static void publishGetStuff(MyService service) /*-{
   $wnd.getStuff = $entry(@my.package.Foo::staticGetStuff(Lcom/google/
gwt/core/client/JavaScriptObject;));
}-*/;

private static void staticGetStuff(final JavaScriptObject onSuccessFn)
{
  service.getStuff(new MyCallBack() {
public void onSuccess(Stuff stuff) {
  nativeOnSuccess(onSuccessFn, stuff);
}
private void native nativeOnSuccess(JavaScriptObject onSuccessFn,
Stuff stuff) /*-{
   onSuccessFn(stuff);
}-*/;
  }
}

-- 
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: forget DTO, Dozer and Gilead use @GwtTransient [tested on GWT 2.0.X]

2010-02-04 Thread Diego Lovison
why not?

;)

On 4 fev, 15:23, Marcos Alcantara  wrote:
> Ok.
>
> About the @GwtTransient, in my case, I´m only using model classes
> defined within the GWT module. Although I love what Gilead has done
> for us, I think if it would be possible to eliminate the performance
> overhead and let GWT serialize my JPA annotated classes directly.
>
> Would it?
>
> =)
>
> thanks
>
> Marcos A.
>
> On 4 fev, 13:46, Open eSignForms  wrote:
>
> > Yeah, this was a big problem for us since it meant creating lots of DTOs and
> > server-side routines that generated them from its existing objects and could
> > consume them for updates.
>
> > I don't know the internals of GWT compiler, but it sure would be nice if
> > fields and methods and constructors could be annotated to be ignored and
> > never translated to JS.

-- 
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: Ext/GXT/ExtGWT v2.1.0 vs. SmartGWT v2.0

2010-02-04 Thread siberian
We don't want nested grids. We don't want nested html. We want a
nested composite panel with arbitrary widgets in them. Neither
framework does well there, hence the custom solution.

Anyhow, we'll be looking on our next project and seeing how we feel
about it. Extended GXT was very simple for us once we got over the
learning curve and SmartGWT will have the same learning curve.

John-

On Feb 3, 4:26 pm, ckendrick  wrote:
> Re: widgets inside grid rows: not only is it "out of the box" in
> SmartGWT, there are multiple out of the box modes for it, including
> nested editable grids.
>
>    http://www.smartclient.com/smartgwt/showcase/#featured_nested_grid
>    http://www.smartclient.com/smartgwtee/javadoc/com/smartgwt/client/typ...
>
> In the latest nightlies you can play with yet another level of
> sophistication, for release in 2.1:
>
> 1. general purpose APIs for attaching components to any individual
> cell or row, with multiple sizing modes
> 2. support for automatic pooling of components at the record level,
> for use cases where you have components in most/every row and you are
> paging through a large dataset and need to re-use a pool of components
> attached to the currently visible records
>
> If it's a "positive" experience to have to fix a lot of bugs, and have
> to add missing features, can't wait to see what you guys say when you
> evaluate SmartGWT for your next project ;)

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



file.properties web mode

2010-02-04 Thread asle
Hello:

I have a problem when use with gwt 1.6 web mode, because not found
file.properties.
When we used gwt 1.4 with tomcat, we have the file.properties in the
folowing directory (in workspace eclipse):
project.tomcat.webapps.confFiles.
But i do not know in gwt 1.6 where to put for what in web mode
recognize the properties.


Sorry for the writing,  but i am not speak english

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.



"fixing" javascript method names

2010-02-04 Thread Ryan Heaton
Hi.

Here's my problem. I've got a GWT client-side service method that
makes a remote call to a server. Since the result of the remote call
is returned asynchronously, the service method takes a "callback" as a
parameter. It's basically just an interface with two methods
"onSuccess" and "onFailure".

So everything works great when invoking the service from GWT code, but
the problem is exposing this service method to be invokable by a
separate javascript library. Exposing the service method is possible
with tools akin to GWT exporter, but the problem is with the callback.
The "onSuccess" and "onFailure" methods are obfuscated by the compiler
so I have no reliable way to create a callback object from handwritten
javascript that will work when that method is invoked.

Here's an example for the sake of clarity. Let's say I've got a
service interface defined like this:

public interface MyService {
  void getStuff(new MyCallback());
}

And the "MyCallback" interface is defined like this:

public interface MyCallback {
  void onSuccess(Stuff stuff);
}

Let's say I bind the "getStuff" method to a javascript method of the
same name. I can then invoke the method from javascript, but I have no
way of reliably constructing an instance of "MyCallback" from
javascript because I don't know what the "onSuccess" method will be
named in javascript after is passes through the GWT compiler.

What I'd really like is to be able to define my callback like this:

public interface MyCallback {
  @PreserveMethodName //or some annotation like that.
  void onSuccess(Stuff stuff);
}

And then my javascript would look something like:

var callback = {};
callback.onSuccess = function(stuff) {...}
getStuff(callback);

Thoughts? Any suggestions for 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.



Re: Embedded jetty

2010-02-04 Thread vachi
assume that you want to define jdbc datasource using jndi, here is
what I did.
1 add jetty-naming and jetty-plus jars to y
classpath. also put jndi.properties in your classpath.
2 implement a helper class, which implements jetty's
ServletContainerLauncher interface.
3 put jetty-env.xml in your WEB-INF
4 launch Hosted mode with argument -server (your helper class)

works with gwt 1.7

On Feb 3, 2:12 am, Thom with an H  wrote:
> I'm trying to modify the jetty.xml file so I can define JDBC settings
> for my jetty instance, but I can't seem to find where to do this with
> the embedded jetty that comes with GWT. Does anyone have an idea?

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



Override default CSS

2010-02-04 Thread Mirandus
Hello!

Whats the best way to override the default CSS-Style for the
DecoratedStackPanel?

In my case, i want to set the padding of the style class "gwt-
StackPanelContent" to zero - but i have no idea how to access the
wrapper-element and override the style.

If i put

.gwt-StackPanelContent {
  padding: 0px 0px 0px 0px;
}

in my own css file, then this style is overwritten by the standard.css
style.

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.



How suitable is GWT for developing apps for embedded devices like gateway

2010-02-04 Thread vivek
Hi,
I am planing to build apps for gateway. The gateway has 32 MB of flash
memory and simple processor. So i would like to know how suitable is
GWT for developing embedded apps.


-vivek

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



upgrade gwt 1.5 to 1.6 help!!

2010-02-04 Thread asle
Hello:

We have a problem to upgrade gwt , and folowing the steps in
http://code.google.com/intl/es/webtoolkit/doc/1.6/ReleaseNotes_1_6.html#Upgrading
.
The first step is ok, but de second step:
Switch from GWTShell to HostedMode i am not understand how i do,
because i do not know where  directory is the main class for swich.
I need you help for indications to change the main class because i
need folowing the steps for upgrating my project:
"In order to eliminate this warning, change your main class from
com.google.gwt.dev.GWTShell to com.google.gwt.dev.HostedMode"

When i run the project, indicate this warning:

WARNING: 'com.google.gwt.dev.GWTShell' is deprecated and will be
removed in a future release.
Use 'com.google.gwt.dev.HostedMode' instead.


Sorry for the writing,  but i am not speak english
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: forget DTO, Dozer and Gilead use @GwtTransient [tested on GWT 2.0.X]

2010-02-04 Thread Marcos Alcantara
Ok.

About the @GwtTransient, in my case, I´m only using model classes
defined within the GWT module. Although I love what Gilead has done
for us, I think if it would be possible to eliminate the performance
overhead and let GWT serialize my JPA annotated classes directly.

Would it?

=)

thanks

Marcos A.

On 4 fev, 13:46, Open eSignForms  wrote:
> Yeah, this was a big problem for us since it meant creating lots of DTOs and
> server-side routines that generated them from its existing objects and could
> consume them for updates.
>
> I don't know the internals of GWT compiler, but it sure would be nice if
> fields and methods and constructors could be annotated to be ignored and
> never translated to JS.

-- 
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: Running several projects in Development Mode in Eclipse fails.

2010-02-04 Thread Miguel Méndez
Could you file a bug in the GWT issue
trackerfor
this?  As a work around, you can add -codeServerPort auto to the
launch
configuration's program arguments.  This should avoid the second problem
that you were running into.

On Wed, Feb 3, 2010 at 2:08 PM, lim  wrote:

> Hello.
>
> How is it possible to start several projects in development mode
> simultaneously / start two instances of development mode?
>
> Software:
> Eclipse Platform:  3.5.1.M20090917-0800
> Google Plugin for Eclipse 3.5:  1.2.0.v200912062003
> Google Web Toolkit SDK 2.0.1:  2.0.1.v201002021445
> Google App Engine Java SDK 1.3.0:  1.3.0.v200912141120
> Google Web Toolkit Developer Plugin for Firefox:  1.0.7511
>
> With default configuration second project fails to start it's built-in
> web server, since both servers use port ;
>
> If you open Run Configurations and check "Automatically select an
> unused port" - then second project will start fine, and shows it's
> status in Development Mode panel, but trying to connect to it's URL
> connects you to the first project's DevMode server: it's white screen
> in browser and following error in DevMode panel:
>
> 20:34:26.698 [ERROR] [Showcase] Unable to find 'Showcase.gwt.xml' on
> your classpath; could be a typo, or maybe you forgot to include a
> classpath entry for source?
> 20:34:26.746 [ERROR] [Showcase] Failed to load module 'Showcase' from
> user agent 'Mozilla/5.0 (Windows; U; Windows NT 6.1; ru; rv:1.9.1.2)
> Gecko/20090729 MRA 5.5 (build 02842) Firefox/3.5.2 GTB6 (.NET CLR
> 3.5.30729)' at activate.adobe.com:63616
>
> --
> 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.
>
>


-- 
Miguel

-- 
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: IE bug in vertical sizing of elements

2010-02-04 Thread Thad
Thanks, Tom.  It seems like a bug in IE:

1) I'm already using

for my page.  Should I be using a different one?

2) From Firebug, the Firefox style for the  is
"width: 128px; height: 1px; background-color: rgb(123, 123, 123);
position: absolute; left: 5px; top: 13px;"
>From the IE Developer Toolbar the style is
"LEFT: 5px; WIDTH: 128px; POSITION: absolute; TOP: 13px; HEIGHT: 1px;
BACKGROUND-COLOR: #7b7b7b"

So it's been set correctly in the DOM, but it's drawing entirely
wrong.

If there are not other ideas, I guess I'm gonna experiment with an
 element with a noshade style and hope I can position that
correctly on my page.

BTW, Tom, thanks for the tip on the IE Developer Toolbar.  I've used
Firebug since its inception, but this is the first I've heard of the
IE Developer Toolbar, although I've seen many people here ask if there
was a Firebug like tool for IE.  Do you know if there is such a
creature for Safari?

On Feb 4, 5:34 am, Thomas Broyer  wrote:
> On Feb 3, 8:05 pm, Thad  wrote:
>
>
>
> > I have the requirement read to display widgets, rendering them similar
> > to how they display in a Mac/Windows application (not a web app, but a
> > client that provides forms for a database). The widgets are fairly
> > common things--labels, text boxes, checkboxes, pictures, etc.  The
> > display is dynamic--the widgets are declared in an XML file over which
> > I've no control.  I'm using an AbsolutePanel for placement.
>
> > I've recreated all the widgets and their behavior for Firefox, Safari,
> > and, with one exception, IE.  That exception is the requirement to
> > draw a line.  The line can be horizontal or vertical and of any width,
> > height, or color.  I created a line by extending a SimplePanel, with
> > methods for setting the pixel size and backgroundColor as I read them
> > from the XML file.
>
> > The problem is that IE (I'm testing with IE7) insists that any 
> > be a minimum of 20px (as best as my eye can judge).  So a gray line of
> > one pixel high will render correctly in Safari or Firefox, but will
> > become a 20px high block of gray.
>
> > The results are the same if I try Label or HTML, so the problem must
> > be in how IE sizes a .  Does anyone have any ideas how I can fix
> > or work around this?
>
> If I were you, I'd install the IE Developer Toolbar (from Microsoft)
> to check which styles are applied to the div. It might be something
> related to default styles that you could override, or some weird
> cascading/inheritence.
> Also, switch to "standards mode" if your not already (just start your
> HTML page with ""), as it could also be an issue with
> the "box model", which is utterly "broken" in IE in "quirks 
> mode":http://en.wikipedia.org/wiki/Internet_Explorer_box_model_bug

-- 
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: forget DTO, Dozer and Gilead use @GwtTransient [tested on GWT 2.0.X]

2010-02-04 Thread Open eSignForms
Yeah, this was a big problem for us since it meant creating lots of DTOs and
server-side routines that generated them from its existing objects and could
consume them for updates.

I don't know the internals of GWT compiler, but it sure would be nice if
fields and methods and constructors could be annotated to be ignored and
never translated to JS.

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



GlassPanel in IE6 -- color changes when scrolling

2010-02-04 Thread Skyfort
Hello internet!

I am using a GlassPanel to black out the background a bit when I open
a modal. In IE6, which of course uses the iframe shim, the color of
the GlassPanel is going from a dark grey to a light grey after I
scroll (sort of whiting out the background instead).

I can provide code if necessary, but mayhaps this is a problem that
has been seen before?

Thanks!
SKYFORT

-- 
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 server side and maven

2010-02-04 Thread Ignat Alexeyenko
I've send a link in previous email.
Here is SVN root of the project:
https://simpleworklog.svn.sourceforge.net/svnroot/simpleworklog

You can checkout it using SVN client.
If you have command line client, type the following command:
svn checkout 
https://simpleworklog.svn.sourceforge.net/svnroot/simpleworklogsimpleworklog

--
Kind regards,
Ignat Alexeyenko.

On Thu, Feb 4, 2010 at 1:41 PM, יוסף נוגידאת  wrote:

> thanks Ignat,
>
> do you have an example please ?
> thank you
>
> On Thu, Feb 4, 2010 at 10:45 AM, Ignat Alexeyenko <
> ignatalexeye...@gmail.com> wrote:
>
>> Hi.
>>
>> Recently I've migrated my project to Maven.
>> There is nothing important there - just login form and 1 RPC call (project
>> is only started).
>>
>> But the project is using maven with gwt plugin for GWT 2.0 compilation.
>> http://sourceforge.net/projects/simpleworklog/
>>
>> Just checkout it somewhere and launch from project root:
>> *mvn package *
>>
>> --
>> Kind regards,
>> Ignat Alexeyenko.
>>
>> On Wed, Feb 3, 2010 at 10:35 AM, joe7935  wrote:
>>
>>> Hello all,
>>>
>>> I try to build a  gwt server side project in maven .
>>> I was looking for example in the web , i found examples in this site :
>>> http://code.google.com/p/gwt-maven/
>>>
>>> I have some questions :
>>>
>>> 1. Do I have to start with maven project ( by selected an archetype
>>> maven-gwt-plugin)
>>> 2. if any one have an example , i love to get it.
>>>
>>> please please help me.
>>> thanks
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Google Web Toolkit" group.
>>> To post to this group, send email to google-web-toolkit@googlegroups.com
>>> .
>>> To unsubscribe from this group, send email to
>>> google-web-toolkit+unsubscr...@googlegroups.com
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>>
>>>
>>  --
>> 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.



JUnitShell - specify HTTP port

2010-02-04 Thread djd
Hi guys,

Is there a way to specify the port when starting a GwtTestCase? By
default, this is set to 0 (random port). I would like to always start
on a specified port, and "-port 15000" didn't have any effect -
although I think this "port" has nothing in common with HTTP client
(but rather Jetty's port).

  Starting HTTP on port 0
HTTP listening on port 38031

Thanks a lot,
Regards.

PS: I am using a proxy & REST architecture to communicate with
backend, so I would not touch anything in my config (apache's Proxy/
ReverseProxy, apache listening on multiple ports, etc).

-- 
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: Help on gwt app initial download...

2010-02-04 Thread Abdullah Shaikh
GWT.runAsync() is the way to go.. I was able to bring down the initial size
a lot less compared to not using code splitting.

All the presenters/views not required initially, and required on an event, I
have put all of them in code splitting.

HTH

- Abdullah

On Thu, Feb 4, 2010 at 5:15 AM, golfdude  wrote:

>
> My app ( obfuscated ) is at 850kb and my users are complaining on
> initial download time as in beta mode I tend to put regular releases.
> My users are all in dialup ( 56 kb ) kind of connections. I have been
> searching this group and searching for some tutorial to split into
> modules ( one link to a google presentation was not working ). But
> dont seem to find any. Any ideas/links/howtos for this will be
> appreciated.
>
>
> Thanks
>
> gd
>
> --
> 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: Remove element on host page

2010-02-04 Thread obesga
Thanks !

On Feb 4, 1:35 pm, Ian Bambury  wrote:
> Get the body element and set the innerhtml to ""
>
> Ian
>
> http://examples.roughian.com
>
> On 4 February 2010 12:26, obesga  wrote:
>
> > Hello
>
> > I have a div element into the host page, just a 'please wait' advice
> > while the gwt code loads.
>
> > 
> > 
> >  
> >    
> >  
> >  
> >  Loading application, please wait...
> >  
> > 
>
> > And I want to remove it from body when module loads, but I can't I
> > can make it dissapear by making the div invisible; but that isn't what
> > I want. This is what I've tried so far:
>
> >   public void onModuleLoad() {
> >           GWT.log("onLoad ",null); //TOLOG
> >           RootPanel.get().clear();
> >           if (RootPanel.get("esperePorFavor")!= null) {
> >               RootPanel.get("esperePorFavor").setVisible(false);
> >               RootPanel.get("esperePorFavor").clear();
> >               RootPanel.get("esperePorFavor").removeFromParent();
> >           }
> >    //
> >     }
>
> > Has anyone other solution ?
>
> > Thanks in advance
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-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: Ext/GXT/ExtGWT v2.1.0 vs. SmartGWT v2.0

2010-02-04 Thread Tercio
@mariyan nenchev, I used SmartGWT free version for some time and it
was a pain to integrate with EJB(To be honest I gave up). I considered
the paid version, but it's too expensive. You receive a lot of
"useless" features. You can't choose the ones you need, you must buy
the whole package.

On Feb 3, 2:21 pm, Jonathan  wrote:
> I'm also using GXT on a very, very large project.  My experience has
> been pretty positive.  I've been working with the GXT library over a
> year.  The appearance of most components can be changed pretty
> easily.  I prefer the GXT rendering model over GWT.  We have custom
> versions of nearly every GXT component and for the most part there's
> only minor things that had to be changed in the last major GXT upgrade
> 1.x -> 2.0 (but since our code-base is so large it took us nearly 1.5
> weeks to perform this upgrade.
>
> I did find the layout managers a little bit lacking so I wrote my own
> layout manager which is far superior.  Most of our UI's are form
> related and fairly complex which is where simple uni-directional
> layouts like the ones in GXT are worst suited.  I also borrowed some
> swing/awt concepts such as invalidate/revalidate so if you change a
> value in any component which will affects its bound size, it will
> bubble up invalidating all components to the top layout container and
> then run the layout.  But after all of this, I'm not sure if the GXT
> layout managers are the best approach.  Performing layout via
> javascript is a little sluggish - except in chrome.  I'm hoping the
> other browsers catch up.
>
> If you decide to use GXT 2.0, you won't be able to use some of the
> newer GWT features, like UIBinder.  And for the most part, once you
> start using GXT, you should avoid using any plain GWT concepts.  All
> of our components are built off of the base GXT component and
> boxcomponent classes.
>
> If I were working on a simpler project, such as a personal project, I
> would use plain GWT.
>
> On Feb 3, 8:49 am, Jeff Larsen  wrote:
>
>
>
> > We're currently using GXT on a large project and I'd like to say that
>
> > "GXT's layout system is alien to GWT, the documentation is
> > nonexistant,
> > the appearance is highly inflexible, and the attitude of the support
> > team sucks (even for customers that pay for support).  Consider, for a
> > moment, that there is nobody at Ext commenting on the GXT-related
> > threads that show up in this forum.  Totally out to lunch. "
>
> > is 100% accurate to my experience. I don't have the luxury of ripping
> > it out of my app at work, but I wouldn't use it in personal app if it
> > were free.
>
> > Everything you know about GWT and GWT widgets can basically be thrown
> > out the window. The event model is entirely different. The widgets
> > have a ton of properties that are set on construction that you cannot
> > change. Oh and when you decide on GXT know that you're probably going
> > to be locked into that version and will not be able to upgrade to any
> > new versions of the software.
>
> > I would recommend not using GXT.
>
> > On Feb 3, 2:22 am, Sanjiv Jivan  wrote:
>
> > > Bogdan,
> > > Thanks for the kind words :) Constructive criticism is always welcome as 
> > > the
> > > goal is to improve the product. However please do follow up with the
> > > appropriate posts and report enhancements / issues in tracker.
>
> > > Regarding the Calendar event dialog customization, that appears to be an
> > > enhancement request rather than a bug. I still could not find a user id by
> > > your name however I did find a similar thread :
>
> > >http://forums.smartclient.com/showthread.php?t=4900
>
> > > As you can see, the user was advised to
>
> > > 1) either create an enhancement request that other users could vote on or
> > > 2) make the enhancement themselves since it is open source and share their
> > > work.
>
> > > However no such enhancement request was created in tracker.  Please email 
> > > me
> > > your SmartGWT forum user name so that I can view the other posts / issues
> > > reported by you.
>
> > > New features are being added to SmartGWT / SmartClient at a really really
> > > fast pace. This should be evident by the release notes of each new 
> > > release,
> > > and the commit logs in SVN. For example some 10 significant new features
> > > have already been added since the SmartGWT 2.0 release, and countless 
> > > other
> > > minor enhancements as well. So unless users file issues and enhancements, 
> > > it
> > > is not going to be easy to track. Moreover even if you do have a feature
> > > request, prioritization will depend on the number of votes it receives 
> > > which
> > > is typical of how most OSS works. If you are a commercial entity you also
> > > have the option of contacting Isomorphic and getting the feature added in 
> > > a
> > > timeframe that meets your needs. As mentioned above, you can also dive in
> > > and make the change yourself since it is open source.
>
> > > So kindly be a little patient

Re: Ext/GXT/ExtGWT v2.1.0 vs. SmartGWT v2.0

2010-02-04 Thread Tercio
@mariyan nenchev, my bad, I forgot to mention that it's a EE feature.
But the UI is available in the free version.

GXT API is much like the AWT API.


On Feb 3, 2:21 pm, Jonathan  wrote:
> I'm also using GXT on a very, very large project.  My experience has
> been pretty positive.  I've been working with the GXT library over a
> year.  The appearance of most components can be changed pretty
> easily.  I prefer the GXT rendering model over GWT.  We have custom
> versions of nearly every GXT component and for the most part there's
> only minor things that had to be changed in the last major GXT upgrade
> 1.x -> 2.0 (but since our code-base is so large it took us nearly 1.5
> weeks to perform this upgrade.
>
> I did find the layout managers a little bit lacking so I wrote my own
> layout manager which is far superior.  Most of our UI's are form
> related and fairly complex which is where simple uni-directional
> layouts like the ones in GXT are worst suited.  I also borrowed some
> swing/awt concepts such as invalidate/revalidate so if you change a
> value in any component which will affects its bound size, it will
> bubble up invalidating all components to the top layout container and
> then run the layout.  But after all of this, I'm not sure if the GXT
> layout managers are the best approach.  Performing layout via
> javascript is a little sluggish - except in chrome.  I'm hoping the
> other browsers catch up.
>
> If you decide to use GXT 2.0, you won't be able to use some of the
> newer GWT features, like UIBinder.  And for the most part, once you
> start using GXT, you should avoid using any plain GWT concepts.  All
> of our components are built off of the base GXT component and
> boxcomponent classes.
>
> If I were working on a simpler project, such as a personal project, I
> would use plain GWT.
>
> On Feb 3, 8:49 am, Jeff Larsen  wrote:
>
>
>
> > We're currently using GXT on a large project and I'd like to say that
>
> > "GXT's layout system is alien to GWT, the documentation is
> > nonexistant,
> > the appearance is highly inflexible, and the attitude of the support
> > team sucks (even for customers that pay for support).  Consider, for a
> > moment, that there is nobody at Ext commenting on the GXT-related
> > threads that show up in this forum.  Totally out to lunch. "
>
> > is 100% accurate to my experience. I don't have the luxury of ripping
> > it out of my app at work, but I wouldn't use it in personal app if it
> > were free.
>
> > Everything you know about GWT and GWT widgets can basically be thrown
> > out the window. The event model is entirely different. The widgets
> > have a ton of properties that are set on construction that you cannot
> > change. Oh and when you decide on GXT know that you're probably going
> > to be locked into that version and will not be able to upgrade to any
> > new versions of the software.
>
> > I would recommend not using GXT.
>
> > On Feb 3, 2:22 am, Sanjiv Jivan  wrote:
>
> > > Bogdan,
> > > Thanks for the kind words :) Constructive criticism is always welcome as 
> > > the
> > > goal is to improve the product. However please do follow up with the
> > > appropriate posts and report enhancements / issues in tracker.
>
> > > Regarding the Calendar event dialog customization, that appears to be an
> > > enhancement request rather than a bug. I still could not find a user id by
> > > your name however I did find a similar thread :
>
> > >http://forums.smartclient.com/showthread.php?t=4900
>
> > > As you can see, the user was advised to
>
> > > 1) either create an enhancement request that other users could vote on or
> > > 2) make the enhancement themselves since it is open source and share their
> > > work.
>
> > > However no such enhancement request was created in tracker.  Please email 
> > > me
> > > your SmartGWT forum user name so that I can view the other posts / issues
> > > reported by you.
>
> > > New features are being added to SmartGWT / SmartClient at a really really
> > > fast pace. This should be evident by the release notes of each new 
> > > release,
> > > and the commit logs in SVN. For example some 10 significant new features
> > > have already been added since the SmartGWT 2.0 release, and countless 
> > > other
> > > minor enhancements as well. So unless users file issues and enhancements, 
> > > it
> > > is not going to be easy to track. Moreover even if you do have a feature
> > > request, prioritization will depend on the number of votes it receives 
> > > which
> > > is typical of how most OSS works. If you are a commercial entity you also
> > > have the option of contacting Isomorphic and getting the feature added in 
> > > a
> > > timeframe that meets your needs. As mentioned above, you can also dive in
> > > and make the change yourself since it is open source.
>
> > > So kindly be a little patient when reporting enhancements and issues, and
> > > follow up by posting a request in tracker with a testcase if you 
> > > encounter a
> > 

Re: Prevent class conversion when compiling modules

2010-02-04 Thread Chris Lercher
GWT doesn't allow reflection, but it does allow polymorphism. Let's
assume your client uses interface IC which is implemented by C1 and
C2. Now C1.x() is marked as invalid, but C2.x() isn't. Now your client
also can't use IC.x() anymore. It better not be toString()...

This is just one example for the strange semantics this would create.
I don't say that it's necessarily bad, but it's so different from the
semantics we're used to expect from a compiler. For me, one of the
most important things about a compiler is reliability. This doesn't
only mean that it should ideally be free from bugs. It means, that it
must be easy to determine which things will compile, and which won't.
Otherwise, we'll end up with something that's even worse than a C++
compiler: Slow, and little tooling support compared to Java (it's
incredibly hard to write good tools for C++, because the semantics are
too complex even for really good tool developers.)

Still I somehow like your idea. It just shouldn't be part of the
compiler. If it happens in a pre-compilation step that can be done
independently of the compiler, everything is fine, because then we can
keep our compiler simple and reliable.


On Feb 4, 2:42 pm, getaceres  wrote:
> I chose the wrong letter to describe my algorithm. Going to my
> example:
>
> Class A not serializable.
> Class B serializable but with a B.field of type A marked as transient.
>
> In this case, only B has to be taken into account, which is the only
> class that uses A. The compiler would ignore completely A and mark
> B.field and all the methods in B which use B.field as invalid (not
> translatable). If any class C uses a method in B which has been marked
> as invalid, then the compilation fails. In this case, there isn't any
> possible mistake. The only way to use B.field or any invalid method in
> B and not declaring it in the code would be to use reflection, which
> is not supported by GWT so if the code compiles, it will work for
> sure. At least, no one will ever call any method which uses directly
> or indirectly something related to A because in that case, the
> compilation would have failed.
>
> I don't know much about modern compilers (apart from flex and yacc)
> and much less about the GWT compiler, but I don't think that
> implementing this would be very complex. On the code analysis of B
> (lexical or semantical) you put some information in a Hash Table which
> is consulted every time another class uses B.something. Of course,
> this will slow the compilation process, specially if B is a overused
> class which has a lot of functionality, but at least for me, it would
> be worth the extra compilation time just to be able to reduce my
> duplicated 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.



Re: Help on gwt app initial download...

2010-02-04 Thread dolcra...@gmail.com
GWT.runAsync().

On Feb 3, 6:45 pm, golfdude  wrote:
> My app ( obfuscated ) is at 850kb and my users are complaining on
> initial download time as in beta mode I tend to put regular releases.
> My users are all in dialup ( 56 kb ) kind of connections. I have been
> searching this group and searching for some tutorial to split into
> modules ( one link to a google presentation was not working ). But
> dont seem to find any. Any ideas/links/howtos for this will be
> appreciated.
>
> Thanks
>
> gd

-- 
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: Upgrade problem 1.7 --> 2.0

2010-02-04 Thread doopa


On Feb 4, 2:12 am, iaio81  wrote:
> Hi all,
> because of the slowness of GWT 1.7's hosted mode, I was trying
> upgrading GWT to 2.0 but after having done it I have problems running
> my projects created with 1.7. What I've to change?

I had problems with Sun JDK as well. However it would be more useful
for us if you outlined the precise problem you are having.

Are you, for example, using eclipse?

-- 
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: RootPanel.get() problems

2010-02-04 Thread Juan M.M.M.
hi!

Thx for the reply. Is this Issue resolved in the new version of GWT
(GWT-2.0.1) ?

Thanks for the answers! Bye!

On Feb 3, 5:38 pm, Thomas Broyer  wrote:
> On Feb 2, 6:00 pm, "Juan M.M.M."  wrote:
>
>
>
> > hi!
>
> > I'm becoming exasperated because this class sometimes works fine and
> > sometimes it going crazy. Let's supose this HTML like mine
>
> > ...
> > 
> >    
> >       
> >       
> >    
> >    
> >    
> > 
>
> > In method OnModuleLoad() u can refeer with this sentence RootPanel.get
> > ("div_name") to the DIV layer without problems. Then if u do the same
> > but in another public method, for example u could be refeer to the
> > frame1 and frame2 layer BUT if u refeer to frame1.1, u will get this
> > error:
>
> > java.lang.AssertionError: A widget that has an existing parent widget
> > may not be added to the detach list
> >     at com.google.gwt.user.client.ui.RootPanel.detachOnWindowClose
> > (RootPanel.java:136)
> >     at com.google.gwt.user.client.ui.RootPanel.get(RootPanel.java:211)
> >     at com.my.irn.client.IRn.DisplayResults(IRn.java:398)
> >     at com.my.irn.client.IRn.Paginar(IRn.java:450)
>
> > ...
>
> > Why is hapenning with this class?
>
> See:http://code.google.com/p/google-web-toolkit/issues/detail?id=3511
> and linked issues.
>
> > Can I try another way to setWidgets,
>
> As suggested by rjrjr on the above-linked issue, you could use
> HTMLPanel:
>    RootPanel frame1 = RootPanel.get("frame1");
>    HTMLPanel html = new HTMLPanel(frame1.getElement().getInnerHTML());
>    frame1.getElement().setInnerHTML("");
>    frame1.add(html);
>    // then you can use html.addAndReplace("frame1.1", someOtherWidget)
>
> > setVisibility, etc to the DIVs layer.
>
> As I said on the above-linked issue, if all you want is setVisible,
> use Document.get().getElementById(...) instead of RootPanel.get(...)

-- 
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-02-04 Thread dolcra...@gmail.com
Well as a work around to see if/where gwtc is needing class A you
could create a "dummy" class using the super directive in your module
gwt that is serializable (and empty).

On Feb 4, 8:42 am, getaceres  wrote:
> I chose the wrong letter to describe my algorithm. Going to my
> example:
>
> Class A not serializable.
> Class B serializable but with a B.field of type A marked as transient.
>
> In this case, only B has to be taken into account, which is the only
> class that uses A. The compiler would ignore completely A and mark
> B.field and all the methods in B which use B.field as invalid (not
> translatable). If any class C uses a method in B which has been marked
> as invalid, then the compilation fails. In this case, there isn't any
> possible mistake. The only way to use B.field or any invalid method in
> B and not declaring it in the code would be to use reflection, which
> is not supported by GWT so if the code compiles, it will work for
> sure. At least, no one will ever call any method which uses directly
> or indirectly something related to A because in that case, the
> compilation would have failed.
>
> I don't know much about modern compilers (apart from flex and yacc)
> and much less about the GWT compiler, but I don't think that
> implementing this would be very complex. On the code analysis of B
> (lexical or semantical) you put some information in a Hash Table which
> is consulted every time another class uses B.something. Of course,
> this will slow the compilation process, specially if B is a overused
> class which has a lot of functionality, but at least for me, it would
> be worth the extra compilation time just to be able to reduce my
> duplicated code.
>
> On 22 ene, 10:43, Chris Lercher  wrote:
>
>
>
> > Compilers usually need full type information before they can tell, who
> > calls who. So this will probably add an additional compile step (or
> > maybe change the compiler architecture?) Still, I think your suggested
> > soultion uses a good approach, and you should create an entry in the
> > issue tracker for this.
>
> > Thinking about it, however, I personally wouldn't include this
> > functionality directly in the compiler: Even if it succeeds and
> > doesn't slow the compiler too much down, it means that the compiler
> > will accept classes that are partially invalid (class B could call
> > anything on class A, the compiler won't be able to check this, if it
> > decides to ignore A). This would create rather strange semantics for
> > "my class compiles successfully" - it depends on the question, if some
> > methods will be used or not.
>
> > However, I see two possible alternative solutions:
>
> > (A) Provide a pre-compiler that removes specially annotated fields. It
> > will be necessary to annotate the methods that access the fields
> > (directly or indirectly), too. Then allow GWTRPC serialization to
> > interact between the two versions of the class.
>
> > or (B) In addition to  in the module xml, there
> > could be an element , which would mean:
> > Don't attempt to compile the java files in that path, but only read
> > their signature (basically treat the classes similar to interfaces).
> > This way, the type information can be provided to the compiler, and it
> > can work as usual. It would require however, that the java file is
> > available to you - you can't use this, if you only have the .class
> > files.
> > [In your case, getaceres, you'd add the package 'pack' to the source-
> > dependency path.]
>
> > I'm a lot more for (A), because it keeps semantics clean. Keep in mind
> > that in reality, you're trying to use different versions of the class
> > on the server and client. All you want is, that you don't have to
> > write and maintain the two similar versions (which is a legitimate
> > reason).
>
> > On Jan 22, 8:48 am, getaceres  wrote:
>
> > > Let's say that you have Class A with a transient method A.field marked
> > > as transient in java or with theGwtTransientannotation:
>
> > > - Mark field A.field and every method in A that uses field as
> > > unavailable.
> > > - If you find in the client code a class that uses A.field or any of
> > > the methods of A marked as unavailable, fail the compilation and
> > > inform the user about "Line X,Y: Use of transient method A.method".
> > > - Now the user either, removes the calling method from its code or
> > > removes the transient keyword from the field.
>
> > > In my case, that wold be enough since I will not ever call any of this
> > > getter or setters in the GWT 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.



Re: How to close browser window with event

2010-02-04 Thread mariyan nenchev
Hi, this not working for me.
Here is what i do:
Window.alert("You have been logged out");
BrowserUtils.close();

BrowserUtils:

public class BrowserUtils {

private BrowserUtils() {

}

native  public static void close()/*-{  $wnd.close();}-*/;
}

-- 
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: Ext/GXT/ExtGWT v2.1.0 vs. SmartGWT v2.0

2010-02-04 Thread Ben
I've been using GXT for a while, and as previous posts have mentioned,
the amount of documentation is pretty sparse. I've been able to
overcome that by relying on their extensive set of demo apps, and by
reading through the API's source code. If you're comfortable reading
someone else's Java code, then you'll be able to figure out how to use
it. IMHO, I'd rather have zero documentation instead of bad/wrong
documentation.

The features I like about GXT are:
  - The UI looks super clean and polished
  - I actually like the layouts managers - I spent too many years
doing Swing, so my brain is warped into understanding things like
BorderLayout.
  - Its developed by the same company/group/people that work on EXT
  - The grid can easily handle "large" sets of data (1000 rows per
page, with delayed rendering). One of the previous posts griped about
no server-side integration, but I disagree - GXT provides objects like
BasePagingLoadConfig and BaseTreeLoader for asynchronous on-demand
loading of data.

I haven't used SmartGWT, so it probably has many of these same nifty
features. I basically had about a day to pick one, and so far GXT
hasn't disappointed me.

Good luck!

-- 
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 with GWT 2.0/UiBinder could be simplified

2010-02-04 Thread FKereki
Hi!

Personally, I do not use the "HasX" methods. The way I use MVP
+UIBinder to create SomeForm is:

* SomeFormView creates its widgets through UiBinder, which are in
SomeFormView.ui.xml. SomeFormView implements SomeFormDisplay (see
below) which is the interface that SomeFormPresenter expects.

* SomeFormDisplay is an interface, that is implemented by
SomeFormView; this includes getters and setters, but doesn't provide
direct access to any widget. This interface also includes methods to
define callbacks, which are used by SomeFormView when it wants to
return data to SomeFormPresenter, or whenever an event occurs that
needs be handled by SomeFormPresenter. Events are linked to these
callbacks by using @UiHandler; the corresponding code just invokes the
appropriate callback.

* SomeFormPresenter receives a SomeFormDisplay object in its
constructor; thus, it cannot interact with the SomeFormView except
through the SomeFormDisplay interface. Just about the first thing
SomeFormPresenter does, is create appropriate callbacks, and set them
(through the SomeFormDisplay setSuchAndSuchCallback(...) methods).

Is this explanation clear? Is this closer to what you expected?

Best regards,
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.



How to integrate gwt with flirck and youtube

2010-02-04 Thread blopes
Hi people,

Can you provide an example of integration with flirck and youtube ?

OR there is an others options to deal with photos and videos, using
any others existing systems ?


Thanks !

Bruno

-- 
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-02-04 Thread getaceres
I chose the wrong letter to describe my algorithm. Going to my
example:

Class A not serializable.
Class B serializable but with a B.field of type A marked as transient.

In this case, only B has to be taken into account, which is the only
class that uses A. The compiler would ignore completely A and mark
B.field and all the methods in B which use B.field as invalid (not
translatable). If any class C uses a method in B which has been marked
as invalid, then the compilation fails. In this case, there isn't any
possible mistake. The only way to use B.field or any invalid method in
B and not declaring it in the code would be to use reflection, which
is not supported by GWT so if the code compiles, it will work for
sure. At least, no one will ever call any method which uses directly
or indirectly something related to A because in that case, the
compilation would have failed.

I don't know much about modern compilers (apart from flex and yacc)
and much less about the GWT compiler, but I don't think that
implementing this would be very complex. On the code analysis of B
(lexical or semantical) you put some information in a Hash Table which
is consulted every time another class uses B.something. Of course,
this will slow the compilation process, specially if B is a overused
class which has a lot of functionality, but at least for me, it would
be worth the extra compilation time just to be able to reduce my
duplicated code.

On 22 ene, 10:43, Chris Lercher  wrote:
> Compilers usually need full type information before they can tell, who
> calls who. So this will probably add an additional compile step (or
> maybe change the compiler architecture?) Still, I think your suggested
> soultion uses a good approach, and you should create an entry in the
> issue tracker for this.
>
> Thinking about it, however, I personally wouldn't include this
> functionality directly in the compiler: Even if it succeeds and
> doesn't slow the compiler too much down, it means that the compiler
> will accept classes that are partially invalid (class B could call
> anything on class A, the compiler won't be able to check this, if it
> decides to ignore A). This would create rather strange semantics for
> "my class compiles successfully" - it depends on the question, if some
> methods will be used or not.
>
> However, I see two possible alternative solutions:
>
> (A) Provide a pre-compiler that removes specially annotated fields. It
> will be necessary to annotate the methods that access the fields
> (directly or indirectly), too. Then allow GWTRPC serialization to
> interact between the two versions of the class.
>
> or (B) In addition to  in the module xml, there
> could be an element , which would mean:
> Don't attempt to compile the java files in that path, but only read
> their signature (basically treat the classes similar to interfaces).
> This way, the type information can be provided to the compiler, and it
> can work as usual. It would require however, that the java file is
> available to you - you can't use this, if you only have the .class
> files.
> [In your case, getaceres, you'd add the package 'pack' to the source-
> dependency path.]
>
> I'm a lot more for (A), because it keeps semantics clean. Keep in mind
> that in reality, you're trying to use different versions of the class
> on the server and client. All you want is, that you don't have to
> write and maintain the two similar versions (which is a legitimate
> reason).
>
> On Jan 22, 8:48 am, getaceres  wrote:
>
>
>
> > Let's say that you have Class A with a transient method A.field marked
> > as transient in java or with theGwtTransientannotation:
>
> > - Mark field A.field and every method in A that uses field as
> > unavailable.
> > - If you find in the client code a class that uses A.field or any of
> > the methods of A marked as unavailable, fail the compilation and
> > inform the user about "Line X,Y: Use of transient method A.method".
> > - Now the user either, removes the calling method from its code or
> > removes the transient keyword from the field.
>
> > In my case, that wold be enough since I will not ever call any of this
> > getter or setters in the GWT 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.



Re: Compiling in subdirectory

2010-02-04 Thread cromoteca
Hi,

thank you again Thomas. A solution might be to compile into /war/dir/
modulename and to use devmode into /war/modulename, pointing to a
different path according to the server I'm running on. I'll try that
approach.

On 4 Feb, 11:30, Thomas Broyer  wrote:
> On Feb 1, 9:13 am, cromoteca  wrote:
>
> > Hi,
>
> > when I compile my module, it gets compiled into /something in the war
> > folder. Is there any way to compile it into /some/thing and run it
> > from there?
>
> The compiler always outputs into a subfolder (named after the module's
> name or rename-to="") of the "war folder" (the one specified with the -
> war argument, defaulting to "war").
>
> You could give it "-war war/some", but then DevMode wouldn't work
> (because it'd use "war/some" as the webapp root, so everything in war/
> wouldn't be reachable, including war/WEB-INF).

-- 
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: Charts in Visualization API -- pushing data

2010-02-04 Thread Sean
http://code.google.com/p/rocket-gwt/wiki/Comet

Comet will allow you to push data from the Server to the Client. I've
never used it personally, but it gets suggested on these boards all
the time.

On Feb 3, 5:47 pm, John Ivens  wrote:
> Suppose that I would want to use the Google Visualization API and somehow
> have events pushing data into a line graph... fairly rapidly.
> I would want this line graph to real-time update itself.  So, let's say I
> would want it to continuously graph the last 10 data points that it had
> recieved, updating the time axis labels and the data points and line
> appropriately... is this possible?
>
> Anyone have an example of somehow tying the data source to events from the
> server side?
>
> I would also like real-time updating of gauges, if possible... is it
> possible?

-- 
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: forget DTO, Dozer and Gilead use @GwtTransient [tested on GWT 2.0.X]

2010-02-04 Thread getaceres
We were discussing that annotation in this thread:

http://groups.google.com/group/google-web-toolkit/browse_thread/thread/71e0e7ca92425ad/0f1d4d5cf52875cb?lnk=gst&q...@gwttransient+#0f1d4d5cf52875cb

The annotation only works if all your classes with all the relation
classes belongs to the GWT module and all of them are serializable by
GWT.
If you have class A which is not serializable by GWT and class B which
is serializable but has a relation to class A (through a field and
their corresponding getter and setters), no matter if you use the
GwtTransient annotation, the compilation will fail saying that class A
is not serializable or that it does not belong to the module and that
it cannot find the source code.

On 4 feb, 14:12, Christian Goudreau 
wrote:
> Huh, is that documented !? I don't understand why we didn't heard about this
> before.
>
> Christian
>
>
>
> On Thu, Feb 4, 2010 at 8:05 AM, Marcos Alcantara  wrote:
> > Hi Diego,
>
> > Are you sure of this?
>
> > It would be great to stop using a 3rd party lib to process all DTO´s.
>
> > Thanks!
>
> > Marcos Alcantara
>
> > On 4 fev, 08:07, Diego Lovison  wrote:
> > > In GWT 2.0.x you can use the annotations of the JPA and JDO without
> > > problems and without using any additional library. Your source code
> > > will be compiled normally. No exception (SerializableException) will
> > > occur.
>
> > > So what's the problem:
> > > In a relationship one-to-many, when the GWT tries to serialize this
> > > attribute that is a "List", will probably return an exception
> > > (LazyInitializationException). Return an attribute that has a
> > > relationship one-to-many is not good for various reasons, the
> > > principal is the performace.
>
> > > Solution
> > > Add the annotation @GwtTransient above in the attribute "List" and
> > > everything will work normally.
>
> > > Advantage:
> > > You use a native GWT solution to deal with this type of information.
> > > Decreases some jars in your application, and get 10 ~ 200ms each
> > > request.
>
> > --
> > 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.



Re: forget DTO, Dozer and Gilead use @GwtTransient [tested on GWT 2.0.X]

2010-02-04 Thread Christian Goudreau
Forget what I said about the documentation. But still, I never used
Annotation, I'll have to take a deeper look into this.

Christian

On Thu, Feb 4, 2010 at 8:12 AM, Christian Goudreau <
goudreau.christ...@gmail.com> wrote:

> Huh, is that documented !? I don't understand why we didn't heard about
> this before.
>
> Christian
>
>
> On Thu, Feb 4, 2010 at 8:05 AM, Marcos Alcantara wrote:
>
>> Hi Diego,
>>
>> Are you sure of this?
>>
>> It would be great to stop using a 3rd party lib to process all DTO´s.
>>
>> Thanks!
>>
>> Marcos Alcantara
>>
>> On 4 fev, 08:07, Diego Lovison  wrote:
>> > In GWT 2.0.x you can use the annotations of the JPA and JDO without
>> > problems and without using any additional library. Your source code
>> > will be compiled normally. No exception (SerializableException) will
>> > occur.
>> >
>> > So what's the problem:
>> > In a relationship one-to-many, when the GWT tries to serialize this
>> > attribute that is a "List", will probably return an exception
>> > (LazyInitializationException). Return an attribute that has a
>> > relationship one-to-many is not good for various reasons, the
>> > principal is the performace.
>> >
>> > Solution
>> > Add the annotation @GwtTransient above in the attribute "List" and
>> > everything will work normally.
>> >
>> > Advantage:
>> > You use a native GWT solution to deal with this type of information.
>> > Decreases some jars in your application, and get 10 ~ 200ms each
>> > request.
>>
>> --
>> 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: Embedded jetty

2010-02-04 Thread gcstang
You can setup JNDI if this is what you mean.

Create a file in your war/WEB-INF as jetty-web.xml (MySQL example)


http://jetty.mortbay.org/configure.dtd";>





java:comp/env/jdbc/database


jdbc:mysql://localhost:
3306/mydatabase
username
password






You also need to add two jars (plus whatever you would need for your
driver) to your WEB-INF/lib folder :
jetty-naming-6.1.3.jar
jetty-plus-6.1.3.jar


On Feb 2, 1:12 pm, Thom with an H  wrote:
> I'm trying to modify the jetty.xml file so I can define JDBC settings
> for my jetty instance, but I can't seem to find where to do this with
> the embedded jetty that comes with GWT. Does anyone have an idea?

-- 
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: forget DTO, Dozer and Gilead use @GwtTransient [tested on GWT 2.0.X]

2010-02-04 Thread Christian Goudreau
Huh, is that documented !? I don't understand why we didn't heard about this
before.

Christian

On Thu, Feb 4, 2010 at 8:05 AM, Marcos Alcantara  wrote:

> Hi Diego,
>
> Are you sure of this?
>
> It would be great to stop using a 3rd party lib to process all DTO´s.
>
> Thanks!
>
> Marcos Alcantara
>
> On 4 fev, 08:07, Diego Lovison  wrote:
> > In GWT 2.0.x you can use the annotations of the JPA and JDO without
> > problems and without using any additional library. Your source code
> > will be compiled normally. No exception (SerializableException) will
> > occur.
> >
> > So what's the problem:
> > In a relationship one-to-many, when the GWT tries to serialize this
> > attribute that is a "List", will probably return an exception
> > (LazyInitializationException). Return an attribute that has a
> > relationship one-to-many is not good for various reasons, the
> > principal is the performace.
> >
> > Solution
> > Add the annotation @GwtTransient above in the attribute "List" and
> > everything will work normally.
> >
> > Advantage:
> > You use a native GWT solution to deal with this type of information.
> > Decreases some jars in your application, and get 10 ~ 200ms each
> > request.
>
> --
> 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: forget DTO, Dozer and Gilead use @GwtTransient [tested on GWT 2.0.X]

2010-02-04 Thread philippe
GwtTransient means that this attribute isn't serialized.

So if your List is not null you don't serialized this.


On 4 fév, 14:05, Marcos Alcantara  wrote:
> Hi Diego,
>
> Are you sure of this?
>
> It would be great to stop using a 3rd party lib to process all DTO´s.
>
> Thanks!
>
> Marcos Alcantara
>
> On 4 fev, 08:07, Diego Lovison  wrote:
>
>
>
> > In GWT 2.0.x you can use the annotations of the JPA and JDO without
> > problems and without using any additional library. Your source code
> > will be compiled normally. No exception (SerializableException) will
> > occur.
>
> > So what's the problem:
> > In a relationship one-to-many, when the GWT tries to serialize this
> > attribute that is a "List", will probably return an exception
> > (LazyInitializationException). Return an attribute that has a
> > relationship one-to-many is not good for various reasons, the
> > principal is the performace.
>
> > Solution
> > Add the annotation @GwtTransient above in the attribute "List" and
> > everything will work normally.
>
> > Advantage:
> > You use a native GWT solution to deal with this type of information.
> > Decreases some jars in your application, and get 10 ~ 200ms each
> > request.

-- 
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: forget DTO, Dozer and Gilead use @GwtTransient [tested on GWT 2.0.X]

2010-02-04 Thread Marcos Alcantara
Hi Diego,

Are you sure of this?

It would be great to stop using a 3rd party lib to process all DTO´s.

Thanks!

Marcos Alcantara

On 4 fev, 08:07, Diego Lovison  wrote:
> In GWT 2.0.x you can use the annotations of the JPA and JDO without
> problems and without using any additional library. Your source code
> will be compiled normally. No exception (SerializableException) will
> occur.
>
> So what's the problem:
> In a relationship one-to-many, when the GWT tries to serialize this
> attribute that is a "List", will probably return an exception
> (LazyInitializationException). Return an attribute that has a
> relationship one-to-many is not good for various reasons, the
> principal is the performace.
>
> Solution
> Add the annotation @GwtTransient above in the attribute "List" and
> everything will work normally.
>
> Advantage:
> You use a native GWT solution to deal with this type of information.
> Decreases some jars in your application, and get 10 ~ 200ms each
> request.

-- 
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: GoogleMaps gwt-maps Tiles don't align or fill the Widget.

2010-02-04 Thread Andrew Winter
I had the same problem. This timer suggestion fixed it for me (though
I still wonder if it's raceable):

http://groups.google.com/group/google-web-toolkit/browse_thread/thread/3cc67a8e3b4b76a7/5b3c0b9f95875957?lnk=gst&q=layouts+maps#5b3c0b9f95875957


On Feb 4, 2:03 am, ahhughes  wrote:
> Hi All,
>
> I suspect this is an easy one, sorry I can't find the answer.
>
> Adding a MapWidget directly to the RootPanel().get().add() works! But
> if I add my MapWidget into a TabPanel then the map tile/layers aren't
> where they are supposed to be. I have grey "background" visible where
> tile's should be, and the maps is probably aligning itself to 0,0. I
> have also tried to wrap this in an AbsolutePanel with no success.
>
> Here's my code:
> public class SimpleMapWidget extends Composite {
>
>         public SimpleMapWidget() {
>                 AbsolutePanel absolutePanel = new AbsolutePanel();
>                 absolutePanel.setWidth("640px");
>                 absolutePanel.setHeight("480px");
>                 LatLng latLng = LatLng.newInstance(0, 0);
>                 final MapWidget map = new MapWidget(latLng, 16);
>                 map.setSize("640px", "480px");
>                 map.addControl(new LargeMapControl());
>                 map.addOverlay(new Marker(latLng));
>                 absolutePanel.add(map);
>                 initWidget(absolutePanel);
>         }
>
> }
>
> CHEERS IN ADVANCE :)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-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 server side in maven

2010-02-04 Thread יוסף נוגידאת
hello Ignat

No i do not have any errors


On Thu, Feb 4, 2010 at 2:31 PM, Ignat Alexeyenko
wrote:

> Hi
>
> Do you have any errors during maven work?
>
> --
> Kind regards,
> Ignat Alexeyenko.
>
> On Thu, Feb 4, 2010 at 11:13 AM, joe7935  wrote:
>
>> Hello all,
>> I try to build a project in maven and gwt with server side.
>> so i select to use a gwt-maven-plugin archetype as a maven project .
>>
>> here is my app :
>>
>> public class Application implements EntryPoint
>> {
>>
>>  public void onModuleLoad()
>>  {
>>  final Button button = new Button();
>>  final Label label = new Label("only for test");
>>
>>
>>  button.addClickHandler(new ClickHandler()
>>  {
>>public void onClick(ClickEvent arg0)
>>{
>>GetStringServiceAsync service =
>> (GetStringServiceAsync)
>> GWT.create(GetStringService.class);
>>service.getString("1", "2",new
>> AsyncCallback()
>>{
>>public void
>> onSuccess(String res)
>>{
>>label.setText(res);
>>}
>>
>>public void
>> onFailure(Throwable arg0)
>>{
>>
>>  label.setText("Error Connection");
>>}
>>});
>>}
>>});
>> RootPanel.get().add(button);
>> RootPanel.get().add(label);
>>  }
>> }
>>
>>
>>
>> server interface :
>>
>> public interface GetStringService extends RemoteService
>> {
>>public String getString(String name, String pass);
>> }
>>
>> public interface GetStringServiceAsync
>> {
>>void getString(String name,String pass,AsyncCallback
>> callback );
>> }
>>
>>
>> server Impi..
>> @SuppressWarnings("serial")
>> public class GetStringImpl extends RemoteServiceServlet implements
>> GetStringService
>> {
>>public String getString(String name, String pass)
>>{
>>return "Hello every body ...";
>>}
>> }
>>
>>
>> POM file :
>>
>>
>> 
>> http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://
>> www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://
>> maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";>
>>  
>>  4.0.0
>>  com.hp.bsrm
>>  ttt
>>  war
>>  0.0.1-SNAPSHOT
>>
>>  
>>
>>  
>>  2.0.0
>>
>>  
>>  1.5
>>  1.5
>>
>>  
>>
>>  
>>
>>  
>>
>>  com.google.gwt
>>  gwt-servlet
>>  ${gwt.version}
>>  runtime
>>
>>
>>  com.google.gwt
>>  gwt-user
>>  ${gwt.version}
>>  provided
>>
>>
>>
>>
>>  junit
>>  junit
>>  4.7
>>  test
>>
>>  
>>
>>  
>>war/WEB-INF/classes
>>
>>  
>>org.codehaus.mojo
>>gwt-maven-plugin
>>1.2
>>
>>  
>>
>>  compile
>>  test
>>
>>  
>>
>>
>>  com.hp.bsrm.ttt.Application/Application.html> runTarget>
>>
>>  
>>  
>>  
>>org.mortbay.jetty
>>maven-jetty-plugin
>>6.1.19
>>
>>
>>> implementation="org.mortbay.resource.ResourceCollection">
>>
>>src/main/webapp,$
>> {project.build.directory}/${project.build.finalName}
>>   
>>
>>
>>
>>
>>
>>
>>  
>>  org.apache.maven.plugins
>>  maven-compiler-plugin
>>  2.0.2
>>  
>>${maven.compiler.source}
>>${maven.compiler.target}
>>  
>>  
>>
>>  
>>
>> 
>>
>>
>> web.xml file :
>>
>> 
>> >PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
>>"http://java.sun.com/dtd/web-app_2_3.dtd";>
>>
>> 
>>
>>  
>>  
>>greetServlet
>>com.hp.bsrm.ttt.server.GreetingServiceImpl> class>
>>  
>>
>>  
>>greetServlet
>>/ttt/greet
>>  
>>
>>  
>>  
>>Ttt.html
>>  
>>
>> 
>>
>>
>> I try to run the project in debug mode , when i try to get to server
>> the project fielad
>>
>>
>> please me.
>> 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 Toolki

Re: Remove element on host page

2010-02-04 Thread Ian Bambury
Get the body element and set the innerhtml to ""

Ian

http://examples.roughian.com


On 4 February 2010 12:26, obesga  wrote:

> Hello
>
> I have a div element into the host page, just a 'please wait' advice
> while the gwt code loads.
>
> 
> 
>  
>
>  
>  
>  Loading application, please wait...
>  
> 
>
> And I want to remove it from body when module loads, but I can't I
> can make it dissapear by making the div invisible; but that isn't what
> I want. This is what I've tried so far:
>
>   public void onModuleLoad() {
>   GWT.log("onLoad ",null); //TOLOG
>   RootPanel.get().clear();
>   if (RootPanel.get("esperePorFavor")!= null) {
>   RootPanel.get("esperePorFavor").setVisible(false);
>   RootPanel.get("esperePorFavor").clear();
>   RootPanel.get("esperePorFavor").removeFromParent();
>   }
>//
> }
>
> Has anyone other solution ?
>
> Thanks in advance
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-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 server side in maven

2010-02-04 Thread Ignat Alexeyenko
Hi

Do you have any errors during maven work?

--
Kind regards,
Ignat Alexeyenko.

On Thu, Feb 4, 2010 at 11:13 AM, joe7935  wrote:

> Hello all,
> I try to build a project in maven and gwt with server side.
> so i select to use a gwt-maven-plugin archetype as a maven project .
>
> here is my app :
>
> public class Application implements EntryPoint
> {
>
>  public void onModuleLoad()
>  {
>  final Button button = new Button();
>  final Label label = new Label("only for test");
>
>
>  button.addClickHandler(new ClickHandler()
>  {
>public void onClick(ClickEvent arg0)
>{
>GetStringServiceAsync service =
> (GetStringServiceAsync)
> GWT.create(GetStringService.class);
>service.getString("1", "2",new
> AsyncCallback()
>{
>public void onSuccess(String
> res)
>{
>label.setText(res);
>}
>
>public void
> onFailure(Throwable arg0)
>{
>label.setText("Error
> Connection");
>}
>});
>}
>});
> RootPanel.get().add(button);
> RootPanel.get().add(label);
>  }
> }
>
>
>
> server interface :
>
> public interface GetStringService extends RemoteService
> {
>public String getString(String name, String pass);
> }
>
> public interface GetStringServiceAsync
> {
>void getString(String name,String pass,AsyncCallback
> callback );
> }
>
>
> server Impi..
> @SuppressWarnings("serial")
> public class GetStringImpl extends RemoteServiceServlet implements
> GetStringService
> {
>public String getString(String name, String pass)
>{
>return "Hello every body ...";
>}
> }
>
>
> POM file :
>
>
> 
> http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://
> www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://
> maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";>
>  
>  4.0.0
>  com.hp.bsrm
>  ttt
>  war
>  0.0.1-SNAPSHOT
>
>  
>
>  
>  2.0.0
>
>  
>  1.5
>  1.5
>
>  
>
>  
>
>  
>
>  com.google.gwt
>  gwt-servlet
>  ${gwt.version}
>  runtime
>
>
>  com.google.gwt
>  gwt-user
>  ${gwt.version}
>  provided
>
>
>
>
>  junit
>  junit
>  4.7
>  test
>
>  
>
>  
>war/WEB-INF/classes
>
>  
>org.codehaus.mojo
>gwt-maven-plugin
>1.2
>
>  
>
>  compile
>  test
>
>  
>
>
>  com.hp.bsrm.ttt.Application/Application.html runTarget>
>
>  
>  
>  
>org.mortbay.jetty
>maven-jetty-plugin
>6.1.19
>
>
> implementation="org.mortbay.resource.ResourceCollection">
>
>src/main/webapp,$
> {project.build.directory}/${project.build.finalName}
>   
>
>
>
>
>
>
>  
>  org.apache.maven.plugins
>  maven-compiler-plugin
>  2.0.2
>  
>${maven.compiler.source}
>${maven.compiler.target}
>  
>  
>
>  
>
> 
>
>
> web.xml file :
>
> 
> PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
>"http://java.sun.com/dtd/web-app_2_3.dtd";>
>
> 
>
>  
>  
>greetServlet
>com.hp.bsrm.ttt.server.GreetingServiceImpl class>
>  
>
>  
>greetServlet
>/ttt/greet
>  
>
>  
>  
>Ttt.html
>  
>
> 
>
>
> I try to run the project in debug mode , when i try to get to server
> the project fielad
>
>
> please me.
> 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.



Remove element on host page

2010-02-04 Thread obesga
Hello

I have a div element into the host page, just a 'please wait' advice
while the gwt code loads.



  

  
  
  Loading application, please wait...
  


And I want to remove it from body when module loads, but I can't I
can make it dissapear by making the div invisible; but that isn't what
I want. This is what I've tried so far:

   public void onModuleLoad() {
   GWT.log("onLoad ",null); //TOLOG
   RootPanel.get().clear();
   if (RootPanel.get("esperePorFavor")!= null) {
   RootPanel.get("esperePorFavor").setVisible(false);
   RootPanel.get("esperePorFavor").clear();
   RootPanel.get("esperePorFavor").removeFromParent();
   }
//
 }

Has anyone other solution ?

Thanks in advance

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-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 server side and maven

2010-02-04 Thread יוסף נוגידאת
thanks Ignat,

do you have an example please ?
thank you

On Thu, Feb 4, 2010 at 10:45 AM, Ignat Alexeyenko  wrote:

> Hi.
>
> Recently I've migrated my project to Maven.
> There is nothing important there - just login form and 1 RPC call (project
> is only started).
>
> But the project is using maven with gwt plugin for GWT 2.0 compilation.
> http://sourceforge.net/projects/simpleworklog/
>
> Just checkout it somewhere and launch from project root:
> *mvn package *
>
> --
> Kind regards,
> Ignat Alexeyenko.
>
> On Wed, Feb 3, 2010 at 10:35 AM, joe7935  wrote:
>
>> Hello all,
>>
>> I try to build a  gwt server side project in maven .
>> I was looking for example in the web , i found examples in this site :
>> http://code.google.com/p/gwt-maven/
>>
>> I have some questions :
>>
>> 1. Do I have to start with maven project ( by selected an archetype
>> maven-gwt-plugin)
>> 2. if any one have an example , i love to get it.
>>
>> please please help me.
>> 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.
>

-- 
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: Integrating GWT features into my existing app?

2010-02-04 Thread UJ
The compiled GWT javascript code is highly optimized and obfuscated.
Did you consider using Rich Faces components?

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



forget DTO, Dozer and Gilead use @GwtTransient [tested on GWT 2.0.X]

2010-02-04 Thread Diego Lovison
In GWT 2.0.x you can use the annotations of the JPA and JDO without
problems and without using any additional library. Your source code
will be compiled normally. No exception (SerializableException) will
occur.

So what's the problem:
In a relationship one-to-many, when the GWT tries to serialize this
attribute that is a "List", will probably return an exception
(LazyInitializationException). Return an attribute that has a
relationship one-to-many is not good for various reasons, the
principal is the performace.

Solution
Add the annotation @GwtTransient above in the attribute "List" and
everything will work normally.

Advantage:
You use a native GWT solution to deal with this type of information.
Decreases some jars in your application, and get 10 ~ 200ms each
request.

-- 
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: IE bug in vertical sizing of elements

2010-02-04 Thread Thomas Broyer


On Feb 3, 8:05 pm, Thad  wrote:
> I have the requirement read to display widgets, rendering them similar
> to how they display in a Mac/Windows application (not a web app, but a
> client that provides forms for a database). The widgets are fairly
> common things--labels, text boxes, checkboxes, pictures, etc.  The
> display is dynamic--the widgets are declared in an XML file over which
> I've no control.  I'm using an AbsolutePanel for placement.
>
> I've recreated all the widgets and their behavior for Firefox, Safari,
> and, with one exception, IE.  That exception is the requirement to
> draw a line.  The line can be horizontal or vertical and of any width,
> height, or color.  I created a line by extending a SimplePanel, with
> methods for setting the pixel size and backgroundColor as I read them
> from the XML file.
>
> The problem is that IE (I'm testing with IE7) insists that any 
> be a minimum of 20px (as best as my eye can judge).  So a gray line of
> one pixel high will render correctly in Safari or Firefox, but will
> become a 20px high block of gray.
>
> The results are the same if I try Label or HTML, so the problem must
> be in how IE sizes a .  Does anyone have any ideas how I can fix
> or work around this?

If I were you, I'd install the IE Developer Toolbar (from Microsoft)
to check which styles are applied to the div. It might be something
related to default styles that you could override, or some weird
cascading/inheritence.
Also, switch to "standards mode" if your not already (just start your
HTML page with ""), as it could also be an issue with
the "box model", which is utterly "broken" in IE in "quirks mode":
http://en.wikipedia.org/wiki/Internet_Explorer_box_model_bug

-- 
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: Compiling in subdirectory

2010-02-04 Thread Thomas Broyer

On Feb 1, 9:13 am, cromoteca  wrote:
> Hi,
>
> when I compile my module, it gets compiled into /something in the war
> folder. Is there any way to compile it into /some/thing and run it
> from there?

The compiler always outputs into a subfolder (named after the module's
name or rename-to="") of the "war folder" (the one specified with the -
war argument, defaulting to "war").

You could give it "-war war/some", but then DevMode wouldn't work
(because it'd use "war/some" as the webapp root, so everything in war/
wouldn't be reachable, including war/WEB-INF).

-- 
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: Development Mode Performance - Any Options?

2010-02-04 Thread Thomas Broyer

On Feb 3, 11:24 pm, Erron  wrote:
> My performance of development mode seems to be much slower than hosted
> mode (pre-2.0).  I frequently get the prompt that the script is taking
> too long, would I like to abort (FF and Chrome).  I was wondering are
> there some other options I can try to see if I can increase my
> performance. I don't think this is application related cause other
> team members seem to have acceptable performance. It's probably
> machine related.

The DevMode browser plugin communicates with the DevMode application
through a socket, and it's been reported that in some cases (in GWT
2.0.0) it hits the network instead of the loopback interface, which is
obviously much slower.
This is somehow fixed in GWT 2.0.1 by having DevMode *only* bind to
the loopback by default.

See the 2.0.1 release notes:
http://code.google.com/webtoolkit/release-notes.html#Release_Notes_Current

-- 
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 internet explorer 7 devmode issue?

2010-02-04 Thread Thomas Broyer


On Feb 2, 10:09 pm, fark  wrote:
> I'm having difficulties with ie7 devmode on windows xp and gwt 2.0.
> Basically if I click a link in ie while running the app, the url is
> replaced and the application reloads if there are history tokens.
>
> A simple test showing the url modification (note this does not reload
> the app as there are no tokens, but does show the url modification I
> am seeing) . Create a generic test application using eclipse gwt
> plugin and add this code to onModuleLoad()
>
>                 StringBuilder htmlString = new StringBuilder(
>                                 ""
>                                                 + " onclick='javascript:navigateTo(\"HOME
> \");return false;'>"

onclick='navigateTo(\"HOME\");return false;'>

Not sure if it'll fix your issue, but using "javascript:" within
"event attributes" isn't even supposed to 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: GWT 2.0 and java Generic

2010-02-04 Thread Thomas Broyer

On Feb 2, 4:25 pm, Jinat  wrote:
> Does GWT 2.0 surpports java 1.6 Generic syntax?

Er, you mean Java 5 ?
http://java.sun.com/javase/6/docs/technotes/guides/language/enhancements.html

Support for generics was added in GWT 1.5.

-- 
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 with GWT 2.0/UiBinder could be simplified

2010-02-04 Thread Thomas Broyer


On Feb 3, 5:51 am, mahjong  wrote:
>
> Personally, I don't like the "Presenter.Display" approach where you
> define a bunch of methods returning "HasClickHandler", "HasText",
> "HasValue" type of things - though the presenter no longer cares about
> the UI layout, it still needs to know about the component types in
> that UI. How clean is such a separation?
>
> To summarize, I would like to leverage UiBinder as View, and its
> corresponding same-name java class as Presenter, and fire events
> directly inside "@UiHandler" annotated methods. And that's it.
>
> Any thoughts, anyone?

The whole point of MVP *in GWT* is to make the presenter only depend
on "pure Java" classes, so you can unit test it in pure Java (no
GWTTestCase involved), which saves you precious seconds.
The goal is absolutely not to make it possible to exchange the view
with another implementation.

In practice, it also happens that you generally deal with styling et
al. in response to events; this much better fits in the view than in
the presenter where you won't be interested into such details (the
presenter doesn't care whether "view.highlight()" sets borders, a
different background, makes text bold or blinking, either by
manipulating the widget's getElement().getStyle() or setStyleName();
the presenter doesn't care whether a "button" is actually a Button or
a PushButton, or a Label or HTML, provided it HasClickHandlers; etc.)

It's all about pragmatic, not at all about overengineering. The idea
is to have as much things as possible in the presenter so you can unit
test it, but nothing that depends on JSNI (i.e. no Widget) so you can
unit test in pure Java.

You should really (re)watch Ray Ryan's talk:
http://code.google.com/events/io/2009/sessions/GoogleWebToolkitBestPractices.html

But in the end, this is all just a suggestion. You should do what you
think is OK, not what people tell you is OK. (but if you refuse to
follow some "best practice", you'd better understand what it's meant
to be useful for, what problems it addresses, etc. and compare this to
the pros and cons of your own approach before making a choice)

-- 
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: Compiling in subdirectory

2010-02-04 Thread cromoteca
Hi,

thank you for your answer. It looks like I've not expressed my
question correctly, my fault since English is not my language.

I'm referring to GWT compilation, not Java compilation. To better
organize my project, I'd like to put GWT files (mymodule.nocache.js,
MD5*.html, gwt.rpc and so on) in /somedir/somesubdir inside the war
directory, but I've only been able to put them into /somedir

On 3 Feb, 20:46, UJ  wrote:
> Since the GWT application is a web application, it follows the default
> web application deployment pattern (see more details 
> on:http://onjava.com/pub/a/onjava/2001/03/15/tomcat.html).
>
> We can add any jar or compiled classes to our web application by
> adding them to the application server class path entries.
>
> For example, if you are deploying your GWT application on tomcat,
> refer 
> this:http://kennywest.blogspot.com/2006/02/java-extending-classpath-in-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: SuggestBox hides RootLayoutPanel and all its contents

2010-02-04 Thread hriess
Thank you, Stefano. I've seen this solution already in Issue 4352 -
but I don't understand, how it works. Unfortunately it solves only the
problem with the SuggestBox , not with some of my PopupPanel based
widgets.

-- 
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: Ext/GXT/ExtGWT v2.1.0 vs. SmartGWT v2.0

2010-02-04 Thread mariyan nenchev
Yes it has very fancy widgets but the integration with the server side is
killing unless you decide to purchase pro/ee, which is why it is done that
way, to show the devs how rich library it is and when they began to use it
they understand that they must buy pro/ee else they will code hundreds lines
of code to do something simple. No body told me how many steps are needed to
list some data in table if your backend is EJBs and you are using GWT-RPC?

On Thu, Feb 4, 2010 at 2:26 AM, ckendrick wrote:

> Re: widgets inside grid rows: not only is it "out of the box" in
> SmartGWT, there are multiple out of the box modes for it, including
> nested editable grids.
>
>http://www.smartclient.com/smartgwt/showcase/#featured_nested_grid
>
> http://www.smartclient.com/smartgwtee/javadoc/com/smartgwt/client/types/ExpansionMode.html
>
> In the latest nightlies you can play with yet another level of
> sophistication, for release in 2.1:
>
> 1. general purpose APIs for attaching components to any individual
> cell or row, with multiple sizing modes
> 2. support for automatic pooling of components at the record level,
> for use cases where you have components in most/every row and you are
> paging through a large dataset and need to re-use a pool of components
> attached to the currently visible records
>
> If it's a "positive" experience to have to fix a lot of bugs, and have
> to add missing features, can't wait to see what you guys say when you
> evaluate SmartGWT for your next project ;)
>
> --
> 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 server side in maven

2010-02-04 Thread יוסף נוגידאת
Is any thing wrong ???

On Thu, Feb 4, 2010 at 11:13 AM, joe7935  wrote:

> Hello all,
> I try to build a project in maven and gwt with server side.
> so i select to use a gwt-maven-plugin archetype as a maven project .
>
> here is my app :
>
> public class Application implements EntryPoint
> {
>
>  public void onModuleLoad()
>  {
>  final Button button = new Button();
>  final Label label = new Label("only for test");
>
>
>  button.addClickHandler(new ClickHandler()
>  {
>public void onClick(ClickEvent arg0)
>{
>GetStringServiceAsync service =
> (GetStringServiceAsync)
> GWT.create(GetStringService.class);
>service.getString("1", "2",new
> AsyncCallback()
>{
>public void onSuccess(String
> res)
>{
>label.setText(res);
>}
>
>public void
> onFailure(Throwable arg0)
>{
>label.setText("Error
> Connection");
>}
>});
>}
>});
> RootPanel.get().add(button);
> RootPanel.get().add(label);
>  }
> }
>
>
>
> server interface :
>
> public interface GetStringService extends RemoteService
> {
>public String getString(String name, String pass);
> }
>
> public interface GetStringServiceAsync
> {
>void getString(String name,String pass,AsyncCallback
> callback );
> }
>
>
> server Impi..
> @SuppressWarnings("serial")
> public class GetStringImpl extends RemoteServiceServlet implements
> GetStringService
> {
>public String getString(String name, String pass)
>{
>return "Hello every body ...";
>}
> }
>
>
> POM file :
>
>
> 
> http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://
> www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://
> maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";>
>  
>  4.0.0
>  com.hp.bsrm
>  ttt
>  war
>  0.0.1-SNAPSHOT
>
>  
>
>  
>  2.0.0
>
>  
>  1.5
>  1.5
>
>  
>
>  
>
>  
>
>  com.google.gwt
>  gwt-servlet
>  ${gwt.version}
>  runtime
>
>
>  com.google.gwt
>  gwt-user
>  ${gwt.version}
>  provided
>
>
>
>
>  junit
>  junit
>  4.7
>  test
>
>  
>
>  
>war/WEB-INF/classes
>
>  
>org.codehaus.mojo
>gwt-maven-plugin
>1.2
>
>  
>
>  compile
>  test
>
>  
>
>
>  com.hp.bsrm.ttt.Application/Application.html runTarget>
>
>  
>  
>  
>org.mortbay.jetty
>maven-jetty-plugin
>6.1.19
>
>
> implementation="org.mortbay.resource.ResourceCollection">
>
>src/main/webapp,$
> {project.build.directory}/${project.build.finalName}
>   
>
>
>
>
>
>
>  
>  org.apache.maven.plugins
>  maven-compiler-plugin
>  2.0.2
>  
>${maven.compiler.source}
>${maven.compiler.target}
>  
>  
>
>  
>
> 
>
>
> web.xml file :
>
> 
> PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
>"http://java.sun.com/dtd/web-app_2_3.dtd";>
>
> 
>
>  
>  
>greetServlet
>com.hp.bsrm.ttt.server.GreetingServiceImpl class>
>  
>
>  
>greetServlet
>/ttt/greet
>  
>
>  
>  
>Ttt.html
>  
>
> 
>
>
> I try to run the project in debug mode , when i try to get to server
> the project fielad
>
>
> please me.
> 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: Problem with Thread in GWT2.0

2010-02-04 Thread mariyan nenchev
Java script is sigle threaded, you can not use threads in the client side of
gwt project. Just use AcyncCallback.

On Thu, Feb 4, 2010 at 2:18 AM, SergeZ  wrote:

> Hi everybody! I meat the following problem.  When my GWT app is
> started it is very necessary to make an asynchronous call - to gether
> some data.   If i make this call directly from OnModuleLoad() method -
> then i getting the result, but when I putting the call of my method in
> a thread:
>
> OnModuleLoad() {
> ...
>
> Runnable a = new Rannable()
> {
> public void run()
> {
> RS.rmiService(new AsyncCallback(){
> public void onFailure(Throwable a)
>{
> }
> public void onSuccess(String result)
>  {
>Window.alert(result);
>  }
>
> }
>
> }
> };
>
> .
> }
>
> then I receive NOTHING - there is no any popup window with the result
> of my Async;
>
> So, what I doing wrong ? May be I just not correctly work with threads
> in GWT, or  may be they are not supported in GWT? Please, help me with
> your advice - how can I receive the result of my async method from
> separate thread.
>
> --
> 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: Is this bug fixed?

2010-02-04 Thread mariyan nenchev
OK, i will do it. But any suggestions for workaround, i need this quickly.

-- 
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 server side in maven

2010-02-04 Thread joe7935
Hello all,
I try to build a project in maven and gwt with server side.
so i select to use a gwt-maven-plugin archetype as a maven project .

here is my app :

public class Application implements EntryPoint
{

  public void onModuleLoad()
  {
  final Button button = new Button();
  final Label label = new Label("only for test");


  button.addClickHandler(new ClickHandler()
  {
public void onClick(ClickEvent arg0)
{
GetStringServiceAsync service = (GetStringServiceAsync)
GWT.create(GetStringService.class);
service.getString("1", "2",new AsyncCallback()
{
public void onSuccess(String 
res)
{
label.setText(res);
}

public void onFailure(Throwable 
arg0)
{
label.setText("Error 
Connection");
}
});
}
});
 RootPanel.get().add(button);
 RootPanel.get().add(label);
  }
}



server interface :

public interface GetStringService extends RemoteService
{
public String getString(String name, String pass);
}

public interface GetStringServiceAsync
{
void getString(String name,String pass,AsyncCallback
callback );
}


server Impi..
@SuppressWarnings("serial")
public class GetStringImpl extends RemoteServiceServlet implements
GetStringService
{
public String getString(String name, String pass)
{
return "Hello every body ...";
}
}


POM file :



http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://
www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://
maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";>
  
  4.0.0
  com.hp.bsrm
  ttt
  war
  0.0.1-SNAPSHOT

  

  
  2.0.0

  
  1.5
  1.5

  

  

  

  com.google.gwt
  gwt-servlet
  ${gwt.version}
  runtime


  com.google.gwt
  gwt-user
  ${gwt.version}
  provided




  junit
  junit
  4.7
  test

  

  
war/WEB-INF/classes

  
org.codehaus.mojo
gwt-maven-plugin
1.2

  

  compile
  test

  


  com.hp.bsrm.ttt.Application/Application.html

  
  
  
org.mortbay.jetty
maven-jetty-plugin
6.1.19




src/main/webapp,$
{project.build.directory}/${project.build.finalName}
   






  
  org.apache.maven.plugins
  maven-compiler-plugin
  2.0.2
  
${maven.compiler.source}
${maven.compiler.target}
  
  

  




web.xml file :


http://java.sun.com/dtd/web-app_2_3.dtd";>



  
  
greetServlet
com.hp.bsrm.ttt.server.GreetingServiceImpl
  

  
greetServlet
/ttt/greet
  

  
  
Ttt.html
  




I try to run the project in debug mode , when i try to get to server
the project fielad


please me.
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 server side and maven

2010-02-04 Thread olivier nouguier
Hi
 Take a look at http://code.google.com/p/orcades-gwt-spring/
 I use maven, wtp and GWT.
 But AFAIK, the  springframework && jetty embed server doesn't fit well and
I cannot use jettty embed server.

On Wed, Feb 3, 2010 at 9:35 AM, joe7935  wrote:

> Hello all,
>
> I try to build a  gwt server side project in maven .
> I was looking for example in the web , i found examples in this site :
> http://code.google.com/p/gwt-maven/
>
> I have some questions :
>
> 1. Do I have to start with maven project ( by selected an archetype
> maven-gwt-plugin)
> 2. if any one have an example , i love to get it.
>
> please please help me.
> 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.
>
>


-- 
A coward is incapable of exhibiting love; it is the prerogative of the
brave.
--
Mohandas Gandhi

-- 
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: Upgrade problem 1.7 --> 2.0

2010-02-04 Thread Rokesh
hi,


this might be useful when switching back to GWT 1.7 from GWT 2.0

===
Note if you switch back to GWT1.7, you have to do the following:

Remove all files in C:\Documents and Settings\YOUR_USERNAME\Local
Settings\Temporary Internet Files\Content.IE5

see for more info:
http://groups.google.com/group/google-web-toolkit-contributors/browse_thread/thread/50ffb5b491f63f64?fwc=1
===

Regards,

Rokesh

On Feb 4, 9:42 am, Ignat Alexeyenko  wrote:
> Hi.
>
> What do you mean under words *having problem*?
> Project won't compile?
> Compilation is ok but the design differes in 1-2px?
>
> I have some issues running GWT2.0 compiler under linux using Sun JDK v 1.6
> (Linux Ubuntu v 9.10).
> Launching GWT compiler using JDK v 1.5 was fine for me.
>
> --
> Kind regards,
> Ignat Alexeyenko
>
>
>
> On Thu, Feb 4, 2010 at 4:12 AM, iaio81  wrote:
> > Hi all,
> > because of the slowness of GWT 1.7's hosted mode, I was trying
> > upgrading GWT to 2.0 but after having done it I have problems running
> > my projects created with 1.7. What I've to change?
>
> > --
> > 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.



Re: GWT 1.7 upgrade Issue in Linux

2010-02-04 Thread Ignat Alexeyenko
Hello.

Have no problems on upgrading my app to the new version of GWT.
Delete all the output GWT compiler directory.
Review all the warning/error messages that are shown by GWT compiler.

--
Kind regards,
Ignat Alexeyenko.

On Mon, Feb 1, 2010 at 1:20 PM, has  wrote:

> I try to upgrade from GWT 1.5.3 to 1.7, it works fine in Windows but
> in Linux HostedMode shows blank page while it display the Title but
> not the contents.
>
> --
> 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: How to write test cases (in GWTTestCase) to test UI components of GWT?

2010-02-04 Thread Ignat Alexeyenko
Hi.

You can create events and throw them to your components.
I.e. you can write something like that in GWT Test Case method:

Label label = new Label();
CheckClickedClickHandler handler = new CheckClickedClickHandler();
label.addClickHandler(handler);

NativeEvent ne = Document.get().createClickEvent(0, 0, 0, 0, 0,
false, false, false, false);
ClickEvent.fireNativeEvent(ne, label);

assertTrue(handler.isCalled());
assertEquals(1, handler.getCallCounter());

CheckClickedClickHandler - handler mock that counts onClick methods.

For more info, please refer to the correspondent documentation:
http://code.google.com/webtoolkit/doc/1.6/DevGuideTesting.html

--
Kind regards,
Ignat Alexeyenko.

On Tue, Feb 2, 2010 at 4:24 PM, inder sharma wrote:

> Hi All !!
>
> I want to test a UI code developed in GWT.The form I have developed
> consists of various GWT components like buttons,text area,text field
> etc. There are also listeners added on buttons and fields.
>
> Now I want to write test cases for the 'UI' of this form using
> GWTTestCase.How can I write test cases for this so that data can be
> auto filled in form during test case running and listeners added on
> components in this form can also be tested?
>
> Can I achieve this through GWTTestCase or any other tool in GWT to
> test UI interactions like listeners etc.?
>
>
>
>
>
>
> --
> 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 server side and maven

2010-02-04 Thread Ignat Alexeyenko
Hi.

Recently I've migrated my project to Maven.
There is nothing important there - just login form and 1 RPC call (project
is only started).

But the project is using maven with gwt plugin for GWT 2.0 compilation.
http://sourceforge.net/projects/simpleworklog/

Just checkout it somewhere and launch from project root:
*mvn package *

--
Kind regards,
Ignat Alexeyenko.

On Wed, Feb 3, 2010 at 10:35 AM, joe7935  wrote:

> Hello all,
>
> I try to build a  gwt server side project in maven .
> I was looking for example in the web , i found examples in this site :
> http://code.google.com/p/gwt-maven/
>
> I have some questions :
>
> 1. Do I have to start with maven project ( by selected an archetype
> maven-gwt-plugin)
> 2. if any one have an example , i love to get it.
>
> please please help me.
> 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.



  1   2   >