Re: How to add multiple markers out of Array

2010-12-08 Thread rjcarr
I haven't looked too closely, but you are using an array of lists.
Are you sure this is what you're intending?  From your explanation it
seems you'd need only a one dimensional data structure.

On Dec 8, 7:10 am, Jan  wrote:
> Hi Everybody,
>
> For my actual GWT Project, i need to add markers on my map. The number
> of markers depends, it could be 0-3 of them. I get the datas for the
> markers out of my database and in an array. Now i created a method,
> witch has a for loop in it. In the for loop, i create the marker and
> add it to the map. When i run my application, it stops at the line
> "map.addOverlay(shipMarkers[i]);" but there comes no exceptions in the
> debugging mode, it only stops and does nothing. I found that out,
> because i have a textbox in my UI, where i can give some messages out.
> As soon as i remove the line map.addOverlay(), my programm runs to the
> end and works perfectly, but without markers..
>
> Here is the code of the method:
>
> private Marker[] getShipMarkersFrom(LinkedList[] latLng) {
>         shipMarkers = new Marker[latLng.length];
>
>         for(int i = 0; i < latLng.length; i++) {
>           Icon iconAnimation = Icon.newInstance(baseIcon);
>           iconAnimation.setImageURL("marker_pictures/
> ship_marker.png");
>           MarkerOptions optionsAnimation =
> MarkerOptions.newInstance();
>           optionsAnimation.setIcon(iconAnimation);
>           LatLng latLngPoint =
> LatLng.newInstance(latLng[i].get(0).getLatitude(),latLng[i].get(0).getLongi 
> tude());
>           shipMarkers[i]= new Marker(latLngPoint, optionsAnimation);
>
>           map.addOverlay(shipMarkers[i]);
>         }
>
>         return shipMarkers;
>
> }
>
> I'm searching now for more than 3 hours because of this problem. I
> would be really happy, if anybody can help me.
>
> Thanks and best regards.
>
> Jan

-- 
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: Passing information back to main page from Window()

2010-12-08 Thread rjcarr
I (and likely others) am not following what you mean here.  What do
you mean by Window()?  Are you saying that your results are currently
going to a new browser window but you want them to instead go into a
tab of the current window?

On Dec 8, 9:01 am, Ross McKinnon  wrote:
> Hi there,
>
> Quick question:
>
> On my main page of my App i have a number of tabs that contain a grid
> of data on each tab.  A feature I am trying to implement is a search
> facility that returns the results by dynamically adding a new tab
> containing the results.  The search facility is contained in a
> Window().  Is there a way that I can pass the results of the search
> back to the main page to add a new tab?
>
> Im getting my results from a MySQL database.
>
> Thanks,
> Ross

-- 
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: Dynamically Instantiation

2010-12-08 Thread rjcarr
Have you looked at the create() method of the GWT class?

On Dec 8, 9:03 am, Gaurav Vaish  wrote:
> Hi,
>
> I have a peculiar situation in my application.
>
> I need to instantiate a class given its name. The name is determined
> dnyamically.
>
> In JavaScript, it's easy to do...
>
> ---
> var ctorFn = window[className]; //assuming that the className does not
> have any dots
> var instance = new ctorFn();
> ---
>
> How can I, if at all, accomplish this in GWT.
>
> --
> Happy Hacking,
> Gaurav Vaishhttp://www.mastergaurav.com

-- 
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: ListEditor is there a way to edit a generic type?

2010-12-08 Thread rjcarr
Is this a GWT question?  It sounds like a generic polymorphism
question.

If the latter, you have two options.  Either add wing span information
to the parent type (Animal) or do explicit checks for Birds and then
do a cast.

Good luck!

On Dec 8, 9:11 am, DaveC  wrote:
> Hi,
>
> What I'm trying to do is pass ListEditor a list of generic types e.g.
> an AbstractAnimal type but what the list gets might be a Bird type, a
> Fish type, Mammal... etc...
>
> The problem is that that my Bird type has a property "wingSpan" which
> the Fish type does not.. they might also share a property e.g. "name"
> or "canFly".
>
> The Editor complains that it "couldn't find a getter for canFly in
> proxy type ...AbstractAnimal".
>
> Is there any way around this?
>
> Thanks for you help in advance.
>
> Cheers,
> Dave

-- 
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 and Internet Explorer

2010-12-08 Thread rjcarr
The GWT will compile for IE by default so that shouldn't be your
problem.  If you open your page in IE and nothing is shown you likely
have a javascript error.  Your best bet is to run the app in devmode
(using IE, of course) and see what errors are thrown.  That should
give you some direction as to what's going wrong.

On Dec 8, 12:32 pm, Marcelo L  wrote:
> I've developed an app using GWT and work with Firefox, Chrome and
> Safari, but not with Explorer, I can´t make Explorer to load the GWT
> script. Is there any configuration (of javascript) that I have to set
> on Explorer for running my app? Is there any rules to consider?

-- 
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: Embedding Javascripts in GWT client code.

2010-12-08 Thread rjcarr
If the snippet has nothing to do with GWT just put it in your html
page directly.

On Dec 8, 12:23 pm, Jmu  wrote:
> I would like to embedd the below Javascript on GWT1.4 client side
> code. Anyways to acheive this?
>
> 
> 
>
> Thank you

-- 
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 make additional finder methods available from the generated Request?

2010-12-08 Thread JosephLi
Looks like someone just asked similar questions:
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/827d22b8b12c2fbf

Anyone knows another way before GWT 2.1.1? I am thinking I might just
be missing some useful annotation that I don't know of to easily make
the new finder available through requestFactory.request?

Thanks in advance,
Joseph


On Dec 9, 2:07 am, JosephLi  wrote:
> I have been trying to hack around to customize a GWT + Roo test
> project and so far from my very primitive customized gui, I can call
> the simple count, findById methods without problem. But I hit a road
> block when I try to implement some simple search function by addition
> a finder to the domain class and try to call it thru the
> requestFactory.ABCRequest().findABCByNameLike(...). Turns out the new
> finder method just didn't get picked up Roo and auto generate the part
> of the code that facilitate the call from the GWT client. I can see
> the finder itself is created in the ABC_Roo_Finder.aj file and can be
> accessed from server side code, just not available on the client side
> thru the requestFactory.
>
> Anyone has any solution as to why the new finder, created thru Roo, is
> no included in the requestFactory?
>
> Thanks,
> Joseph

-- 
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 make additional finder methods available from the generated Request?

2010-12-08 Thread JosephLi
I have been trying to hack around to customize a GWT + Roo test
project and so far from my very primitive customized gui, I can call
the simple count, findById methods without problem. But I hit a road
block when I try to implement some simple search function by addition
a finder to the domain class and try to call it thru the
requestFactory.ABCRequest().findABCByNameLike(...). Turns out the new
finder method just didn't get picked up Roo and auto generate the part
of the code that facilitate the call from the GWT client. I can see
the finder itself is created in the ABC_Roo_Finder.aj file and can be
accessed from server side code, just not available on the client side
thru the requestFactory.

Anyone has any solution as to why the new finder, created thru Roo, is
no included in the requestFactory?

Thanks,
Joseph

-- 
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: Fire a button click event programmatically

2010-12-08 Thread Jim Douglas
The GWT Button Widget is actually an HTML button object; it exposes
button.click():

http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/user/client/ui/Button.html#click()

But GWT CustomButtons (PushButton/ToggleButton) are really styled
DIVs, not HTML button objects, so the native click() method isn't an
option.  For CustomButtons, you have to write code that invokes
whatever it is you want to do when the user clicks the button.

http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/user/client/ui/CustomButton.html

On Dec 8, 9:59 pm, Gaurav Vaish  wrote:
> Native javascript:
>
> btnElement.click()
>
> --
> Happy Hacking,
> Gaurav Vaishhttp://www.mastergaurav.com
>
> On Dec 9, 4:42 am, Nick Newman  wrote:
>
>
>
> > Might be simpler and clearer to have the button click event call a method,
> > and simply call that method directly.
>
> > Nick
>
> > On Wed, Dec 8, 2010 at 4:27 PM, zhong  wrote:
> > > Hi,
>
> > > Is there a way to fire a button click event programmatically?
>
> > > Many thanks,
> > > Zhong
>
> > > --
> > > 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: Fire a button click event programmatically

2010-12-08 Thread Gaurav Vaish
Native javascript:

btnElement.click()



--
Happy Hacking,
Gaurav Vaish
http://www.mastergaurav.com



On Dec 9, 4:42 am, Nick Newman  wrote:
> Might be simpler and clearer to have the button click event call a method,
> and simply call that method directly.
>
> Nick
>
> On Wed, Dec 8, 2010 at 4:27 PM, zhong  wrote:
> > Hi,
>
> > Is there a way to fire a button click event programmatically?
>
> > Many thanks,
> > Zhong
>
> > --
> > 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.



Strange bug: Uncaught TypeError: Cannot set property '__gwt_getProperty' of undefined

2010-12-08 Thread Najitaka
I haven't used GWT in a while so I was doing a one to two hour spike
to see how far I could get on a project as a test.  I get this strange
bug when I add any element directly to my HTML page that has an ID
with the same as the project name.

I used the project name hangman with webAppCreator and if I add a  element to my HTML directly (not through java)
then I get this bug.  If I make the ID anything other than hangman
then this bug goes away.

I'm worried about little quirks like this on my project since non-
programmers may be adding small changes to the HTML page as it matures
and I'm afraid if there are many quirks like this then it will break
the GWT widgets as this does and these non-programmers won't be able
to figure out what they have done to break the page.

-- 
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 Extend Entities For Use In RequestFactory

2010-12-08 Thread David Chandler
Daniel,

Hang tight. GWT 2.1.1 has new Locator and ServiceLocator interfaces that
will allow you to move all such methods out of entities into DAOs.

See http://code.google.com/p/google-web-toolkit/issues/detail?id=5680
Also http://code.google.com/p/google-web-toolkit/wiki/RequestFactory_2_1_1

/dmc

On Wed, Dec 8, 2010 at 3:00 PM, Daniel Simons wrote:

> I have several entities which are automatically generated using hibernate
> tools.  I would like to make use of RequestFactory by extending these
> entities, but am running into a number of issues in doing so.  It seems that
> the current design of RequestFactory requires that all DAO methods be
> defined in the Entity itself.  Are there any simple ways around this?
>
> Thanks,
> Daniel
>
> --
> 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.
>



-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
http://googlewebtoolkit.blogspot.com/

-- 
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 and Internet Explorer

2010-12-08 Thread Marcelo L
I've developed an app using GWT and work with Firefox, Chrome and
Safari, but not with Explorer, I can´t make Explorer to load the GWT
script. Is there any configuration (of javascript) that I have to set
on Explorer for running my app? Is there any rules to consider?

-- 
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 reuse an editor of the parent class?

2010-12-08 Thread tleroy
Good evening everybody,

I have a probleme to solve

I have a main class :

MainClass{
String name;
   String firstname;
}

2 sub classes :

ChildClass1 extends MainClass{
String anotherProperty1;
 }

ChildClass2 extends MainClass{
  String anotherProperty2;
}

I'd like an editor for properties of my MainClass I use in my sub clas
editor :

MainClassEditor{
TextBox  name;
TextBox firstname;
}

ChildClass1Editor{
TextBox  anotherProperty1;
MainClassEditor nameAndFirstNameEditor;
}

ChildClass2Editor{
   TextBox  anotherProperty2;
   MainClassEditor nameAndFirstNameEditor;
}

Is it possible or I need a class to group name and firstname
properties?

can you help me?

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



EntryPoint Initialization Exception.

2010-12-08 Thread amarasat
I am trying to run the StockWatcherApplication. I am getting an
"EntryPoint Initialization Exception". The previous time i ran the
application like amonth back it has worked fine.

Below is the exception:

EntryPoint initialization exception

Exception while loading module
com.google.gwt.sample.stockwatcher.client.StockWatcher. See
Development Mode for details.
com.google.gwt.core.ext.UnableToCompleteException: (see previous log
entries) at
com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
503) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
375) at
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
183) at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
510) at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
352) at java.lang.Thread.run(Unknown Source)


What can i do.

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



Getting Started: SpringSource Tool Suite

2010-12-08 Thread Peter Alexander
Hi.

I'm trying to follow the 'Getting Started' procedure, as described in
the Developer's Guide, for using SpringSource Tool Suite[1].

I'm at the point where it says:

[quote]
Now that you've created our app and launched it from the command line,
you can import it into STS to start customizing it. To do this switch
back to STS and click the menu item File -> Import, and then select
"Existing Maven Projects".
[/quote]

But I can't, because the instructions do not indicate where Roo/Maven
put the project in my file system, and STS does not auto-magically
list the project as I would think a tool suite should.

Leaving out one crucial sentence like this, makes it very hard for
newbies to a new tool/framework.

I'm using these tools on a Linux platform.

Thank you for your help.
Peter Alexander

[1] http://code.google.com/webtoolkit/doc/latest/tutorial/roo-sts.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.



Using GWT for display data from OPC Server on a web page!!

2010-12-08 Thread amarasat
I have a question, can GWT be used to grab data from an OC Server and
display it ona web page?

Has any one used GWT for this purpose. I have seen so many Java
implementations for OPC Clients and COM Servers online.

Further after this can GWT be used to display data on web page. Is
there any example for this!!

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



Embedding Javascripts in GWT client code.

2010-12-08 Thread Jmu
I would like to embedd the below Javascript on GWT1.4 client side
code. Anyways to acheive this?




Thank you

-- 
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: Debug problem since GWT 2.1.0, gwt-maven-plugin 2.1.0, Maven 3.0

2010-12-08 Thread Geoffrey Wiseman
On Dec 2, 3:53 pm, Geoffrey Wiseman 
wrote:
> I'm guessing this is caused by this filed 
> issue?http://code.google.com/p/google-web-toolkit/issues/detail?id=4853

Repeating what I said there on that issue:

Near as I can tell, these INDEX.LIST are in gwt-servlet.jar and gwt-
user.jar from GWT 1.6 through to GWT 2.1.0.  With that in mind, I
don't think they're the only cause of the current issues with
debugging in Eclipse, although they may be partially responsible.  I
suspect there's also a recent regression with the Google Plugin for
Eclipse.

See files below:

v.2.0:
https://repository.sonatype.org/service/local/repositories/central-proxy/archive/com/google/gwt/gwt-servlet/2.0.0/gwt-servlet-2.0.0.jar/!/META-INF/INDEX.LIST

v2.0.1:
https://repository.sonatype.org/service/local/repositories/central-proxy/archive/com/google/gwt/gwt-servlet/2.0.1/gwt-servlet-2.0.1.jar/!/META-INF/INDEX.LIST

v2.0.2:
https://repository.sonatype.org/service/local/repositories/central-proxy/archive/com/google/gwt/gwt-servlet/2.0.2/gwt-servlet-2.0.2.jar/!/META-INF/INDEX.LIST

v2.0.3:
https://repository.sonatype.org/service/local/repositories/central-proxy/archive/com/google/gwt/gwt-servlet/2.0.3/gwt-servlet-2.0.3.jar/!/META-INF/INDEX.LIST

v2.0.4:
https://repository.sonatype.org/service/local/repositories/central-proxy/archive/com/google/gwt/gwt-servlet/2.0.4/gwt-servlet-2.0.4.jar/!/META-INF/INDEX.LIST

v2.1.0
https://repository.sonatype.org/service/local/repositories/central-proxy/archive/com/google/gwt/gwt-servlet/2.1.0/gwt-servlet-2.1.0.jar/!/META-INF/INDEX.LIST

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



How to use CellTable's LoadingState?

2010-12-08 Thread Hilco Wijbenga
Hi all,

CellTable (or, really, HasDataPresenter) has a "loading state" which
displays a nice image indicating that processing is going on.
Unfortunately, everything related to loading state seems to be
(package) private.

How can I set this loading state?

Cheers,
Hilco

-- 
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: AXIS2 WITH ECLIPSE AND GWT PLUGIN

2010-12-08 Thread Filipe Sousa
On Wednesday, December 8, 2010 6:49:14 PM UTC, bond wrote:Any ideas??

Convert your project to a web project. Select menu Project | Properties
| Project Facets and enable Dynamic Web Module

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



HTMPanel error in 2.1.0: (TypeError): this.removeChild is not a function (bug?)

2010-12-08 Thread Ed
I get the following error when adding a widget that is a child of a
HTMLPanel is removed from his parent:
(TypeError): this.removeChild is not a function
The full error is listed below.

What I do (gwt 2.1.0):
Create a HTMLPanel from a string and then iterate through all elements
and add RadioButtons on determined places. I store references to the
RadioButtons in a List so I can reuse them on a refresh.
On a refresh, I iterate again through the HTMLPanel elements an add
again the stored RadioButtons. On this refresh I get an error when the
RadioButton tries to remove him self from his parent.
In a code snippet:
iterating through all HTMLPanel elements:
final RadioButton child = getNextCachedRadioButton()
child.removeFromParent();
htmlPanel.add(child, cell);

The error occurs when calling child.removeFromParent() in the refresh
when it's already a child of the HTMLPanel (not the first time when
it's not a child of the HTMLPanel yet)...
Any idea why the error occurs? I this a bug?

Thrown exception part:

Caused by: com.google.gwt.core.client.JavaScriptException:
(TypeError): this.removeChild is not a function
 fileName: http://127.0.0.1:
 lineNumber: 104
 stack: ([object HTMLSpanElement])@http://127.0.0.1::104
@:0
(null,655430,[object MouseEvent],[object HTMLDivElement],[object
GWTJavaObject])@http://127.0.0.1:/serviceplus/hosted.html?
serviceplus:56
([object MouseEvent])@http://127.0.0.1::161
((function (evt) {var listener, curElem = this;while (curElem && !
(listener = curElem.__listener)) {curElem = curElem.parentNode;}if
(curElem && curElem.nodeType != 1) {curElem = null;}if (listener) {if
(__gwt_makeJavaInvoke(1)(null, 589942, listener))
{__gwt_makeJavaInvoke(3)(null, 655430, evt, curElem, listener);}}}),
[object HTMLDivElement],[object Object])@http://127.0.0.1::66
@:0
(null,106,(function (evt) {var listener, curElem = this;while (curElem
&& !(listener = curElem.__listener)) {curElem = curElem.parentNode;}if
(curElem && curElem.nodeType != 1) {curElem = null;}if (listener) {if
(__gwt_makeJavaInvoke(1)(null, 589942, listener))
{__gwt_makeJavaInvoke(3)(null, 655430, evt, curElem, listener);}}}),
[object HTMLDivElement],[object Object])@http://127.0.0.1:/
serviceplus/hosted.html?serviceplus:56
([object MouseEvent])@http://127.0.0.1::20

at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
237)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
126)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
561)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
269)
at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:
91)
at com.google.gwt.dom.client.Node$.removeChild$(Node.java)
at com.google.gwt.user.client.DOM.removeChild(DOM.java:992)
at
com.google.gwt.user.client.ui.ComplexPanel.remove(ComplexPanel.java:
71)
at
com.google.gwt.user.client.ui.Widget.removeFromParent(Widget.java:180)




-- 
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: Fire a button click event programmatically

2010-12-08 Thread Nick Newman
Might be simpler and clearer to have the button click event call a method,
and simply call that method directly.

Nick

On Wed, Dec 8, 2010 at 4:27 PM, zhong  wrote:

> Hi,
>
> Is there a way to fire a button click event programmatically?
>
> Many thanks,
> Zhong
>
> --
> 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.



Fire a button click event programmatically

2010-12-08 Thread zhong
Hi,

Is there a way to fire a button click event programmatically?

Many thanks,
Zhong

-- 
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: get "plugin failed to connect to hosted mode server on ...." error with Chrome GWT developer plugin but works fine with Firefox

2010-12-08 Thread Chris Conroy
Are you still seeing this issue? The Chrome plugin was recently updated. If
you go to chrome://extensions what version do you see for the GWT developer
plugin? (1.0.9274 is the latest).

If you don't have the latest for whatever reason, grab it from
gwt.google.com/missing-plugin.


On Mon, Dec 6, 2010 at 6:08 AM, puthali  wrote:

> Hi,
>
> From yesterday I've been getting "plugin failed to connect to hosted
> mode server on 127.0.0.1:9997" error with GWT developer plugin on
> Chrome but when I try the same on Firefox it works. Any help will be
> greatly appreciated as I really don't want to launch FF just for this.
>
> My Chrome GWT developer plugin version is 1.0.9274 and the Firefox GWT
> plugin version is 1.0.7511
>
> thanks,
> Puthali
>
> --
> 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.



IE7 and ALIGN_JUSTIFY

2010-12-08 Thread Greg Dougherty
I'm working on a new app using GWT 2.1.  If I create a
HorizontalPanel, and set the horizontal alignment to ALIGN_JUSTIFY,
then when I try to add anything to that panel, I get the following
exception.  This only happens in IE, and I have to actually try to
added something to the panel (creating the panel, setting its
alignment, and then adding it (empty) to another panel does NOT cause
a problem):

15:51:05.169 [ERROR] [exometablebrowser] Uncaught exception escaped
com.google.gwt.core.client.JavaScriptException: (Error): Could not get
the align property. Invalid argument.
 number: -2147024809
 description: Could not get the align property. Invalid argument.
at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
237)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
126)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
561)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
269)
at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:
91)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:214)
at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
157)
at
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:
281)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
531)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
352)
at java.lang.Thread.run(Thread.java:619)

I searched the group and did not see this mentioned.  Any idea why
this happens?

-- 
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 Extend Entities For Use In RequestFactory

2010-12-08 Thread Daniel Simons
I have several entities which are automatically generated using hibernate
tools.  I would like to make use of RequestFactory by extending these
entities, but am running into a number of issues in doing so.  It seems that
the current design of RequestFactory requires that all DAO methods be
defined in the Entity itself.  Are there any simple ways around this?

Thanks,
Daniel

-- 
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: Does SimplePager have to be subclassed in order for the last page button to work?

2010-12-08 Thread Benju
Try this...

SimplePager pager = new SimplePager(SimplePager.TextLocation.RIGHT,
GWT.create(SimplePager.Resources.class), false,
0, true);

On Nov 3, 5:48 pm, Jeff Schwartz  wrote:
> I am using a SimplePager but the last page button is never enabled. I didn't
> subclass SimplePager. Doe it need to be? Thanks in advance.
>
> Jeff
>
> --
> Jeff

-- 
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: AXIS2 WITH ECLIPSE AND GWT PLUGIN

2010-12-08 Thread bond
Any ideas??

Thanks!

On 3 Dic, 15:14, bond  wrote:
> Hi,
> thanks for your reply.
> I created an Tomcat 6.20 server but how I can add it to my project? I
> remember you that my project is a "GWT Web Application Project"
> created with Gwt Plugin for Eclipse.
>
> Can you send me a link of a tutorial?
>
> Thanks very much
>
> Regards
>
> Daniele
>
> On 3 Dic, 14:53, v b  wrote:
>
> > Look for adding a server in eclipse.
>
> > On Dec 3, 1:32 pm, bond  wrote:
>
> > > Hi guys,
> > > I've a big problem. I've a gwt project with Eclipse Helios + gwt 2.1
> > > and gwt plugin 3.6. So my project is NOT a web project and when I run
> > > it Eclipse uses Jetty to deploy it.
>
> > > Now I've to creare some web services with axis 2 in order to publish
> > > them in my project. The web service wizard can't create my service
> > > because it wants a web project with Tomcat.
>
> > > There is some solutions to my problem?
>
> > > Thanks very much
>
> > > Best regards

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



Announcing Chrome Developer Plugin support for Mac and Linux

2010-12-08 Thread Peter Ondruska
http://googlewebtoolkit.blogspot.com/2010/12/announcing-chrome-developer-plugin.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: GWT JavaDoc failures KeyPress v. KeyDown

2010-12-08 Thread DaveC
@Greg

I felt the need to reply on the topic of what GWT is/does...

What (Java) devs think GWT is/does...

*** Removes the need for them to understand ANY front end web
technologies (e.g. HTML, Javascript, DOM, CSS + xbrowser differences)
***

All of our Java developers (where I work) have found that they still
need to understand some CSS, HTML, DOM + xbrowser differences... what
GWT gives you is Java, Type Checking, Refactoring, Dependancy
Injection, code optimisations etc...all from a Java perspective...

As a non-Java developer I struggle with GWT... I find it gets in my
way, I have to understand Java, I don't like that fact that what I
write is not what gets run in the browser, devmode is slow...

But I agree with your point about Java docs/examples they are
sometimes a little thin especially for someone (like me) who is not a
Java Dev.

Cheers,
Dave


On Dec 8, 12:15 am, Jeff Chimene  wrote:
> As one who writes documentation professionally, I see the impedance mismatch
> between Greg's desires and Javadoc. AFAICT, Greg wants to know "why";
> Javadoc describes "how". A toolkit that evolves as rapidly as GWT does not
> lend itself to in-depth "why" documentation.
>
> I see that the GWT team puts substantial effort into sample programs; which
> examples may be as close as we can get to "why" combined with "how".
>
> I'm sure that the GWT team would welcome documentation contributions. The
> issue I have is ensuring such contributions have a lifetime > 6 months.
>
> On Tue, Dec 7, 2010 at 3:17 PM, A. Stevko  wrote:
> > Greg - I admire your position on the quality of documentation.
> > IMO, a measure of a sw engineer is not how much arcana he knows but rather
> > knowing where to find it.
> > Javadocs have long been a great source for the many of the details that I
> > face daily although they typically suck for usability.
>
> > A question to the group - Is it possible to crowd source the GWT and GAE
> > javadocs?
> > If we can't get to the source to augment the documentation, how about some
> > kind of sister wiki site that can be the proving ground for training and
> > usability improvements while also providing a very specific location to
> > discuss API meta issues.
>
> > The first thought on an approach to this is to have the javadoc template
> > automatically write external links into a google site or similar.
>
> > --Andy Stevko
>
> > On Tue, Dec 7, 2010 at 12:30 PM, Jeff Schwartz 
> > wrote:
>
> >> Good luck!
>
> >> On Tue, Dec 7, 2010 at 3:08 PM, Greg Dougherty <
> >> dougherty.greg...@mayo.edu> wrote:
>
> >>> Hi Jeff,
>
> >>> If it ever comes to be the situation that the only way I can do
> >>> programming is on the web, then I'll waste the time to learn the
> >>> current iteration of web programming.  But life is currently not so
> >>> dim or dreary, and doesn't look to be that way any time soon.  (And if
> >>> I am going to take the time to "read, read, read" on new programming
> >>> ideas, it'll be on the Android (where there's a decent job market, and
> >>> worthwhile development tools) or the iPhone (I've got one iPhone app
> >>> out, but I'd like to learn more networking, and some of the newer
> >>> technologies, not on a constantly changing "standards" body heavily
> >>> influenced by Microsoft and Internet Explorer.)  I have a finite
> >>> supply of "learn" time, and I have thigns that, for me, are far better
> >>> ways to spend it than reading W3C documents.
>
> >>> Let me put it another way: I have absolutely NO desire to be a "master
> >>> Web applications developer".  If I wanted to be one of those, I
> >>> wouldn't be using GWT.  I'd be rolling my own.
>
> >>> I took a look at SpringToolsSuite and Spring Roo.  Their documentation
> >>> sucks, their tutorials are out of date, their integration with Eclipse
> >>> is poor, and the support on the forums is weak.  So, since I AM a good
> >>> SQL developer, I said the heck with that, and rolled my own for my
> >>> current project.  And do not regret the choice at all.  The difference
> >>> is that I find SQL a lot more interesting than JavaScript.
>
> >>> Look, I'm glad that there are people out there who WANT to dig into
> >>> the arcana of web programming.  I'm not one of them.  I'm someone who
> >>> wants to solve other problems.  It was my impression that GWT exists
> >>> to serve the people who want to solve those other problems, and don't
> >>> want to have to dig in to that web BS (like worrying about IE vs.
> >>> FF).  If that IS GWT's purpose, then their documentation sucks, and is
> >>> not in line with their purpose.
>
> >>> If that ISN'T GWTs purpose, what is?
>
> >>> Greg
>
> >>> On Dec 7, 11:24 am, Jeff Schwartz  wrote:
> >>> > Hi Greg,
>
> >>> > I have been in IT for a very long time. You see, I am what the youngins
> >>> > sometimes refer to as an ol' fart :). As a matter of fact, I've been a
> >>> > developer in one form or another for so long that everything else prior
> >>> to
> >>> > that seems to me to be prehisto

Re: Plugin Upgrade Woes

2010-12-08 Thread Evan Ruff
Rajeev,



Apparently, Eclipse upgraded my Android plugin at the same time. The
new Android plugin had an error in it that was the source of a lot of
those errors.


I have upgraded the Android plugin and still get the same errors.


Thanks,


E

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



ListEditor is there a way to edit a generic type?

2010-12-08 Thread DaveC
Hi,

What I'm trying to do is pass ListEditor a list of generic types e.g.
an AbstractAnimal type but what the list gets might be a Bird type, a
Fish type, Mammal... etc...

The problem is that that my Bird type has a property "wingSpan" which
the Fish type does not.. they might also share a property e.g. "name"
or "canFly".

The Editor complains that it "couldn't find a getter for canFly in
proxy type ...AbstractAnimal".

Is there any way around this?

Thanks for you help in advance.

Cheers,
Dave

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



Dynamically Instantiation

2010-12-08 Thread Gaurav Vaish
Hi,

I have a peculiar situation in my application.

I need to instantiate a class given its name. The name is determined
dnyamically.

In JavaScript, it's easy to do...

---
var ctorFn = window[className]; //assuming that the className does not
have any dots
var instance = new ctorFn();
---


How can I, if at all, accomplish this in GWT.


--
Happy Hacking,
Gaurav Vaish
http://www.mastergaurav.com

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



Passing information back to main page from Window()

2010-12-08 Thread Ross McKinnon
Hi there,

Quick question:

On my main page of my App i have a number of tabs that contain a grid
of data on each tab.  A feature I am trying to implement is a search
facility that returns the results by dynamically adding a new tab
containing the results.  The search facility is contained in a
Window().  Is there a way that I can pass the results of the search
back to the main page to add a new tab?

Im getting my results from a MySQL database.

Thanks,
Ross

-- 
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: add gwt to existing Java project

2010-12-08 Thread salk31
I'd suggest using the app creator 
http://code.google.com/webtoolkit/gettingstarted.html
to create a blank project for you. It also builds with ant...

You can then get a feel for how it works and merge them together...

The ant compile works nicely but you need a bit of care getting class
paths etc correct.

Definitely agree that GWT is a good choice. Having the same source
running on client and server has some huge advantages...
Junit testing client and server... Don't get me started ;)

On Dec 7, 1:48 pm, Andrew Balakhanov 
wrote:
> Hello.
> Could you please help me.  I have a Java project (server part) and now
> I am going to write client part on GWT. I build my project via ANT.
> Can you please help me, how shlould I add GWT to my project, and then
> to build it ?

-- 
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: SOP Problem with GWT 2.0.4

2010-12-08 Thread Lukasz
JSONP is a quite straight forward solution for the SOP problem and
thanks to the JsonpRequestBuilder nicely supported in GWT 2.1. But as
already mentioned the CGI service needs to be able to respond with
valid JSON data. Below some code example:

StringBuilder url = new StringBuilder(SERVICE_URL);
url.append("?
action=getAll").append("&userToken=").append(userMgr.getCurrentUserToken());
/*
 * Resolving the data
 */
JsonpRequestBuilder jsonp = new JsonpRequestBuilder();
jsonp.setFailureCallbackParam("errorCallback");
jsonp.requestObject(url.toString(),
new AsyncCallback() {

@Override
public void onFailure(Throwable caught) 
{
// some exception handling code
}

@Override
public void onSuccess(JavaScriptObject 
result) {
/*
 * Processing the provided JSON 
Data
 */
something.buildFromJSON(new 
JSONObject(

result));
}
});

HTH,
Lukasz

On 8 Dez., 14:46, bananos  wrote:
> Julio, you can try using JSONP, if your external CGI page is capable
> of returning valid JSON data.
> If it's not your case, the only possible way is to write server-side
> code at your backend, and serve data from your own host
>
> On Dec 8, 3:22 pm, julio  wrote:
>
>
>
>
>
>
>
> > Hi Thomas thanks for your reply.
>
> > > The "xs" linker only allows you to load the GWT app (*.nocache.js et
> > > al.) from a different origin than the "HTML host page". This is
> > > because the default linker ("std", or IFrameLinker) uses an iframe to
> > > load the *.cache.html and then hits the SOP when trying to communicate
> > > with the host page. The "xs" linker does not use an iframe but instead
> > > load *.cache.js files directly in the host page.
>
> > Ok so it's not my case.
>
> > > > Have you any idea?
>
> > > There's no way a browser can contact a "remote public CGI (not under
> > > [your] control)" if that one doesn't explicitly allows it (using
> > > CORS), and were it the case then it would only work for those browsers
> > > that support CORS (recent versions of Firefox, Chrome, Safari and
> > > Opera; IE8 supports it but with a specific API that GWT doesn't use).
>
> > if I paste and copy the remote cgi's url in the browser bar the data
> > get displayed on it (Firefox 3.5.12, IE6 and Chrome 8).
> > In this case something is still possible?
>
> > Thanks,
> > Julio

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

2010-12-08 Thread Jon Vaughan
Hm have added a VCH to clear the other loaded stuff.  VCH fires before
the Suggestion picked.

On Dec 6, 5:32 pm, Jon Vaughan  wrote:
> I have a suggest box
>
> the user selects something from it, causing other things to load in
> the page
>
> they then go back to the suggest box and type some stuff into it which
> doesn't result in a new selection
>
> how can i determine that the value has changed to clear the other
> loaded things in the page without introducing a race condition between
> the valuechangehandler and the suggestionhandler when a suggestion
> actually is picked?

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



Re: Request.cancel doesn't work for me!

2010-12-08 Thread jhulford
You can have the initial RPC request kick off a sub-process (new
thread, pass a message to another process, etc..) and then return some
sort of id to your client that uniquely identifies the particular
process the user initiated.  The client can then emulate the blocking
w/ a dialog or something like that while polling the server to find
out the state of your subprocess by passing the id it received back
from the initial call.  Create another method that can cancel the
process given the id...then if the user hits some sort of cancel
button (or you hit some sort of time limit), you send the id to the
cancel method and the backend handles canceling out the process.

On Dec 7, 12:20 pm, newnoise  wrote:
> Ok. Too bad ...
>
> Is there any way to abort the running method on my server?
>
> Thanks
> Tom
>
> On 7 Dez., 16:54, jhulford  wrote:
>
> > All calling it does is call the abort() method of XmlHttpRequest which
> > will stop the execution of your callback, it doesn't do anything on
> > your server.
>
> > Check theRequest.cancel() code..it's pretty straightforward.
>
> > On Dec 7, 7:01 am, newnoise  wrote:
>
> > > Does really no one got any idea?
>
> > > On 29 Nov., 18:29, newnoise  wrote:
>
> > > > Me again,
>
> > > > just tried to make the imExpensive-method less complex, but still no
> > > > success.
>
> > > > TheRequestis not cancelled ... What am I doing wrong?
>
> > > > Thanks
> > > > Tom
>
> > > > On Nov 29, 6:16 pm, newnoise  wrote:
>
> > > > > Hi,
>
> > > > > I'm working on an GWT-App displaying a map with different layers.
> > > > > Some of those layers are drawn just onrequestand just for the part
> > > > > of the map which is currently displayed.
>
> > > > > The Problem occurs if a user moves and zooms the map pretty fast, so
> > > > > that a lot of pictures have to be drawn. This results in quite a time
> > > > > of waiting when he finally stops. What I tried was tocancelthe
> > > > >requestusingRequest.cancel(the Async Method returnsRequestinstead
> > > > > of void), but all the pictures are drawn anyway.
>
> > > > > How does theRequest.cancel-method work? Is it just blocking the
> > > > > Callback? Or does it actuallycancelthe running code on server-side?
> > > > > Maybe the problem is, that the specific method contains mainly one
> > > > > complex method-call? The specific method-scheme looks like:
>
> > > > > public Boolean update() {
> > > > > int a = 2;
> > > > > int b = 3;
>
> > > > > int x = imExpensive(a,b); // method which needs like 95% of
> > > > > calculating time
>
> > > > > if (x>0) return true;
> > > > > return false;
>
> > > > > }
>
> > > > > I suppose that theRequest.cancel-method does notcancela running
> > > > > method, and stops the method right after imExpensive(). Is that right?
> > > > > In that case the problem could be solved by making the method
> > > > > imExpensive less complex, which would be a pretty doable task ...
>
> > > > > Thanks a lot!
> > > > > 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.



How to add multiple markers out of Array

2010-12-08 Thread Jan
Hi Everybody,

For my actual GWT Project, i need to add markers on my map. The number
of markers depends, it could be 0-3 of them. I get the datas for the
markers out of my database and in an array. Now i created a method,
witch has a for loop in it. In the for loop, i create the marker and
add it to the map. When i run my application, it stops at the line
"map.addOverlay(shipMarkers[i]);" but there comes no exceptions in the
debugging mode, it only stops and does nothing. I found that out,
because i have a textbox in my UI, where i can give some messages out.
As soon as i remove the line map.addOverlay(), my programm runs to the
end and works perfectly, but without markers..

Here is the code of the method:

private Marker[] getShipMarkersFrom(LinkedList[] latLng) {
shipMarkers = new Marker[latLng.length];

for(int i = 0; i < latLng.length; i++) {
  Icon iconAnimation = Icon.newInstance(baseIcon);
  iconAnimation.setImageURL("marker_pictures/
ship_marker.png");
  MarkerOptions optionsAnimation =
MarkerOptions.newInstance();
  optionsAnimation.setIcon(iconAnimation);
  LatLng latLngPoint =
LatLng.newInstance(latLng[i].get(0).getLatitude(),latLng[i].get(0).getLongitude());
  shipMarkers[i]= new Marker(latLngPoint, optionsAnimation);

  map.addOverlay(shipMarkers[i]);
}

return shipMarkers;
}

I'm searching now for more than 3 hours because of this problem. I
would be really happy, if anybody can help me.

Thanks and best regards.

Jan

-- 
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: RequestFactory: Obfuscate traffic/Elide type names

2010-12-08 Thread Chris Lercher
Ok, thanks - opened an enhancement request:
http://code.google.com/p/google-web-toolkit/issues/detail?id=5729


On Dec 8, 12:47 pm, Thomas Broyer  wrote:
> On 7 déc, 15:30, Chris Lercher  wrote:
>
> > Hi,
>
> > with GWT RPC, it's possible to elide/obfuscate the type names from the
> > network traffic, by adding:
>
> >     > name="com.google.gwt.user.RemoteServiceObfuscateTypeNames"/>
>
> > to the .gwt.xml file. (This effectively sets the property
> > "gwt.elideTypeNamesFromRPC" to "true".)
>
> > Is something like that also available for the new (GWT 2.1)
> > RequestFactory?
>
> Looks like there's not 
> (yet):http://code.google.com/p/google-web-toolkit/source/browse/releases/2

-- 
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 install GWT Designer

2010-12-08 Thread Boris Lenzinger
Check this :
http://code.google.com/webtoolkit/tools/download-gwtdesigner.html

This page contains the URLs to supply for installing a new soft under
Eclipse from a site.
To install a software with this method, check this :
http://www.eclipse.org/modeling/emf/updates

The example is for eclipse 3.4 but it is the same for 3.6.


Boris

2010/12/3 Basi Lambanog 

> Hello,
> I'm trying to install GWT Designer onto Eclipse 3.6. The instruction
> says
>
> In Eclipse, click Help > Install New Software...
>
> but there is no Help option on the Eclipse menu.
>
> How else can I install GWT Designer?
>
> 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: How to install GWT Designer

2010-12-08 Thread Marcello Nuccio
It should be like it:
http://mac.softpedia.com/progScreenshots/Eclipse-SDK-Screenshot-8571.html

As in most Mac OSX apps the menu is on top of the screen, NOT of the
window.


On 3 Dic, 19:31, Basi Lambanog  wrote:
> Thank you for your reply.
>
> I'm new to Eclipse (though not to IDEs). When I start Eclipse I don't
> see the expected menu items like File Edit Navigate, etc. Instead, I
> see the Package Explorer perspective and a bunch of icons (related to
> cutting and pasting along the top where the menu items should be.
>
> I installed the Eclipse IDE for Java developers Helios package. Mac
> Mini OSX 10.6.
>
> I'm missing a menu. I can't order anything. I'm hungry!
>
> Thanks.
>
> On Dec 3, 8:33 am, András Csányi  wrote:
>
>
>
>
>
>
>
> > On 3 December 2010 10:19, Basi Lambanog  wrote:
>
> > > Hello,
> > > I'm trying to install GWT Designer onto Eclipse 3.6. The instruction
> > > says
>
> > > In Eclipse, click Help > Install New Software...
>
> > > but there is no Help option on the Eclipse menu.
>
> > > How else can I install GWT Designer?
>
> > > Thanks,.
>
> > Should be.
> > File - Edit - Navigate - Search - Project - Run - Window - Help
>
> > It's first start? There is a little "x" on the left side, close the
> > advertise page and everything is going to fine.
>
> > --
> > - -
> > --  Csanyi Andras (Sayusi Ando)  
> > --http://sayusi.hu--http://facebook.com/andras.csanyi
> > --  ""Trust in God and keep your gunpowder dry!" - Cromwell

-- 
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 Designer / TabLayoutPanel Woes

2010-12-08 Thread Eric Clayberg
I tried that and it worked fine for me.

It would be helpful to see a test case (both the file you are editing
and the HTML file).

On Dec 7, 12:59 pm, cri  wrote:
> I'm new to GWT Designer, so I'm probably making a basic mistake of
> some sort. When using GWT Designer to create a TabPanel, things seem
> to work fine. That is, I lay down the TabPanel and then add tab
> elements and everything shows up as expected in the Designer window.
> However, if I instead use a TabLayout panel and then start adding
> tabs, the designer window basically is just a blank canvas. I did make
> sure the my doctype setting in my HTML landing page is set to
> standards mode. Any help is appreciated. 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.



RequestFactory persist new object and return the id

2010-12-08 Thread poe
Hi,

is there a simple way to get the objects id after calling the persist
method?


EmployeeProxy employee  = ...request.create(EmployeeProxy.class);
...request.persist().using(employee);
...persistRequest.fire(...) {
  onSuccess(Void response) {
// can i somehow get the id from the server-object?
  }
 }

I've tried altering the persist method to "public String persist()"
instead of "public void persist()" but the requestFactory won't play
along.

Is there a good way to implement that without making a static persist
method?

-- 
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: SOP Problem with GWT 2.0.4

2010-12-08 Thread bananos
Julio, you can try using JSONP, if your external CGI page is capable
of returning valid JSON data.
If it's not your case, the only possible way is to write server-side
code at your backend, and serve data from your own host

On Dec 8, 3:22 pm, julio  wrote:
> Hi Thomas thanks for your reply.
>
> > The "xs" linker only allows you to load the GWT app (*.nocache.js et
> > al.) from a different origin than the "HTML host page". This is
> > because the default linker ("std", or IFrameLinker) uses an iframe to
> > load the *.cache.html and then hits the SOP when trying to communicate
> > with the host page. The "xs" linker does not use an iframe but instead
> > load *.cache.js files directly in the host page.
>
> Ok so it's not my case.
>
> > > Have you any idea?
>
> > There's no way a browser can contact a "remote public CGI (not under
> > [your] control)" if that one doesn't explicitly allows it (using
> > CORS), and were it the case then it would only work for those browsers
> > that support CORS (recent versions of Firefox, Chrome, Safari and
> > Opera; IE8 supports it but with a specific API that GWT doesn't use).
>
> if I paste and copy the remote cgi's url in the browser bar the data
> get displayed on it (Firefox 3.5.12, IE6 and Chrome 8).
> In this case something is still possible?
>
> Thanks,
> Julio

-- 
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: SOP Problem with GWT 2.0.4

2010-12-08 Thread julio
Hi Thomas thanks for your reply.

> The "xs" linker only allows you to load the GWT app (*.nocache.js et
> al.) from a different origin than the "HTML host page". This is
> because the default linker ("std", or IFrameLinker) uses an iframe to
> load the *.cache.html and then hits the SOP when trying to communicate
> with the host page. The "xs" linker does not use an iframe but instead
> load *.cache.js files directly in the host page.

Ok so it's not my case.

> > Have you any idea?
>
> There's no way a browser can contact a "remote public CGI (not under
> [your] control)" if that one doesn't explicitly allows it (using
> CORS), and were it the case then it would only work for those browsers
> that support CORS (recent versions of Firefox, Chrome, Safari and
> Opera; IE8 supports it but with a specific API that GWT doesn't use).

if I paste and copy the remote cgi's url in the browser bar the data
get displayed on it (Firefox 3.5.12, IE6 and Chrome 8).
In this case something is still possible?

Thanks,
Julio

-- 
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: RequestFactory: Obfuscate traffic/Elide type names

2010-12-08 Thread Thomas Broyer


On 7 déc, 15:30, Chris Lercher  wrote:
> Hi,
>
> with GWT RPC, it's possible to elide/obfuscate the type names from the
> network traffic, by adding:
>
>     name="com.google.gwt.user.RemoteServiceObfuscateTypeNames"/>
>
> to the .gwt.xml file. (This effectively sets the property
> "gwt.elideTypeNamesFromRPC" to "true".)
>
> Is something like that also available for the new (GWT 2.1)
> RequestFactory?

Looks like there's not (yet):
http://code.google.com/p/google-web-toolkit/source/browse/releases/2.1/user/src/com/google/gwt/requestfactory/rebind/RequestFactoryGenerator.java#269

-- 
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: webappcreator with -maven and Eclipse: output directories don't match

2010-12-08 Thread Rocky
I have found a workaround on StackOverflow. Go take a look at GWT
issue report, and star it please!

http://code.google.com/p/google-web-toolkit/issues/detail?id=4853

Rade

On 7 дец, 18:09, Rocky  wrote:
> I have very similar configuration and I get the same error.
>
> Have you managed to resolve this issue?
>
> Rade
>
> On 28 нов, 23:50, PeteUK  wrote:
>
>
>
>
>
>
>
> > On Nov 28, 5:57 pm, Rajeev Dayal  wrote:
>
> > > If you look at Project Properties -> Google -> Web Toolkit, what is
> > > mentioned for the GWT SDK? Also, if you navigate to Window -> Show View ->
> > > Error Log, do you see any errors listed there?
>
> > Rajeev,
>
> > The Web Toolkit in use is (specific SDK): "C:\M2Repository\com\google
> > \gwt - 2.1.0". There is also a radio button to "Use default SDK (GWT -
> > 2.1.0)" but it is not selected.
>
> > N.B. C:\M2Repository is my local repository as specified inMaven's
> > ~/.m2/settings.xml.
>
> > In the Error Log I have 5 warnings and one error:
>
> > Warnings:
> > 1): The workspace exited with unsaved changes in the previous session;
> > refreshing workspace to recover changes.
> > 2): While loading class
> > "com.google.gdt.eclipse.suite.resources.GdtImages", thread
> > "Thread[main,6,main]" timed out waiting (5000ms) for thread
> > "Thread[Worker-1,5,main]" to finish starting bundle
> > "com.google.gdt.eclipse.suite_1.4.0.v201010280102 [12]". To avoid
> > deadlock, thread "Thread[main,6,main]" is proceeding but
> > "com.google.gdt.eclipse.suite.resources.GdtImages" may not be fully
> > initialized.
> > 3) Same as #2 but for class
> > com.google.gdt.eclipse.suite.update.ui.UpdateNotificationControlContributio 
> > n.
> > 4) Same as #2 but for class
> > com.google.gdt.eclipse.suite.update.ui.UpdateNotificationControlContributio 
> > n
> > $1
> > 5) Same for
> > com.google.gdt.eclipse.suite.update.ui.UpdateNotificationControlContributio 
> > n
> > $2
>
> > Error:
> > 1) Unable to update index for central|http://repo1.maven.org/maven2.
> > The lowest part of the stack is: java.io.IOException: Transfer for
> > nexus-maven-repository-index.properties failed; Transfer error: null
>
> > Thanks,
>
> > Pete

-- 
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: webappcreator with -maven and Eclipse: output directories don't match

2010-12-08 Thread Rocky
I have found a workaround on StackOverflow. Go here and take a look at
GWT issue report, and star it please!

http://code.google.com/p/google-web-toolkit/issues/detail?id=4853

On 7 дец, 18:09, Rocky  wrote:
> I have very similar configuration and I get the same error.
>
> Have you managed to resolve this issue?
>
> Rade
>
> On 28 нов, 23:50, PeteUK  wrote:
>
>
>
>
>
>
>
> > On Nov 28, 5:57 pm, Rajeev Dayal  wrote:
>
> > > If you look at Project Properties -> Google -> Web Toolkit, what is
> > > mentioned for the GWT SDK? Also, if you navigate to Window -> Show View ->
> > > Error Log, do you see any errors listed there?
>
> > Rajeev,
>
> > The Web Toolkit in use is (specific SDK): "C:\M2Repository\com\google
> > \gwt - 2.1.0". There is also a radio button to "Use default SDK (GWT -
> > 2.1.0)" but it is not selected.
>
> > N.B. C:\M2Repository is my local repository as specified in Maven's
> > ~/.m2/settings.xml.
>
> > In the Error Log I have 5 warnings and one error:
>
> > Warnings:
> > 1): The workspace exited with unsaved changes in the previous session;
> > refreshing workspace to recover changes.
> > 2): While loading class
> > "com.google.gdt.eclipse.suite.resources.GdtImages", thread
> > "Thread[main,6,main]" timed out waiting (5000ms) for thread
> > "Thread[Worker-1,5,main]" to finish starting bundle
> > "com.google.gdt.eclipse.suite_1.4.0.v201010280102 [12]". To avoid
> > deadlock, thread "Thread[main,6,main]" is proceeding but
> > "com.google.gdt.eclipse.suite.resources.GdtImages" may not be fully
> > initialized.
> > 3) Same as #2 but for class
> > com.google.gdt.eclipse.suite.update.ui.UpdateNotificationControlContributio 
> > n.
> > 4) Same as #2 but for class
> > com.google.gdt.eclipse.suite.update.ui.UpdateNotificationControlContributio 
> > n
> > $1
> > 5) Same for
> > com.google.gdt.eclipse.suite.update.ui.UpdateNotificationControlContributio 
> > n
> > $2
>
> > Error:
> > 1) Unable to update index for central|http://repo1.maven.org/maven2.
> > The lowest part of the stack is: java.io.IOException: Transfer for
> > nexus-maven-repository-index.properties failed; Transfer error: null
>
> > Thanks,
>
> > Pete

-- 
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: RPC in separate module

2010-12-08 Thread Andreas Horst
Well, yes. But that's not what I meant. These are the servlet declarations
in the DEPLOYMENT descriptor (aka web.xml).

What I meant is you could declare the servlet in the MODULE descriptor (aka
mymodule.gwt.xml) of your inherited module.

A servlet declaration in a module descriptor looks like this:


However what you still need to do is get an appropriate servlet mapping in
the deployment descriptor of the inheriting module. There are several
options:
- with Maven: use goal "gwt:mergewebxml"
- with Ant/GWT compiler: I don't know, ask the group!
- manually edit the deployment descriptor like you just proposed, however
make sure the url-pattern matches the
RemoteServiceRelativePath
and
probably the "rename-to" directive (not sure about this last point though
especially in case both your inherited and the inheriting module declare
(different) directives)

Hope I did not create more confusion about this.

Regards,

Andreas

2010/12/8 Metronome / Basic 

> Thanks for your help , I think that it must be something like that
> so I tried
>
> 
> userServlet
>
> metro.app.tmupack.server.MyModServiceImpl
>
>
> 
>
>
> 
>
> userServlet
>
> /metro.app.tmupack/modervice
>
> 
>
> where metro.app.tmupack is from the main module but , ie does't work
>
> I guess that the url of the module have to be addes somehow ?
>
> Any Idea
>
> Thanks
>
> Patrick
>
>
> - Original Message - From: "Brian Reilly"  >
> To: 
> Sent: Tuesday, December 07, 2010 8:15 PM
>
> Subject: Re: RPC in separate module
>
>
> You do have to declare the servlet in the web.xml of the main module.
> As such, you have to treat it like it's in the main module. I suspect
> the "metro.module.rpcpack" part of the url-pattern is the problem. The
> URL pattern is determined by the main module name, not the inherited
> module name or the package containing the RPC code.
>
> -Brian
>
> On Tue, Dec 7, 2010 at 12:17 PM, Metronome / Basic
>  wrote:
>
>> It certainly is but I cannot find it
>>
>> I tried
>> 
>>
>> userServlet
>>
>>
>> metro.module.rpcpack.server.MyModServiceImpl
>>
>> 
>>
>>
>> 
>>
>> userServlet
>>
>> /metro.module.rpcpack/modervice
>>
>> 
>>
>> in the web.xml of the main module
>> metro.module.rpcpack is the package name of the module with the rpc
>>
>> should the declaration of the servlet be in the main module ?
>> what is the path
>>
>> I cannot sort it out
>>
>> Thanks
>>
>> Patrick
>>
>> - Original Message - From: "Didier Durand" <
>> durand.did...@gmail.com>
>> To: "Google Web Toolkit" 
>> Sent: Tuesday, December 07, 2010 1:08 PM
>> Subject: Re: RPC in separate module
>>
>>
>> Hi,
>>
>> Everything you need is detailed here:
>> http://code.google.com/webtoolkit/doc/1.6/DevGuideOrganizingProjects.html
>>
>> On Dec 7, 11:06 am, coelho  wrote:
>>
>>>
>>> Hello
>>>
>>> I'm trying to bild a small application using RPC to acces SQL data
>>> ( jdbc )
>>>
>>> It works no problem so far
>>>
>>> I'd like this application to use modules , so that the code could be
>>> reused in others
>>>
>>> so I'd like to put the SQL parts in a separate module
>>>
>>> and the question is :
>>>
>>> How do You declare a servlet that is not in the main module
>>> ( application)
>>>
>>> or am I missing something ? ( probably)
>>>
>>> Thanks for reading
>>>
>>> Patrick
>>>
>>
>> --
>> 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.
>>
>>
>>
>>
>> -
>> Aucun virus trouvé dans ce message.
>> Analyse effectuée par AVG - www.avg.fr
>> Version: 10.0.1170 / Base de données virale: 426/3301 - Date: 06/12/2010
>>
>>
>> --
>> 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.
>
>
>
>
> -
> Aucun virus trouvé dans ce message.
> Analyse effectuée par AVG - www.avg.fr
> Version: 10.0.1170 / Base de données virale: 426/3303 - Date: 07/12/2010
>
>
>
> --
> You received this message because you a

Re: RPC in separate module

2010-12-08 Thread Metronome / Basic

Thanks for your help , I think that it must be something like that
so I tried

userServlet

metro.app.tmupack.server.MyModServiceImpl






userServlet

/metro.app.tmupack/modervice



where metro.app.tmupack is from the main module but , ie does't work

I guess that the url of the module have to be addes somehow ?

Any Idea

Thanks

Patrick


- Original Message - 
From: "Brian Reilly" 

To: 
Sent: Tuesday, December 07, 2010 8:15 PM
Subject: Re: RPC in separate module


You do have to declare the servlet in the web.xml of the main module.
As such, you have to treat it like it's in the main module. I suspect
the "metro.module.rpcpack" part of the url-pattern is the problem. The
URL pattern is determined by the main module name, not the inherited
module name or the package containing the RPC code.

-Brian

On Tue, Dec 7, 2010 at 12:17 PM, Metronome / Basic
 wrote:

It certainly is but I cannot find it

I tried


userServlet

metro.module.rpcpack.server.MyModServiceImpl






userServlet

/metro.module.rpcpack/modervice



in the web.xml of the main module
metro.module.rpcpack is the package name of the module with the rpc

should the declaration of the servlet be in the main module ?
what is the path

I cannot sort it out

Thanks

Patrick

- Original Message - From: "Didier Durand" 


To: "Google Web Toolkit" 
Sent: Tuesday, December 07, 2010 1:08 PM
Subject: Re: RPC in separate module


Hi,

Everything you need is detailed here:
http://code.google.com/webtoolkit/doc/1.6/DevGuideOrganizingProjects.html

On Dec 7, 11:06 am, coelho  wrote:


Hello

I'm trying to bild a small application using RPC to acces SQL data
( jdbc )

It works no problem so far

I'd like this application to use modules , so that the code could be
reused in others

so I'd like to put the SQL parts in a separate module

and the question is :

How do You declare a servlet that is not in the main module
( application)

or am I missing something ? ( probably)

Thanks for reading

Patrick


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




-
Aucun virus trouvé dans ce message.
Analyse effectuée par AVG - www.avg.fr
Version: 10.0.1170 / Base de données virale: 426/3301 - Date: 06/12/2010


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





-
Aucun virus trouvé dans ce message.
Analyse effectuée par AVG - www.avg.fr
Version: 10.0.1170 / Base de données virale: 426/3303 - Date: 07/12/2010


--
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: Get all events

2010-12-08 Thread MAM
Still searching, any help?
Thanks

On 2 déc, 12:00, MAM  wrote:
> thank you for the reply, but that's not what I want, actually I want
> to do the same thing like in gwt designer :by clicking on the widget
> we haveallthe possibleeventsto be added and  those already
> present. i try to do the Same Thing by retrievingallevents(to add &
> added).
> Thanks
>
> On 24 nov, 11:18, ep  wrote:
>
>
>
>
>
>
>
> > hi, is this one you're looking 
> > for?http://groups.google.com/group/google-web-toolkit-contributors/browse...
> > if so, maybe we can make an issue on that :)
>
> > elsewise, maybe a workaround would help:
>
> > write a JSNI method which takes generic eventhandler and a widget it
> > shall bind it with, and attach your handler from within the javascript
> > code (referring to widget's method via GWT's @class references, rather
> > than raw JS code)
>
> > On 24 Nov., 10:43, MAM  wrote:
>
> > > please , need help!!
>
> > > thanks
>
> > > On 23 nov, 09:53, MAM  wrote:
>
> > > > thanks for the reply , i'm not trying to listen to native domevents.
> > > > i give you an example to understand:
>
> > > > - i have a button "add" with an "addClickHandler"
> > > > - At runtime i'm trying togetallbutton's properties andevents(in
> > > > this case the "addClickHandler")
>
> > > > Thanks
>
> > > > On 19 nov, 12:25, Jack  wrote:
>
> > > > > You mean something like:
>
> > > > > Event.addNativePreviewHandler(NativePreviewHandler handler)
>
> > > > > ?
>
> > > > > JavaDoc: Adds a NativePreviewHandler that will receiveallevents
> > > > > before they are fired to their handlers. Note that the handler will
> > > > > receiveallnativeevents, including those received due to bubbling,
> > > > > whereas normal event handlers only receive explicitly sunkevents.
>
> > > > > On 19 Nov., 10:33, MAM  wrote:
>
> > > > > > i want to retrieveallevents, "previously"added to a Widget(button,
> > > > > > Panel, TextFiled ...) , at runtime

-- 
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.1, xml. Document.getElementById() returns null

2010-12-08 Thread Thomas Broyer


On 7 déc, 01:28, Roman Makurin  wrote:
> Hi All!
>
> I need to handle xml on client side, so Im using following
> scheme:
>
> Document xml = XMLParser.parse(xmlStr);
> Element el = xml.getElementById("id1");
>
> at this point getElementById() returns null, but im 100%
> sure that element with id="id1" presents in xml document.
>
> Why this happen ? And is there any chance to get it
> working ?

Is there a DTD for your XML doc that defines the 'id' attribute to be
of type ID? If not, then 'id' is just an attribute; its name doesn't
make it an ID; that's how XML works.

Good luck! http://bitworking.org/news/2010/12/json-xml-web

-- 
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: RequestFactory EntityProxyChange events

2010-12-08 Thread ali
Hi PJ,
Can you share the solution if you have found one ? I am working on the
same problem space


Thanks
Ali

-- 
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: what Mock framework do you recommend ?

2010-12-08 Thread Thomas Broyer


On 7 déc, 16:32, Raphael André Bauer 
wrote:
> On Tue, Dec 7, 2010 at 2:18 PM, Christian Goudreau
>
>  wrote:
> > I read the article proposed by Didier and Mockito is even easier than those
>
> +1 Mockito is great...

+1

(I've been using EasyMock 2.x on another project, I really do prefer
Mockito)

-- 
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: SOP Problem with GWT 2.0.4

2010-12-08 Thread Thomas Broyer

On 7 déc, 11:44, julio  wrote:
> Hi,
>
> I have a simple callback to a remote server like this:
>
> RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, url);
>
>                 try {
>                         builder.sendRequest(null, new RequestCallback() {
>
>                                 public void onError(Request request, 
> Throwable exception)
> { Window.alert("Failed to send the request: " +
> exception.getMessage()); }
>
>                                 public void onResponseReceived(Request 
> request, Response response)
> {
>                                         if (200 == response.getStatusCode()) {
>                                                 
> Window.alert(response.getText());
>                                       } else {
>                                           Window.alert("STATUS CODE: 
> "+response.getStatusCode());
>                                       }
>
>                                 }
>                         });
>                 } catch (RequestException e) { Window.alert("Failed to send 
> the
> request: " + e.getMessage()); }
>         }
>
> and it returns "STATUS CODE: 0". The url is a remote public CGI (not
> under my control).
> I added in my gwt.xml file this:
>
> 
> 
> 
>
> as I supposed it to be a SOP problem.
> But unfortunately it doesn't work me, either using a deployed app on
> tomcat or with "run as-> web application" in eclipse.

The "xs" linker only allows you to load the GWT app (*.nocache.js et
al.) from a different origin than the "HTML host page". This is
because the default linker ("std", or IFrameLinker) uses an iframe to
load the *.cache.html and then hits the SOP when trying to communicate
with the host page. The "xs" linker does not use an iframe but instead
load *.cache.js files directly in the host page.

> Have you any idea?

There's no way a browser can contact a "remote public CGI (not under
[your] control)" if that one doesn't explicitly allows it (using
CORS), and were it the case then it would only work for those browsers
that support CORS (recent versions of Firefox, Chrome, Safari and
Opera; IE8 supports it but with a specific API that GWT doesn't use).

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



Transactions in Request Factory

2010-12-08 Thread ali
I have operations in my client that can impact multiple entities. Now
using Requst Factory, the only way seem to be doing one at a time which
causes one RPC to the server. Also, transactions can't be done this way
neither.


So what is the solution ? Do everything on the server using a static
request method and update the proxies on the client manually ? -- This
is not a clean soluton to 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: issue with RequestFactory not finding a ValidatorFactory

2010-12-08 Thread ali
Thanks to both of you. Yes, the class file was in gwt-servlet-deps.jar
which is not deployed by the plugin! This is a bad bug there. hope
they fix it.

On Dec 5, 1:34 pm, Thomas Broyer  wrote:
> On 5 déc, 06:13, ali  wrote:
>
> > I am using JDO with RequestFactory and here's what happens when I run
> > GWT in the development mode. Is there a jar file I'm missing that
> > needs to be added as the implementation of the JSR 303
> > ValidatorFActory ?
>
> RequestFactory depends on org.json.* and javax.validation.*. If you're
> using Maven, add the appropriate dependencies (have a look at the
> Expenses sample's pom.xml). Otherwise, you can just add gwt-servlet-
> deps.jar to your WEB-INF/lib in addition to gwt-servlet.jar

-- 
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 center application in webpage

2010-12-08 Thread suersh babu
Try using horizontal or vertical panel instead of absolute panel


On Wed, Dec 8, 2010 at 10:57 AM, stymie  wrote:

> I have a root panel with an absolute panel in it that both are 480px
> wide.I created the following rule in the css file and have applied it
> to both the root panel and the absolute panel,but it is not centered
> in the page.
>
> .gwt-Container {
>margin: 0 auto;
>  width: 480px;
> }
>
> What am I doing wrong?
>
> --
> 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.
>
>


-- 
*Regards

Suresh Babu G*

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