Re: PDF version of the GWT Developer Guide -- any time soon?

2009-03-18 Thread MN

interesting idea, but i would point this issue to the google code or
to the google docs team, because gwt is only using this system.

On 18 Mrz., 07:10, Peter Ondruška  wrote:
> Nice, but not downloadable for offline access. Perhaps some Gears offline
> functionality (pretty easy) needs to be added...
>
> On Wed, Mar 18, 2009 at 1:55 AM, Brian  wrote:
>
> > Moribund?  I loved their games, especially Raid On Bungling Bay... :)
>
> > I don't know anything about a PDF version of the docs -- just pointing
> > out that the GWT Developer Docs are themselves a GWT app, which is
> > kind of nice to see.
>
> > On Mar 17, 7:32 pm, jcox  wrote:
> > > I'd love it if the GWT Developer Guide were also be available in PDF
> > > format.
> > > Here's why:
>
> > >   o  It's a fairly long book-like document
> > >   o  It changes fast enough to make 3rd party books perpetually
> > > obsolete
> > >   o  Being forced to read long paginated html docs is annoying
> > >   o  It causes less eye strain to read long documents when they're
> > > printed
>
> > > I don't see much need to render the javadocs as pdf, just the
> > > Developer Guide.
> > > I filed this bug recently (see below), but then got depressed when I
> > > noticed
> > > all the moribund discussion threads on the same topic (see below).
>
> > > Even if the current docs do have printer-friendly CSS, printing them
> > > one
> > > page at a time isn't a particularly attractive option.    At this
> > > point, I'd even
> > > settle for an ugly but readable "everything one page"  version
> > > I just don't like reading this much book-like content off a screen.
>
> > > Compounding matters is that if you *do* read the docs online, screen
> > > width issues tend to arise once the fonts are made slightly bigger.
>
> > > Are there plans to make an up-to-date PDF version?
> > > If that's too hard, what about an easily-printable-all-on-one-html-
> > > page version?
>
> > > If either of these seem like they might happen sometime soon,
> > > is there any idea when?    They'd be greatly appreciated !
>
> > >           Cheers,
> > >            -Jon
>
> > > --
> > > Related Links
> > > ---
>
> > > Issue tracker
> > > -
> > >    http://code.google.com/p/google-web-toolkit/issues/detail?id=3470
>
> > > Moribund discussion threads
> > > ---
>
> > >http://groups.google.com/group/Google-Web-Toolkit/browse_frm/thread/d...
>
> > >http://groups.google.com/group/Google-Web-Toolkit/browse_frm/thread/1...
>
> > >http://groups.google.com/group/Google-Web-Toolkit/browse_frm/thread/5...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How i found the real name of a obfuscated function? How i find the code lines?

2009-03-18 Thread MN

i know this, but this is not possible.

i have a running system with obfuscated code and get sometimes error
messages from user. now i need to assign this to the real code.

unobfuscated (detailed) code to place on the production system is not
the solution.

is there any other solution?




On 17 Mrz., 21:28, "Marcelo Emanoel B. Diniz"
 wrote:
> You can disable obfuscation by putting -style PRETTY on the compiler
> command line
>
> On Mar 17, 3:06 pm, MN  wrote:
>
> > I have a error message from a user. but i have only some obfuscated
> > code for the stacktrace.
>
> > is there a change to get the realnames method names from this?
>
> > is there some index file to see the function in line 123 is the real
> > method name xyz or an indexfile with the obfuscated method name and
> > the real method name?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Compiling source files form external project?

2009-03-18 Thread Mike

Dear all,

I'm writing a GWT app which has three tiers: a client, an RPC server
(using the GWT RPC mechanism) and a further back-end server (RMI) used
by the GWT service.

Some classes, containing data,  are used by all three tiers. Hence
they are placed in package com.myapp.common . Since these classes do
not really belong to a distinct tier, i placed them in a separate
project. But since they ARE needed by the client, i DO want the GWT
compiler to translate them.

My problem: how can i tell GWT (1.5.3) to translate these classes?
(Without moving them into the client project because that would just
be ugly.)

Is there a way to have the  tag in the .gwt.xml file refer to
a package stored in an external project?

Thanks, Mike

BTW: in an earlier project, using GWT 1.4 instead of 1.5 i did the
same thing and that compiled without problems.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How i found the real name of a obfuscated function? How i find the code lines?

2009-03-18 Thread Thomas Broyer



On 18 mar, 10:24, MN  wrote:
>
> i have a running system with obfuscated code and get sometimes error
> messages from user. now i need to assign this to the real code.
>
> unobfuscated (detailed) code to place on the production system is not
> the solution.
>
> is there any other solution?

GWT 2.0 will have a "story of your compile" compiler option that,
AFAIK, will tell you those kind of things. In the mean time, I'm
afraid there's no easy solution (hmm, running in GWTShell -noserver
and try to reproduce the error, maybe?)

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



Re: How to mask page when show a dialog box ?

2009-03-18 Thread Thomas Broyer


On 18 mar, 07:34, Saeed Zarinfam  wrote:
> Hi
> I want to mask page element when i show a dialog box over the page
> (like google reader message box).
> please guide me.

http://collectionofdemos.appspot.com/javadoc/com/google/gwt/widgetideas/client/GlassPanel.html

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



Re: How i found the real name of a obfuscated function? How i find the code lines?

2009-03-18 Thread MN

i just googled around this SOYC feature in the trunc, but in a sample
output of soyc-vis i dont see this mappings:

http://code.google.com/p/google-web-toolkit/source/browse/changes/kprobst/soyc-vis/?r=4195

maybe there is more of information in the xml file (in sampleInput-
folder):

in the last part with js / storyref... but i miss there also the line
numbers of the function.


have someone used the soyc? is there a small howto how i can use it?

On 18 Mrz., 12:32, Thomas Broyer  wrote:
> On 18 mar, 10:24, MN  wrote:
>
>
>
> > i have a running system with obfuscated code and get sometimes error
> > messages from user. now i need to assign this to the real code.
>
> > unobfuscated (detailed) code to place on the production system is not
> > the solution.
>
> > is there any other solution?
>
> GWT 2.0 will have a "story of your compile" compiler option that,
> AFAIK, will tell you those kind of things. In the mean time, I'm
> afraid there's no easy solution (hmm, running in GWTShell -noserver
> and try to reproduce the error, maybe?)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Excluding imports on client side

2009-03-18 Thread Ice13ill

Is there a way to exclude imports when compiling a gwt application ?
Let's say i want to use a class on client and server side with two
methods: one uses gwt widgets (this is the method i want to use on the
client side) and one uses Sockets (or smth like that... code needed on
the server side).
Obviously i get an error when importing java.net.Socket.

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



Re: ResourceBundle for client??

2009-03-18 Thread Danny Schimke
Is the Constants- Interface of GWT the thing, what you are searching for?
With this you can read the values from a properties- file

-Danny

2009/3/17 joe young 

>
> Can client code able to use  java.util.ResourceBundle?
>
> I have some information in a propertie file and I don't want to get it
> via RPC, is there an easy way to do it?
>
> Right now when I use java.util.ResourceBundle in client side code, it
> gives me this error~
>
> [ERROR] Hint: Check the inheritance chain from your module; it may not
> be inheriting a required module or a module may not be adding its
> source path entries properly
>
> Thanks
> >
>

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



Help with DecoratedStackPanel

2009-03-18 Thread Harry

Hi,

I need to piece of code with DecoratedStackPanel class instance. I
wanted it to be used for stack panels and few widgets will be under
that. For example: Name, Address are two Stack Panels,

Name
Text boxes with First name
Text Boxes with last name

Address
Text boxes for Address 1
Text Boxes for Address 2, City, State, Pin .

Should each Stack Panel have a 'public Widget onInitialize()' function
cant we do with  'public void onModuleLoad()' function.

Please Help, iam new to GWT.

Thanks in advance.

Harry.


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



gwt-rpc + webservices hang glassfish 2.1

2009-03-18 Thread PeSc|O

Hi all,

I'm getting some strange hangs with glassfish and gwt rpc services.
I'll describe my problem:

my dev tools are: netbeans 6.5 with latest updates, glassfish 2.1,
gwt-1.5.3, linux ubuntu 8.04.

situation:
on the entry point create a SimplePanel with a button. Associate to
this button a listener with the following code to be executed:

for (int i = 0; i < 10; i++) {
_query_service.doQuery(query, new AsyncCallback()
{

public void onFailure(Throwable caught)
{
}

public void onSuccess(Object result)
{
Window.alert("wh0a");
}
});
}


The doQuery () is a GWT-RPC service.
The service implementation is something like this:

public class QueryServiceImpl extends RemoteServiceServlet implements
QueryService
{
@WebServiceRef(wsdlLocation = "WEB-INF/wsdl/client/StoreService/
localhost_8139/Store/StoreService.wsdl")
private StoreService service;

public synchronized doQuery (MyObject query) {

try
{ // Call Web Service Operation
   com.my.company.Store port = service.getStorePort();
   // TODO initialize WS operation arguments here
   java.lang.String programName = "par1";
  java.lang.String programVersion = "par2";
 // TODO process result here
 java.lang.String result = port.getCfgText(programName,
programVersion);
 out.println("Result = "+result);
}
catch (Exception ex)
{
// TODO handle custom exceptions here
}

}
}


as you see the webservice is called with the automatic 'call
webservice operation...' by Netbeans.
The webservice in hosted in the local server, the same in which the
gwt-rpc service is deployed.
But in the above configuration I've a *global* freeze of glassfish. I
must restart it to have it responding again. No exception is thrown
nor result received.
The method is thread-safe, using synchronized keyword.
The hang does not happen if the webservice is hosted on another
server.
The hang does not happen if I call once the doQuery (), and then I the
for loop.


Am I missing or doing something 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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Help with DecoratedStackPanel

2009-03-18 Thread Sean

Here, check this out. It has source code to get you started as well:

http://gwt.google.com/samples/Showcase/Showcase.html#CwStackPanel

You will only need one stack Panel, but have a StackPanel.add() for
Name and for Address.

For something like Name and Address, StackPanel seems like an odd
choice. You may want to look at the rest of the GWT Showcase and see
if something better fits what you are looking for.



On Mar 18, 8:39 am, Harry  wrote:
> Hi,
>
> I need to piece of code with DecoratedStackPanel class instance. I
> wanted it to be used for stack panels and few widgets will be under
> that. For example: Name, Address are two Stack Panels,
>
> Name
> Text boxes with First name
> Text Boxes with last name
>
> Address
> Text boxes for Address 1
> Text Boxes for Address 2, City, State, Pin .
>
> Should each Stack Panel have a 'public Widget onInitialize()' function
> cant we do with  'public void onModuleLoad()' function.
>
> Please Help, iam new to GWT.
>
> Thanks in advance.
>
> Harry.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Compiling source files form external project?

2009-03-18 Thread Mike

I `solved' my problem by creating a separate module for the common
source files, packaging them in a JAR, and including them in the
client project by using . Not really satisfied though,
because each time i change the common package i must re-export and
import the JAR.

Bye, Mike

On Mar 18, 11:51 am, Mike  wrote:
> Dear all,
>
> I'm writing a GWT app which has three tiers: a client, an RPC server
> (using the GWT RPC mechanism) and a further back-end server (RMI) used
> by the GWT service.
>
> Some classes, containing data,  are used by all three tiers. Hence
> they are placed in package com.myapp.common . Since these classes do
> not really belong to a distinct tier, i placed them in a separate
> project. But since they ARE needed by the client, i DO want the GWT
> compiler to translate them.
>
> My problem: how can i tell GWT (1.5.3) to translate these classes?
> (Without moving them into the client project because that would just
> be ugly.)
>
> Is there a way to have the  tag in the .gwt.xml file refer to
> a package stored in an external project?
>
> Thanks, Mike
>
> BTW: in an earlier project, using GWT 1.4 instead of 1.5 i did the
> same thing and that compiled without problems.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Excluding imports on client side

2009-03-18 Thread Isaac Truett

No, you'll have to refactor to separate the server-side functionality.

On Wed, Mar 18, 2009 at 6:17 AM, Ice13ill  wrote:
>
> Is there a way to exclude imports when compiling a gwt application ?
> Let's say i want to use a class on client and server side with two
> methods: one uses gwt widgets (this is the method i want to use on the
> client side) and one uses Sockets (or smth like that... code needed on
> the server side).
> Obviously i get an error when importing java.net.Socket.
>
> >
>

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



Re: Excluding imports on client side

2009-03-18 Thread Thomas Broyer


On 18 mar, 11:17, Ice13ill  wrote:
> Is there a way to exclude imports when compiling a gwt application ?

Simply put: no.

> Let's say i want to use a class on client and server side with two
> methods: one uses gwt widgets (this is the method i want to use on the
> client side) and one uses Sockets (or smth like that... code needed on
> the server side).
> Obviously i get an error when importing java.net.Socket.

Several options:
 a) refactor your code so that client and server code are in distinct
classes
 b) include a  in your module with a dummy
java.net.Socket class so that the GWTCompiler doesn't choke (but it
won't use it in the final code as the "server only" method won't be
called by client code).

Obviously, option "a" is strongly preferred, as it also makes it
obvious that "methodB" isn't to be called by client code and vice
versa.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Not able to see checkboxes

2009-03-18 Thread Harry

Hi,

I am not able to see radio button, what should i do is there anything
i should add.

package com.myapplications.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.Command;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.MenuBar;
import com.google.gwt.user.client.ui.RadioButton;
import com.google.gwt.user.client.ui.RootPanel;

@SuppressWarnings("unused")
public class Notes implements EntryPoint{
public void onModuleLoad(){

RadioButton age18 = new RadioButton("age", "18-25");
RadioButton age26 = new RadioButton("age", "26-30");
RadioButton age31 = new RadioButton("age", "31-40");
RadioButton other = new RadioButton("age", "> 40");
}
}

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



Re: How i found the real name of a obfuscated function? How i find the code lines?

2009-03-18 Thread Thomas Broyer



On 18 mar, 12:43, MN  wrote:
> i just googled around this SOYC feature in the trunc, but in a sample
> output of soyc-vis i dont see this mappings:
>
> http://code.google.com/p/google-web-toolkit/source/browse/changes/kpr...
>
> maybe there is more of information in the xml file (in sampleInput-
> folder):
>
> in the last part with js / storyref... but i miss there also the line
> numbers of the function.

This change branch looks like it is out-dated.

> have someone used the soyc? is there a small howto how i can use it?

I haven't used SOYC, but it should give you the "origin source
location":
http://code.google.com/p/google-web-toolkit/source/browse/trunk/dev/core/src/com/google/gwt/core/ext/soyc/impl/StoryRecorderImpl.java#324
in storiesN.xml.gz (where N is the permutation index)
Information is then processed by soyc-vis to give you an HTML report
with the appropriate source info:
http://code.google.com/p/google-web-toolkit/source/browse/trunk/tools/soyc-vis/src/com/google/gwt/soyc/SoycDashboard.java#590

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



Re: ResourceBundle for client??

2009-03-18 Thread joe young

YES~!! It is exactly what I'm looking for!!

Thank you so much Danny~


On Mar 18, 8:03 am, Danny Schimke  wrote:
> Is the Constants- Interface of GWT the thing, what you are searching for?
> With this you can read the values from a properties- file
>
> -Danny
>
> 2009/3/17 joe young 
>
>
>
> > Can client code able to use  java.util.ResourceBundle?
>
> > I have some information in a propertie file and I don't want to get it
> > via RPC, is there an easy way to do it?
>
> > Right now when I use java.util.ResourceBundle in client side code, it
> > gives me this error~
>
> > [ERROR] Hint: Check the inheritance chain from your module; it may not
> > be inheriting a required module or a module may not be adding its
> > source path entries properly
>
> > Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



WindowCloseListener gets fired from iframe

2009-03-18 Thread ben

I'm having a problem with my WindoCloseListener.onWindowClosing event
firing when I click a link on my page, which opens an iframe on my
page.  if I click ok, everything works as it should.  But I don't want
users thinking they are navigating away from my page when the click
the link. I'm wondering if anyone else has run into this problem?

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



Re: How i found the real name of a obfuscated function? How i find the code lines?

2009-03-18 Thread Thomas Broyer



On 18 mar, 15:08, Thomas Broyer  wrote:
> On 18 mar, 12:43, MN  wrote:
>
> > i just googled around this SOYC feature in the trunc, but in a sample
> > output of soyc-vis i dont see this mappings:
>
> >http://code.google.com/p/google-web-toolkit/source/browse/changes/kpr...
>
> > maybe there is more of information in the xml file (in sampleInput-
> > folder):
>
> > in the last part with js / storyref... but i miss there also the line
> > numbers of the function.
>
> This change branch looks like it is out-dated.

It actually is, as it has been deleted ;-)

Search for "http://google-web-toolkit.googlecode.com/svn-history/r4195/changes/kprobst/soyc-vis/sampleInput/report0-hello.xml

I don't know how to process this info though (but as soyc-vis will do
it for you, no need to worry that much ;-)


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



Re: PDF version of the GWT Developer Guide -- any time soon?

2009-03-18 Thread Brian

Yeah it is too bad it's not accessible offline.  Just noticed it also
doesn't work to view the pages to cache the app, going offline, and re-
viewing -- guess it's trying to pull data off the server.  Think
you're stuck until an offline version of some sort is provided...


On Mar 18, 2:10 am, Peter Ondruška  wrote:
> Nice, but not downloadable for offline access. Perhaps some Gears offline
> functionality (pretty easy) needs to be added...
>
>
>
> On Wed, Mar 18, 2009 at 1:55 AM, Brian  wrote:
>
> > Moribund?  I loved their games, especially Raid On Bungling Bay... :)
>
> > I don't know anything about a PDF version of the docs -- just pointing
> > out that the GWT Developer Docs are themselves a GWT app, which is
> > kind of nice to see.
>
> > On Mar 17, 7:32 pm, jcox  wrote:
> > > I'd love it if the GWT Developer Guide were also be available in PDF
> > > format.
> > > Here's why:
>
> > >   o  It's a fairly long book-like document
> > >   o  It changes fast enough to make 3rd party books perpetually
> > > obsolete
> > >   o  Being forced to read long paginated html docs is annoying
> > >   o  It causes less eye strain to read long documents when they're
> > > printed
>
> > > I don't see much need to render the javadocs as pdf, just the
> > > Developer Guide.
> > > I filed this bug recently (see below), but then got depressed when I
> > > noticed
> > > all the moribund discussion threads on the same topic (see below).
>
> > > Even if the current docs do have printer-friendly CSS, printing them
> > > one
> > > page at a time isn't a particularly attractive option.    At this
> > > point, I'd even
> > > settle for an ugly but readable "everything one page"  version
> > > I just don't like reading this much book-like content off a screen.
>
> > > Compounding matters is that if you *do* read the docs online, screen
> > > width issues tend to arise once the fonts are made slightly bigger.
>
> > > Are there plans to make an up-to-date PDF version?
> > > If that's too hard, what about an easily-printable-all-on-one-html-
> > > page version?
>
> > > If either of these seem like they might happen sometime soon,
> > > is there any idea when?    They'd be greatly appreciated !
>
> > >           Cheers,
> > >            -Jon
>
> > > --
> > > Related Links
> > > ---
>
> > > Issue tracker
> > > -
> > >    http://code.google.com/p/google-web-toolkit/issues/detail?id=3470
>
> > > Moribund discussion threads
> > > ---
>
> > >http://groups.google.com/group/Google-Web-Toolkit/browse_frm/thread/d...
>
> > >http://groups.google.com/group/Google-Web-Toolkit/browse_frm/thread/1...
>
> > >http://groups.google.com/group/Google-Web-Toolkit/browse_frm/thread/5...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: gwt-rpc + webservices hang glassfish 2.1

2009-03-18 Thread tetsuo

as i catch i right, the rpc-call is a different way to communicate,
then webservice

webservice is between 2 tiers, the rpc is a remote controller for the
client to the server. if u want to distribute your remote call to a
second app.server, u can use a webservice. for the simple remote call
from the gui (e.g. browser) use the rpc with the @remote call


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



Re: file upload like orkut

2009-03-18 Thread El Mentecato Mayor

e) Via a Java Applet
f) Via an ActiveX Applet (IE/windows-only I think)

On Mar 16, 7:51 am, Thomas Broyer  wrote:
> On 16 mar, 09:06, Adam T  wrote:
>
> > File upload is done via either:
>
> > a) The FileUpload widget - if your happy for the user to select one
> > file at a time, or
> > b) Via a Flash Movie that allows multiple file selects.
>
> c) Google Gears (as used by YouTube)
>    http://code.google.com/p/gwt-google-apis/
> b) Yahoo! BrowserPlus
>    http://browserplus.yahoo.com
>    http://code.google.com/p/gwt-in-the-air/(preliminary support)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Excluding imports on client side

2009-03-18 Thread Ice13ill

Where can i  find how to use  tag in gwt.xml ?

On Mar 18, 3:34 pm, Thomas Broyer  wrote:
> On 18 mar, 11:17, Ice13ill  wrote:
>
> > Is there a way to exclude imports when compiling a gwt application ?
>
> Simply put: no.
>
> > Let's say i want to use a class on client and server side with two
> > methods: one uses gwt widgets (this is the method i want to use on the
> > client side) and one uses Sockets (or smth like that... code needed on
> > the server side).
> > Obviously i get an error when importing java.net.Socket.
>
> Several options:
>  a) refactor your code so that client and server code are in distinct
> classes
>  b) include a  in your module with a dummy
> java.net.Socket class so that the GWTCompiler doesn't choke (but it
> won't use it in the final code as the "server only" method won't be
> called by client code).
>
> Obviously, option "a" is strongly preferred, as it also makes it
> obvious that "methodB" isn't to be called by client code and vice
> versa.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: como agregar imagen bmp en backround

2009-03-18 Thread El Mentecato Mayor

Pacholi,

En tu página principal, simplemente usa un estilo CSS en el Panel que
uses ahí que tenga una imagen de fondo, luego cambias en las demás
páginas, si cambias el Panel, entonces se irá, si no, entonces
simplemente cambias el estilo CSS por uno que no tenga esa imagen
(usando .setStyleName("tu-estilo")) en el Panel o widget al que le
quieras cambiar el estilo (imagen).

On Mar 16, 4:59 pm, Pacholi  wrote:
> necesito agregar imagen que se cargue una sola vez en pagina
> principal, luego la navegar por las demas paginas que omita esta
> imagen de fondo,.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Not able to see checkboxes

2009-03-18 Thread Vitali Lovich
You have to add them to a visible component.  For instance:

On Wed, Mar 18, 2009 at 9:50 AM, Harry  wrote:

>
> Hi,
>
> I am not able to see radio button, what should i do is there anything
> i should add.
>
> package com.myapplications.client;
>
> import com.google.gwt.core.client.EntryPoint;
> import com.google.gwt.core.client.GWT;
> import com.google.gwt.user.client.Command;
> import com.google.gwt.user.client.Window;
> import com.google.gwt.user.client.ui.MenuBar;
> import com.google.gwt.user.client.ui.RadioButton;
> import com.google.gwt.user.client.ui.RootPanel;
>
> @SuppressWarnings("unused")
> public class Notes implements EntryPoint{
> public void onModuleLoad(){
>
>RadioButton age18 = new RadioButton("age", "18-25");
>RadioButton age26 = new RadioButton("age", "26-30");
>RadioButton age31 = new RadioButton("age", "31-40");
>RadioButton other = new RadioButton("age", "> 40");

RootPanel body = RootPanel.get();
body.add(age18);
body.add(age26);
body.add(age31);
body.add(other);

>
> }
> }
>
> Thanks,
> Harry..
> >
>

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



JNSI -> IFrame -> Function Issue

2009-03-18 Thread Evan Ruff

Hey guys,

I'm trying to create a simple little foray in to JSNI to do some DOM
manipulation and I'm really striking out bigtime. Basically, my
document loads an IFrame that contains and external page in it. On the
page is a JS function called "giveFocus()". I can't seem to get ahold
of the frame properly to call the function.

Has anyone got this to work sucessfully? Basically, I've got something
like this:

entryPoint
{
Frame myFrame = new Frame( *externalPage* );
myFrame.setSize( 100, 200 );
RootPanel.add( myFrame );
doFrameFunction( myFrame );
}

native void doFrameFunction( Frame frame ) /*-{
  $wnd.frames( frame ).document.callThisJSFunctionInsideTheIFrame();
}-*/;

The pseudocode is crappy but generally that's what I'm trying to pull
off.

Is this possible? Where am I going wrong?

Thanks!

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



Re: gwt-rpc + webservices hang glassfish 2.1

2009-03-18 Thread PeSc|O



On Mar 18, 3:20 pm, tetsuo  wrote:
> as i catch i right, the rpc-call is a different way to communicate,
> then webservice
>
> webservice is between 2 tiers, the rpc is a remote controller for the
> client to the server. if u want to distribute your remote call to a
> second app.server, u can use a webservice. for the simple remote call
> from the gui (e.g. browser) use the rpc with the @remote call


well, in the example above I simplified the GWT Rpc service.
There's some more logic before the call to the webservice. Anyway,
there shouldn't be anything wrong in calling a webservice of the same
webserver (consider that I should be able to deploy the .war
everywhere without fearing that the wsdl points to the target
webserver or not).

there's something wrong in ws management.
If the RPC is called for the first time by more than a request, then
everything freezes, otherwise it works fine.




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



[ERROR] Type 'com.gwt.client.FileDetail' was not serializable and has no concrete serializable subtypes

2009-03-18 Thread Dhruv Patel


i am exploring GWT.

i am writing one application allows server directory browsing using
GWT.

but i am getting error

[ERROR] Type 'com.gwt.client.FileDetail' was not serializable and has
no concrete serializable subtypes

even though my class com.gwt.client.FileDetail implements Serializable

pls help

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



WEB-INF in hosted mode

2009-03-18 Thread Tarquin

Hi All

This is my first post, so please go easy on me!

I have checked the archives, but I couldn't find anything that seemed
to answer my questions.

I'm integrating GWT with Spring using a proxy class that derives from
RemoteServiceServlet and gets the Spring Application context as
follows:

final XmlWebApplicationContext context = new XmlWebApplicationContext
();
context.setServletContext(this.getServletContext());
context.refresh();
IssuesService issues = (IssuesService) context.getBean("IssuesImpl");

This works just fine when the project is deployed to TomCast (proper),
but when I use it in hosted mode I get:

[WARN] StandardContext[]Exception while dispatching incoming RPC call
com.google.gwt.user.server.rpc.UnexpectedException: Service method
'public abstract java.util.List
uk.co.marauder.tracker.client.rpc.IssuesService.getIssueHeaders
(boolean)' threw an unexpected exception:
org.springframework.beans.factory.BeanDefinitionStoreException:
IOException parsing XML document from ServletContext resource [/WEB-
INF/applicationContext.xml]; nested exception is
java.io.FileNotFoundException: Could not open ServletContext resource
[/WEB-INF/applicationContext.xml]

Where is the WEB-INF located when running in hosted mode?

Thanks
Paul

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



GWT 1.4 + Flex

2009-03-18 Thread venkat kamath

Hi, we are currently using GWT 1.4. is there a good plugin to
integrate Flex into GWT? i tried using gwt2swf but it needs GWT 1.5.
Any help is really appreciated.

thanks in advance,
Venkat

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



[ERROR] Unable to load module entry point class com.

2009-03-18 Thread Harry

Getting this error please help :(

[ERROR] Unable to load module entry point class
com.myapplications.client.Notes (see associated exception for details)
com.google.gwt.core.client.JavaScriptException: (TypeError):
'$wnd.Ext.StatusBar' is null or not an object
 number: -2146823281
 description: '$wnd.Ext.StatusBar' is null or not an object
at com.gwtext.client.widgets.Component.checkExtVer(Native Method)
at com.gwtext.client.widgets.Component.(Component.java:108)
at com.myapplications.client.Notes.onModuleLoad(Notes.java:22)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: JSNI / OpenLayers

2009-03-18 Thread Gilles

It is a little clearer now, couple of things were no correct in my
code and it took a while to get everything a little more straight.
I performed the following : click on an openLayers point to launch
java function. It works like that :

First, my native Js function largely inspired by Openlayers example
page :
---
 private static native JavaScriptObject _select(JavaScriptObject map,
JavaScriptObject layer,VectorLayer x)

/*-{

var mylayer=layer

  function select(feature)
  {

   x...@org.gt.client.map.openlayers.geometry.vectorlayer::selected
(Lcom/google/gwt/core/client/JavaScriptObject;)(feature.attributes[0])
  }


   var drawControl=new $wnd.OpenLayers.Control.SelectFeature
   (
mylayer,
{
clickout: true,
toggle: true,
multiple: true,
hover: false,
toggleKey: "ctrlKey", // ctrl key removes from
selection
multipleKey: "shiftKey", // shift key adds to
selection
box: true,
onSelect:select

}
);

map.addControl(drawControl);
drawControl.activate();

}-*/;

---
Note that :
Those three objects are passed JavaScriptObject map, JavaScriptObject
layer,VectorLayer x (VectorLayer is the self reference of the class :
this)
The path to the class in JSNI context is :
x...@org.gt.client.map.openlayers.geometry.vectorlayer
To adress a function in my class :
x...@org.gt.client.map.openlayers.geometry.vectorlayer::selected()()



On 10 mar, 15:26, Gilles  wrote:
> We are using GWT andOpenLayersin several projects making use of theJSNI.
> Until now we could use simpleOpenlayersjs function such as Zoom. It
> was clear to me that to use a zoom usingJSNII have to do :
>
>  private static native void _zoomTo(JavaScriptObject map, int
> zoomLevel) /*-{
>         map.zoomTo(zoomLevel);
>     }-*/;
>
> I could do a lot with this simple methods. But now, as complexity is
> increasing I would need to use more complex feature ofOpenlayers.
> For example what would be the smartest way to apply those settings to
> my map so I can detect double click and get the event to my gwt
> application :
>
>        
>         
>            OpenLayers.Control.Click =OpenLayers.Class
> (OpenLayers.Control, {
>                 defaultHandlerOptions: {
>                     'single': false,
>                     'double': true,
>                     'pixelTolerance': 0,
>                     'stopSingle': false,
>                     'stopDouble': false
>                 },
>
>                 initialize: function(options) {
>                     this.handlerOptions =OpenLayers.Util.extend(
>                         {}, this.defaultHandlerOptions
>                     );
>                    OpenLayers.Control.prototype.initialize.apply(
>                         this, arguments
>                     );
>                     this.handler = newOpenLayers.Handler.Click(
>                         this, {
>                             'click': this.trigger
>                         }, this.handlerOptions
>                     );
>                 },
>
>                 trigger: function(e) {
>                     var lonlat = map.getLonLatFromViewPortPx(e.xy);
>                     alert("You clicked near " + lonlat.lat + " N, " +
>                                               + lonlat.lon + " E");
>                 }
>
>             });
>
>            var map;
>
>             function init(){
>                 map = newOpenLayers.Map('map');
>
>                 var click = newOpenLayers.Control.Click();
>                 map.addControl(click);
>             }
>         
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



GWT1.4 source code

2009-03-18 Thread kandanur

Hi
could you please share the link, where i can download the full source
code of GWT V1.4?

tia
prabhu

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



Re: gwt-rpc + webservices hang glassfish 2.1

2009-03-18 Thread PeSc|O

I've got a sample crasher program.
Is there a way to upload something on the group?

On Mar 18, 4:26 pm, "PeSc|O"  wrote:
> On Mar 18, 3:20 pm, tetsuo  wrote:
>
> > as i catch i right, the rpc-call is a different way to communicate,
> > then webservice
>
> > webservice is between 2 tiers, the rpc is a remote controller for the
> > client to the server. if u want to distribute your remote call to a
> > second app.server, u can use a webservice. for the simple remote call
> > from the gui (e.g. browser) use the rpc with the @remote call
>
> well, in the example above I simplified the GWT Rpc service.
> There's some more logic before the call to the webservice. Anyway,
> there shouldn't be anything wrong in calling a webservice of the same
> webserver (consider that I should be able to deploy the .war
> everywhere without fearing that the wsdl points to the target
> webserver or not).
>
> there's something wrong in ws management.
> If the RPC is called for the first time by more than a request, then
> everything freezes, otherwise it works fine.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



How to determine if popup panel is visible or shown?

2009-03-18 Thread rjcarr

It seems as soon as I create a popup panel (PopupPanel) and call the
isVisible() method it will return true, even before I add a widget to
it and before I call show().

I can accept that it behaves differently from other widgets, but how
then do I determine whether or not popup is visible (shown)?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: gwt-rpc + webservices hang glassfish 2.1

2009-03-18 Thread tetsuo

you bedder consider the differences between a remote control and a
webservice interface

> http://en.wikipedia.org/wiki/Webservice
> http://en.wikipedia.org/wiki/Remote_procedure_call

the rpc is like the controller for your tv, the webservice is the like
two tv´s communicating to each other. in your example you want to
control your tv with a tv - that dosnt work.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Organizing CSS with GWT

2009-03-18 Thread Sumit Chandel
Hi Ice13ill,
I'm glad you asked! We have a recent GWT blog post by Chris Klundt and Eric
Wuebben who have given some great guidelines they've followed to build their
own application, http://studyblue.com.

You can check it out here:
http://googlewebtoolkit.blogspot.com/2008/12/gwt-no-need-to-shortchange-your-style.html

You should also be able to find a number of useful threads on the forum by
searching for terms similar to this thread title.

Hope that helps,
-Sumit Chandel

On Tue, Mar 17, 2009 at 10:57 AM, Ice13ill  wrote:

>
> Hello, I'm trying to create an interface for an application using gwt
> to arrange widgets and CSS (bigtime) for widgets properties/styles.
> Can somebody give a few links for hints or tutorials on how is it
> better to organize, arrange, cascade etc. styles using CSS in GWT ?
> >
>

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



Re: NumberFormat getCurrenyFormat()

2009-03-18 Thread fatjack1...@googlemail.com

Or at least change it to £2.57 instead of $?

On Mar 17, 8:58 pm, "fatjack1...@googlemail.com"
 wrote:
> Ok,
>
> The reason I wasparsing it back in was to convert it from a String to
> an integer. I think I have fixed part of the problem. My code now
> looks like this:
>
> NumberFormat fmt = NumberFormat.getCurrencyFormat();
> String formatted = fmt.format(discountAmount);
> discountAmount = Integer.parse(formatted);
>
> However, it now comes up with US$2.57...How do I get it to remove the
> US$ part?!
>
> Regards,
> Jack
>
> On Mar 17, 6:38 pm, MN  wrote:
>
> > please provide your full code.
>
> > you print out formatted oder discountAmount?
> > why you parse again the formatted string back to discountAmount?
>
> > On 17 Mrz., 15:18, "fatjack1...@googlemail.com"
>
> >  wrote:
> > > Hi,
>
> > > I am having some problems correctly displaying currency. Here is the
> > > code I am using:
>
> > > //Format the discount to two decimal places
> > > NumberFormat fmt = NumberFormat.getCurrencyFormat();
> > > String formatted = fmt.format(discountAmount);
> > > discountAmount = NumberFormat.getCurrencyFormat().parse(formatted);
>
> > > The discount amount field is set to some currency value for example
> > > 2.5. Now, it works fine if the value is set to 2 or more decimal
> > > places, so it would format 2.5 to 2.58. However, if the value is
> > > intitial set to say 3, it formats the value to 3.0!
>
> > > Now, as I am using this to display the price of something, £3.0 is not
> > > really much use. Can someone see where I am going wrong in my code or
> > > if I need to add something??
>
> > > Cheers,
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



What happened to the incubator YouTube widget?

2009-03-18 Thread Transplant

A few months back there was a youtube widget in the GWT incubator. It
seems to have vaporized. Does anyone know what happened to it or have
pointers to the code?

You can see a screen shot of the old widget here:
http://www.gwtnow.com/2008/09/04/gwt-incubator-whats-in-it/

I'd think that a youtube widget would be extremely popular and useful,
does anyone know why it was removed from the incubator?


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



Re: PDF version of the GWT Developer Guide -- any time soon?

2009-03-18 Thread El Mentecato Mayor

I seem to remember somebody from google mentioning in this forum about
the doc reader being added Gears support (for off-line access), but
couldn't find it... sure would be nice to have a PDF version as well
though.

On Mar 18, 10:19 am, Brian  wrote:
> Yeah it is too bad it's not accessible offline.  Just noticed it also
> doesn't work to view the pages to cache the app, going offline, and re-
> viewing -- guess it's trying to pull data off the server.  Think
> you're stuck until an offline version of some sort is provided...
>
> On Mar 18, 2:10 am, Peter Ondruška  wrote:
>
> > Nice, but not downloadable for offline access. Perhaps some Gears offline
> > functionality (pretty easy) needs to be added...
>
> > On Wed, Mar 18, 2009 at 1:55 AM, Brian  wrote:
>
> > > Moribund?  I loved their games, especially Raid On Bungling Bay... :)
>
> > > I don't know anything about a PDF version of the docs -- just pointing
> > > out that the GWT Developer Docs are themselves a GWT app, which is
> > > kind of nice to see.
>
> > > On Mar 17, 7:32 pm, jcox  wrote:
> > > > I'd love it if the GWT Developer Guide were also be available in PDF
> > > > format.
> > > > Here's why:
>
> > > >   o  It's a fairly long book-like document
> > > >   o  It changes fast enough to make 3rd party books perpetually
> > > > obsolete
> > > >   o  Being forced to read long paginated html docs is annoying
> > > >   o  It causes less eye strain to read long documents when they're
> > > > printed
>
> > > > I don't see much need to render the javadocs as pdf, just the
> > > > Developer Guide.
> > > > I filed this bug recently (see below), but then got depressed when I
> > > > noticed
> > > > all the moribund discussion threads on the same topic (see below).
>
> > > > Even if the current docs do have printer-friendly CSS, printing them
> > > > one
> > > > page at a time isn't a particularly attractive option.    At this
> > > > point, I'd even
> > > > settle for an ugly but readable "everything one page"  version
> > > > I just don't like reading this much book-like content off a screen.
>
> > > > Compounding matters is that if you *do* read the docs online, screen
> > > > width issues tend to arise once the fonts are made slightly bigger.
>
> > > > Are there plans to make an up-to-date PDF version?
> > > > If that's too hard, what about an easily-printable-all-on-one-html-
> > > > page version?
>
> > > > If either of these seem like they might happen sometime soon,
> > > > is there any idea when?    They'd be greatly appreciated !
>
> > > >           Cheers,
> > > >            -Jon
>
> > > > --
> > > > Related Links
> > > > ---
>
> > > > Issue tracker
> > > > -
> > > >    http://code.google.com/p/google-web-toolkit/issues/detail?id=3470
>
> > > > Moribund discussion threads
> > > > ---
>
> > > >http://groups.google.com/group/Google-Web-Toolkit/browse_frm/thread/d...
>
> > > >http://groups.google.com/group/Google-Web-Toolkit/browse_frm/thread/1...
>
> > > >http://groups.google.com/group/Google-Web-Toolkit/browse_frm/thread/5...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Returning Nested ArrayLists from RPC

2009-03-18 Thread erincarikan

Ok solved my own problem, with GWT 1.5, you don't need to use
annotations. I realized that annotations were creating the warnings.
Don't use annotations.

On Mar 17, 5:15 pm, erincarikan  wrote:
> Hi;
>
> Here's the situation:
>
> My Rpc prepares ArrayList.
>
> A implements Isserializable interface and it contains some fields and
> an arraylist field.
>
> B implements Isserializable interface and it contains some fields and
> an arraylist field.
>
> C implements Isserializable interface and has primitive type fields.
>
> When I create this arraylist and try to return it, I receive tons of
> warnings even though I think I get data back, I also use annotations
> to tell the compiler about the type.
>
> While declaring ArrayList, I use following annotation: /**
> @gwt.typeArgs  */, In class A, while /** @gwt.typeArgs  */ and
> in class B I use /** @gwt.typeArgs  */, but I receive
> typeInfo.classnotfound warnings.
>
> Do I have to use annotations differently, I am on the verge of losing
> my faith in arraylist and using regular nested arrays. Please help.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Servlet ClassNotFoundException

2009-03-18 Thread vinnybozz

Hi, I've been following the GWT Tutorial @ 
http://code.google.com/webtoolkit/tutorials/1.5/RPC.html

Using Eclipse, I created the project with all the necessary files.
I created the 2 packages as explained:
- StockWatcher.client
- StockWatcher.server

Now when I try to run this app in hosted mode, I get the follwoing
error:
java.lang.ClassNotFoundException:
StockWatcher.server.StockPriceServiceImpl

However, looking at my xml, I have:


The souce file for this class is located at:
src\StockWatcher\server\StockPriceServiceImpl.java

And if I look directly in the folder hierarchy I find the class at:
bin\StockWatcher\server\StockPriceServiceImpl.class

My run configuration has the following Classpath:
- GWT_1.5
- src - \StockWatcher\


In all likelyhood there is a problem with the ClassPath from what I
read ... but I can't seem to find it or make it work.

Thx for the help




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



GWT VISUALIZATION GEOMAP MARKER ERROR

2009-03-18 Thread bond

Hi,
I've a problem using google visualization. I've tried to make in GWT
the example show here 
http://code.google.com/intl/it-IT/apis/visualization/documentation/gallery/geomap.html
(section Markers Example).

When I'm trying to draw the markers on the map, the google widget
display this error message "Google Maps API not included.".

Instead, if you display only region there are no problems and them are
show.

Any ideas?

Thanks

Regard


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



Re: GWT1.4 source code

2009-03-18 Thread Brian

I don't think the 1.4 source is available as a downloadable link
anymore. But you can pull the source from subversion.

>From a command line:
svn checkout http://google-web-toolkit.googlecode.com/svn/releases/1.4
release_1.4

Or you can browse the source online:
http://code.google.com/p/google-web-toolkit/source/browse/#svn/releases/1.4


On Mar 18, 11:59 am, kandanur  wrote:
> Hi
> could you please share the link, where i can download the full source
> code of GWT V1.4?
>
> tia
> prabhu
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Announcing GWT 1.6 Release Candidate

2009-03-18 Thread Bruce Johnson
Good news! Google Web Toolkit 1.6 RC is ready for you to download and try
out:

http://code.google.com/p/google-web-toolkit/downloads/list?q=1.6.2

For background on what's new in GWT 1.6, please see the still-in-progress
doc:

http://code.google.com/docreader/?p=google-web-toolkit-doc-1-6&s=google-web-toolkit-doc-1-6&t=ReleaseNotes_1_6

as well as previous 1.6-related announcements:

"Announcing GWT 1.6 Milestone 1"
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/3e7e6cc3b35ad98a

and

"Announcing GWT 1.6 Milestone 2"
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/33df9cc75aead5a1

For complete details, the GWT issue tracker has the full list of changes:

http://code.google.com/p/google-web-toolkit/issues/list?can=2&q=milestone:1_6_RC%20status:FixedNotReleased,Fixed&sort=priority

We expect this to be a short RC cycle, so a more comprehensive blog post
with an overview of the features in GWT 1.6 should be just around the
corner.

-- Bruce, on behalf of the GWT team

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



Re: gwt-rpc + webservices hang glassfish 2.1

2009-03-18 Thread PeSc|O

http://code.google.com/webtoolkit/tutorials/1.5/RPC.html
claims
"The GWT RPC framework makes it easy for the client and server
components of your web application to exchange Java objects over HTTP.
The server-side code that gets invoked from the client is often
referred to as a service. The implementation of a GWT RPC service is
based on the well-known Java servlet architecture."

Being that that service is a servlet there's no reason why one
shouldn't use an access to a db, a call to a webservice or whatever
permitted by a servlet itself. I'm doing a browser -> (gwt) servlet ->
webservice.
I don't care about the rpc communication between the browser and the
server, the webservice can take much time to answer, and being the
call asynchronous it's all ok: when the method returns the callback on
javascript will be executed.



On Mar 18, 5:18 pm, tetsuo  wrote:
> you bedder consider the differences between a remote control and a
> webservice interface
>
> >http://en.wikipedia.org/wiki/Webservice
> >http://en.wikipedia.org/wiki/Remote_procedure_call
>
> the rpc is like the controller for your tv, the webservice is the like
> two tv´s communicating to each other. in your example you want to
> control your tv with a tv - that dosnt work.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT VISUALIZATION GEOMAP MARKER ERROR

2009-03-18 Thread Eric Ayers
Are you loading the Maps API?  This is the part that does that.  Add
it to your hosted HTML file.



As the page says, you'll need to replace the key ABCDEFG with your
maps API key.



On Wed, Mar 18, 2009 at 4:04 PM, bond  wrote:

>
> Hi,
> I've a problem using google visualization. I've tried to make in GWT
> the example show here
> http://code.google.com/intl/it-IT/apis/visualization/documentation/gallery/geomap.html
> (section Markers Example).
>
> When I'm trying to draw the markers on the map, the google widget
> display this error message "Google Maps API not included.".
>
> Instead, if you display only region there are no problems and them are
> show.
>
> Any ideas?
>
> Thanks
>
> Regard
>
>
> >
>


-- 
Eric Z. Ayers - GWT Team - Atlanta, GA USA
http://code.google.com/webtoolkit/

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



SerializationException when serialize a HashMap over RPC

2009-03-18 Thread Alejandro D. Garin
Hello,

I can't serialize a HashMap and I don't understand why. Could you help me
please?
If I remove the following hashMap the RPC work just fine:

private Map> mapData = new
HashMap>();

*Tomcat error log:*

com.google.gwt.user.client.rpc.SerializationException: Type
'com.tasktimer.web.gwt.domain.WeeklyAppointmentData' was not assignable to
'com.google.gwt.user.client.rpc.IsSerializable' and did not have a custom
field serializer.  For security purposes, this type will not be serialized.
at
com.google.gwt.user.server.rpc.impl.LegacySerializationPolicy.validateSerialize(LegacySerializationPolicy.java:140)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:591)
at
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:129)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter$ValueWriter$8.write(ServerSerializationStreamWriter.java:146)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:530)
at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:573)
at
com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess(RPC.java:441)
at
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:529)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:164)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:86)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)

*The demo clases:*

public class SimpleFacadeImpl extends RemoteServiceServlet implements
SimpleFacade {

  private static final long serialVersionUID = 1164908101444531503L;

  public SimpleFacadeImpl() {

  }
  @Override
  public WeeklyAppointmentData getWeeklyData() {
WeeklyAppointmentData data = new WeeklyAppointmentData();
DayHourCoordenate coordenate = new DayHourCoordenate(11,10);
data.add(coordenate, new Appointment());
return data;
  }
}

@RemoteServiceRelativePath("/simpleFacade.do")
public interface SimpleFacade extends RemoteService {

  public WeeklyAppointmentData getWeeklyData();
}

public class WeeklyAppointmentData implements Serializable {

  private static final long serialVersionUID = 4291039636290439374L;
  private Map> mapData = new
HashMap>();

  public WeeklyAppointmentData() {

  }
  public void add(DayHourCoordenate coordenate, Appointment appointment) {

List list = mapData.get(coordenate);
if( list == null) {
  list = new ArrayList();
  mapData.put(coordenate, list);
}
list.add(appointment);
  }
  public  List get(DayHourCoordenate coordenate) {
return mapData.get(coordenate);
  }
}

public class DayHourCoordenate implements Serializable {

  private static final long serialVersionUID = 217370389812685596L;
  private int day = 0;
  private int hour = 0;

  public DayHourCoordenate() {

  }
  public DayHourCoordenate(int day, int hour) {
this.day = day;
this.hour = hour;
  }
  public int getDay() {
return day;
  }
  public void setDay(int day) {
this.day = day;
  }
  public int getHour() {
return hour;
  }
  public void setHour(int hour) {
this.hour = hour;
  }
  @Override
  public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + day;
result = prime * result + hour;
return result;
  }
  @Override
  public boolean equals(Object obj) {
if (this == obj)
  return true;
if (obj == null)
  return false;
if (!(obj instanceof DayHourCoordenate))
  return false;
DayHourCoordenate other = (DayHourCoordenate) obj;
if (day != other.day)
  return false;
if (hour != other.hour)
  return false;
return true;
  }
}

--~--~-~--~-

Re: SerializationException when serialize a HashMap over RPC

2009-03-18 Thread Vitali Lovich
The error message tells you exactly the reason:  WeeklyAppointmentData is
not serializable.  Please refer to the serialization rules of GWT
(essentially, your classes have to extends IsSerializable, all non-static,
non-final, non-transient fields must be serializable & you must provide a
default constructor (any visibility, but it must be there).

Since you don't give the definitions for DayHourCoordenate & Appointment, I
can't give you the exact reason, but one of those classes is at fault.

On Wed, Mar 18, 2009 at 5:13 PM, Alejandro D. Garin wrote:

> Hello,
>
> I can't serialize a HashMap and I don't understand why. Could you help me
> please?
> If I remove the following hashMap the RPC work just fine:
>
> private Map> mapData = new
> HashMap>();
>
> *Tomcat error log:*
>
> com.google.gwt.user.client.rpc.SerializationException: Type
> 'com.tasktimer.web.gwt.domain.WeeklyAppointmentData' was not assignable to
> 'com.google.gwt.user.client.rpc.IsSerializable' and did not have a custom
> field serializer.  For security purposes, this type will not be serialized.
> at
> com.google.gwt.user.server.rpc.impl.LegacySerializationPolicy.validateSerialize(LegacySerializationPolicy.java:140)
> at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:591)
> at
> com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:129)
> at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter$ValueWriter$8.write(ServerSerializationStreamWriter.java:146)
> at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:530)
> at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:573)
> at
> com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess(RPC.java:441)
> at
> com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:529)
> at
> com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:164)
> at
> com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:86)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
> at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
> at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> at java.lang.Thread.run(Unknown Source)
>
> *The demo clases:*
>
> public class SimpleFacadeImpl extends RemoteServiceServlet implements
> SimpleFacade {
>
>   private static final long serialVersionUID = 1164908101444531503L;
>
>   public SimpleFacadeImpl() {
>
>   }
>   @Override
>   public WeeklyAppointmentData getWeeklyData() {
> WeeklyAppointmentData data = new WeeklyAppointmentData();
> DayHourCoordenate coordenate = new DayHourCoordenate(11,10);
> data.add(coordenate, new Appointment());
> return data;
>   }
> }
>
> @RemoteServiceRelativePath("/simpleFacade.do")
> public interface SimpleFacade extends RemoteService {
>
>   public WeeklyAppointmentData getWeeklyData();
> }
>
> public class WeeklyAppointmentData implements Serializable {
>
>   private static final long serialVersionUID = 4291039636290439374L;
>   private Map> mapData = new
> HashMap>();
>
>   public WeeklyAppointmentData() {
>
>   }
>   public void add(DayHourCoordenate coordenate, Appointment appointment) {
>
> List list = mapData.get(coordenate);
> if( list == null) {
>   list = new ArrayList();
>   mapData.put(coordenate, list);
> }
> list.add(appointment);
>   }
>   public  List get(DayHourCoordenate coordenate) {
> return mapData.get(coordenate);
>   }
> }
>
> public class DayHourCoordenate implements Serializable {
>
>   private static final long serialVersionUID = 217370389812685596L;
>   private int day = 0;
>   private int hour = 0;
>
>   public DayHourCoordenate() {
>
>   }
>   public DayHourCoordenate(int day, int hour) {
> this.day = day;
> this.hour = hour;

Re: SerializationException when serialize a HashMap over RPC

2009-03-18 Thread Alejandro D. Garin
Hi Vitali,

The definitions for DayHourCoordenate is below in my original post and
Appointment is serializable because I make a lot of anothers RPC using
List without problems.


On Wed, Mar 18, 2009 at 6:19 PM, Vitali Lovich  wrote:

> The error message tells you exactly the reason:  WeeklyAppointmentData is
> not serializable.  Please refer to the serialization rules of GWT
> (essentially, your classes have to extends IsSerializable, all non-static,
> non-final, non-transient fields must be serializable & you must provide a
> default constructor (any visibility, but it must be there).
>
> Since you don't give the definitions for DayHourCoordenate & Appointment, I
> can't give you the exact reason, but one of those classes is at fault.
>
>
> On Wed, Mar 18, 2009 at 5:13 PM, Alejandro D. Garin wrote:
>
>> Hello,
>>
>> I can't serialize a HashMap and I don't understand why. Could you help me
>> please?
>> If I remove the following hashMap the RPC work just fine:
>>
>> private Map> mapData = new
>> HashMap>();
>>
>> *Tomcat error log:*
>>
>> com.google.gwt.user.client.rpc.SerializationException: Type
>> 'com.tasktimer.web.gwt.domain.WeeklyAppointmentData' was not assignable to
>> 'com.google.gwt.user.client.rpc.IsSerializable' and did not have a custom
>> field serializer.  For security purposes, this type will not be serialized.
>> at
>> com.google.gwt.user.server.rpc.impl.LegacySerializationPolicy.validateSerialize(LegacySerializationPolicy.java:140)
>> at
>> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:591)
>> at
>> com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:129)
>> at
>> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter$ValueWriter$8.write(ServerSerializationStreamWriter.java:146)
>> at
>> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:530)
>> at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:573)
>> at
>> com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess(RPC.java:441)
>> at
>> com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:529)
>> at
>> com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:164)
>> at
>> com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:86)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>> at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>> at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
>> at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>> at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>> at
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>> at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
>> at
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
>> at
>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
>> at
>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
>> at java.lang.Thread.run(Unknown Source)
>>
>> *The demo clases:*
>>
>> public class SimpleFacadeImpl extends RemoteServiceServlet implements
>> SimpleFacade {
>>
>>   private static final long serialVersionUID = 1164908101444531503L;
>>
>>   public SimpleFacadeImpl() {
>>
>>   }
>>   @Override
>>   public WeeklyAppointmentData getWeeklyData() {
>> WeeklyAppointmentData data = new WeeklyAppointmentData();
>> DayHourCoordenate coordenate = new DayHourCoordenate(11,10);
>> data.add(coordenate, new Appointment());
>> return data;
>>   }
>> }
>>
>> @RemoteServiceRelativePath("/simpleFacade.do")
>> public interface SimpleFacade extends RemoteService {
>>
>>   public WeeklyAppointmentData getWeeklyData();
>> }
>>
>> public class WeeklyAppointmentData implements Serializable {
>>
>>   private static final long serialVersionUID = 4291039636290439374L;
>>   private Map> mapData = new
>> HashMap>();
>>
>>   public WeeklyAppointmentData() {
>>
>>   }
>>   public void add(DayHourCoordenate coordenate, Appointment appointment) {
>>
>> List list = mapData.get(coordenate);
>> if( list == null) {
>>   list = new ArrayList();
>>   mapData.put(coordenate, list);
>> }
>> list.add(appointment);
>>   }
>>   public  List get(DayHourCoordenate coordenate) {
>> ret

Re: SerializationException when serialize a HashMap over RPC

2009-03-18 Thread George Holler


The class WeeklyAppointmentData does not appear to implement IsSerializable. 
That's in the first line of the error stack trace.

G

--- On Wed, 3/18/09, Alejandro D. Garin  wrote:

> From: Alejandro D. Garin 
> Subject: SerializationException when serialize a HashMap over RPC
> To: Google-Web-Toolkit@googlegroups.com
> Date: Wednesday, March 18, 2009, 5:13 PM
> Hello,
> 
> I can't serialize a HashMap and I don't understand
> why. Could you help me
> please?
> If I remove the following hashMap the RPC work just fine:
> 
> private
> Map> mapData
> = new
> HashMap>();
> 
> *Tomcat error log:*
> 
> com.google.gwt.user.client.rpc.SerializationException: Type
> 'com.tasktimer.web.gwt.domain.WeeklyAppointmentData'
> was not assignable to
> 'com.google.gwt.user.client.rpc.IsSerializable' and
> did not have a custom
> field serializer.  For security purposes, this type will
> not be serialized.
> at
> com.google.gwt.user.server.rpc.impl.LegacySerializationPolicy.validateSerialize(LegacySerializationPolicy.java:140)
> at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:591)
> at
> com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:129)
> at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter$ValueWriter$8.write(ServerSerializationStreamWriter.java:146)
> at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:530)
> at
> com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:573)
> at
> com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess(RPC.java:441)
> at
> com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:529)
> at
> com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:164)
> at
> com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:86)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
> at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
> at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> at java.lang.Thread.run(Unknown Source)
> 
> *The demo clases:*
> 
> public class SimpleFacadeImpl extends RemoteServiceServlet
> implements
> SimpleFacade {
> 
>   private static final long serialVersionUID =
> 1164908101444531503L;
> 
>   public SimpleFacadeImpl() {
> 
>   }
>   @Override
>   public WeeklyAppointmentData getWeeklyData() {
> WeeklyAppointmentData data = new
> WeeklyAppointmentData();
> DayHourCoordenate coordenate = new
> DayHourCoordenate(11,10);
> data.add(coordenate, new Appointment());
> return data;
>   }
> }
> 
> @RemoteServiceRelativePath("/simpleFacade.do")
> public interface SimpleFacade extends RemoteService {
> 
>   public WeeklyAppointmentData getWeeklyData();
> }
> 
> public class WeeklyAppointmentData implements Serializable
> {
> 
>   private static final long serialVersionUID =
> 4291039636290439374L;
>   private
> Map> mapData
> = new
> HashMap>();
> 
>   public WeeklyAppointmentData() {
> 
>   }
>   public void add(DayHourCoordenate coordenate, Appointment
> appointment) {
> 
> List list = mapData.get(coordenate);
> if( list == null) {
>   list = new ArrayList();
>   mapData.put(coordenate, list);
> }
> list.add(appointment);
>   }
>   public  List get(DayHourCoordenate
> coordenate) {
> return mapData.get(coordenate);
>   }
> }
> 
> public class DayHourCoordenate implements Serializable {
> 
>   private static final long serialVersionUID =
> 217370389812685596L;
>   private int day = 0;
>   private int hour = 0;
> 
>   public DayHourCoordenate() {
> 
>   }
>   public DayHourCoordenate(int day, int hour) {
> this.day = day;
> this.hour = hour;
>   }
>   public int getDay() {
> return day;
>   }
>   public void setDay(int day) {
> this.day = day;
>   }
>   public int

Re: SerializationException when serialize a HashMap over RPC

2009-03-18 Thread Vitali Lovich
That depends on the version of GWT he's using.  As of 1.5 (or 1.4 - can't
recall the exact version), Serializable is a synonym for IsSerializable

On Wed, Mar 18, 2009 at 5:15 PM, George Holler wrote:

>
>
> The class WeeklyAppointmentData does not appear to implement
> IsSerializable. That's in the first line of the error stack trace.
>
> G
>
> --- On Wed, 3/18/09, Alejandro D. Garin  wrote:
>
> > From: Alejandro D. Garin 
> > Subject: SerializationException when serialize a HashMap over RPC
> > To: Google-Web-Toolkit@googlegroups.com
> > Date: Wednesday, March 18, 2009, 5:13 PM
> > Hello,
> >
> > I can't serialize a HashMap and I don't understand
> > why. Could you help me
> > please?
> > If I remove the following hashMap the RPC work just fine:
> >
> > private
> > Map> mapData
> > = new
> > HashMap>();
> >
> > *Tomcat error log:*
> >
> > com.google.gwt.user.client.rpc.SerializationException: Type
> > 'com.tasktimer.web.gwt.domain.WeeklyAppointmentData'
> > was not assignable to
> > 'com.google.gwt.user.client.rpc.IsSerializable' and
> > did not have a custom
> > field serializer.  For security purposes, this type will
> > not be serialized.
> > at
> >
> com.google.gwt.user.server.rpc.impl.LegacySerializationPolicy.validateSerialize(LegacySerializationPolicy.java:140)
> > at
> >
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:591)
> > at
> >
> com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:129)
> > at
> >
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter$ValueWriter$8.write(ServerSerializationStreamWriter.java:146)
> > at
> >
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:530)
> > at
> > com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:573)
> > at
> > com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess(RPC.java:441)
> > at
> > com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:529)
> > at
> >
> com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:164)
> > at
> >
> com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:86)
> > at
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
> > at
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> > at
> >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> > at
> >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> > at
> >
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> > at
> >
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
> > at
> >
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
> > at
> >
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> > at
> >
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> > at
> >
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
> > at
> >
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
> > at
> >
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
> > at
> > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> > at java.lang.Thread.run(Unknown Source)
> >
> > *The demo clases:*
> >
> > public class SimpleFacadeImpl extends RemoteServiceServlet
> > implements
> > SimpleFacade {
> >
> >   private static final long serialVersionUID =
> > 1164908101444531503L;
> >
> >   public SimpleFacadeImpl() {
> >
> >   }
> >   @Override
> >   public WeeklyAppointmentData getWeeklyData() {
> > WeeklyAppointmentData data = new
> > WeeklyAppointmentData();
> > DayHourCoordenate coordenate = new
> > DayHourCoordenate(11,10);
> > data.add(coordenate, new Appointment());
> > return data;
> >   }
> > }
> >
> > @RemoteServiceRelativePath("/simpleFacade.do")
> > public interface SimpleFacade extends RemoteService {
> >
> >   public WeeklyAppointmentData getWeeklyData();
> > }
> >
> > public class WeeklyAppointmentData implements Serializable
> > {
> >
> >   private static final long serialVersionUID =
> > 4291039636290439374L;
> >   private
> > Map> mapData
> > = new
> > HashMap>();
> >
> >   public WeeklyAppointmentData() {
> >
> >   }
> >   public void add(DayHourCoordenate coordenate, Appointment
> > appointment) {
> >
> > List list = mapData.get(coordenate);
> > if( list == null) {
> >   list = new ArrayList();
> >   mapData.put(coordenate, list);
> > }
> > list.add(appointment);
> >   }
> >   public  List get(DayHourCoordenate
> > coordenate) {
> > return mapData.

Re: SerializationException when serialize a HashMap over RPC

2009-03-18 Thread Vitali Lovich
I think I see it.  List is not generally serializable.  The recommendation I
recall reading somewhere is to try to use super-classes as infrequently as
possible because it makes the compiler's job more difficult - also, in this
particular case, the GWT compiler is unable to determine the type to
serialize to.

Try:

private Map> mapData = new
HashMap>();

or even more preferable, change mapData to a HashMap as well.


On Wed, Mar 18, 2009 at 6:05 PM, Vitali Lovich  wrote:

> That depends on the version of GWT he's using.  As of 1.5 (or 1.4 - can't
> recall the exact version), Serializable is a synonym for IsSerializable
>
>
> On Wed, Mar 18, 2009 at 5:15 PM, George Holler wrote:
>
>>
>>
>> The class WeeklyAppointmentData does not appear to implement
>> IsSerializable. That's in the first line of the error stack trace.
>>
>> G
>>
>> --- On Wed, 3/18/09, Alejandro D. Garin  wrote:
>>
>> > From: Alejandro D. Garin 
>> > Subject: SerializationException when serialize a HashMap over RPC
>> > To: Google-Web-Toolkit@googlegroups.com
>> > Date: Wednesday, March 18, 2009, 5:13 PM
>> > Hello,
>> >
>> > I can't serialize a HashMap and I don't understand
>> > why. Could you help me
>> > please?
>> > If I remove the following hashMap the RPC work just fine:
>> >
>> > private
>> > Map> mapData
>> > = new
>> > HashMap>();
>> >
>> > *Tomcat error log:*
>> >
>> > com.google.gwt.user.client.rpc.SerializationException: Type
>> > 'com.tasktimer.web.gwt.domain.WeeklyAppointmentData'
>> > was not assignable to
>> > 'com.google.gwt.user.client.rpc.IsSerializable' and
>> > did not have a custom
>> > field serializer.  For security purposes, this type will
>> > not be serialized.
>> > at
>> >
>> com.google.gwt.user.server.rpc.impl.LegacySerializationPolicy.validateSerialize(LegacySerializationPolicy.java:140)
>> > at
>> >
>> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:591)
>> > at
>> >
>> com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:129)
>> > at
>> >
>> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter$ValueWriter$8.write(ServerSerializationStreamWriter.java:146)
>> > at
>> >
>> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:530)
>> > at
>> > com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:573)
>> > at
>> >
>> com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess(RPC.java:441)
>> > at
>> > com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:529)
>> > at
>> >
>> com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:164)
>> > at
>> >
>> com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:86)
>> > at
>> > javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
>> > at
>> > javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>> > at
>> >
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>> > at
>> >
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>> > at
>> >
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>> > at
>> >
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
>> > at
>> >
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>> > at
>> >
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>> > at
>> >
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>> > at
>> >
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
>> > at
>> >
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
>> > at
>> >
>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
>> > at
>> > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
>> > at java.lang.Thread.run(Unknown Source)
>> >
>> > *The demo clases:*
>> >
>> > public class SimpleFacadeImpl extends RemoteServiceServlet
>> > implements
>> > SimpleFacade {
>> >
>> >   private static final long serialVersionUID =
>> > 1164908101444531503L;
>> >
>> >   public SimpleFacadeImpl() {
>> >
>> >   }
>> >   @Override
>> >   public WeeklyAppointmentData getWeeklyData() {
>> > WeeklyAppointmentData data = new
>> > WeeklyAppointmentData();
>> > DayHourCoordenate coordenate = new
>> > DayHourCoordenate(11,10);
>> > data.add(coordenate, new Appointment());
>> > return data;
>> >   }
>> > }
>> >
>> > @RemoteServiceRelativePath("/simpleFacade.do")
>> > public interface SimpleFacade extends RemoteService {
>> >
>> >   public WeeklyAppointmentData getWeeklyData();
>> > }
>> >
>> > publ

Re: How to determine if popup panel is visible or shown?

2009-03-18 Thread Ziyod

There's an existing bug:


On Mar 18, 9:12 am, rjcarr  wrote:
> It seems as soon as I create a popup panel (PopupPanel) and call the
> isVisible() method it will return true, even before I add a widget to
> it and before I call show().
>
> I can accept that it behaves differently from other widgets, but how
> then do I determine whether or not popup is visible (shown)?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



JsArray.length giving error: HostedModeException: Expected primitive type int; actual value was undefined

2009-03-18 Thread Farrukh Najmi
I have the following code that processes a JavaScriptObject that is expected
to be a JsArray:

JavaScriptObject jso = ...
JsArray jsa = jso.cast();
int cnt = jsa.length();

I am finding that if the JsArray has a single element then jsa.length()
results in following exception.
All is well if there are 2 or more elements:

com.google.gwt.dev.shell.HostedModeException: Expected primitive type int;
actual value was undefined
at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:51)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeInt(ModuleSpace.java:206)
at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeInt(JavaScriptHost.java:75)
at com.google.gwt.core.client.JsArray$.length$(JsArray.java)
at
com.wellfleetsoftware.gis.gui.gwt.client.editor.PartyEditor.getAttributeAsListGridRecords(PartyEditor.java:108)
at
com.wellfleetsoftware.gis.gui.gwt.client.editor.PartyEditor.fetchRelatedData(PartyEditor.java:93)
at
com.wellfleetsoftware.gis.gui.gwt.client.editor.RegistryObjectEditor$1.execute(RegistryObjectEditor.java:77)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
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.moz.MethodDispatch.invoke(MethodDispatch.java:80)
at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native
Method)
at
org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:1428)
at
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2840)
at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:720)
at com.google.gwt.dev.GWTShell.run(GWTShell.java:593)
at com.google.gwt.dev.GWTShell.main(GWTShell.java:357)

Is this a known issue or am I doing something wrong?

An example JSON fragment for the 1 element JsArray is:

"Email" : [ { "id" : 245081,
  "address" : "farr...@work.com",
  "type" : "OfficeEmail"
} ],

Thanks for any help on this issue.

-- 
Regards,
Farrukh

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



Re: What happened to the incubator YouTube widget?

2009-03-18 Thread Transplant

Ok I found the YouTubeViewer in the incubator, its just not listed in
the widget documentation. It is in the incubator jar, and the API
docs, there's just aren't any other docs or demos for it. It works
well though - very cool.


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



IE7 clipping GWT content

2009-03-18 Thread burton miller

I have a situation where my GWT app is embedded in divs in a web page,
and I'm experiencing bizarre clipping behavior in IE7.

In IE7, when the browser is resized HORIZONTALLY smaller than the
region containing GWT widgets, then the GWT parts of the display are
clipped to the size of the window.  The regular html parts of the page
display normally.

This is apparent only when you scroll to the right.  If you resize the
window in this situation, the clipped area expands to the right in
real time.

This does not happen on other browsers, and no combination of html
doctype or quirks mode seems to help.  And I have replicated this on
several machines, so it is a consistent behavior.

This is a massive GWT app that is already in production - so any help
is welcome!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Using existing java API

2009-03-18 Thread akros

Hi!
I'm a newbie with Gwt and i've a problem: i have to import in my
application some Java API that arent emulated by Gwt. I've read on the
docs that i can add this line:   to my
project module so i've done it also importing the java classes i need
in com/JOrariGwt/jre ( the module is in com/JOrariGwt/) .
Unfortunately when i try to run the project from eclipse i have this
error:

[TRACE] Finding entry point classes
   [ERROR] Unable to find type 'com.jorarigwt.client.JOrariGwt'
  [ERROR] Hint: Previous compiler errors may have made this
type unavailable
  [ERROR] Hint: Check the inheritance chain from your module;
it may not be inheriting a required module or a module may not be
adding its source path entries properly
[ERROR] Failure to load module 'com.jorarigwt.JOrariGwt'

the entry point is well setted cause without the classes that need the
external Java API the project run without errors.
What can i do?
thank you so much for your attention

Marco

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



Re: Using existing java API

2009-03-18 Thread Ian Bambury
There's nothing you can do.
GWT *emulates* Java, but only part of it. If it doesn't emulate some part of
it, you can't use it. Not on the client. You can use what you like on the
server.

Ian

http://examples.roughian.com


2009/3/19 akros 

>
> Hi!
> I'm a newbie with Gwt and i've a problem: i have to import in my
> application some Java API that arent emulated by Gwt. I've read on the
> docs that i can add this line:   to my
> project module so i've done it also importing the java classes i need
> in com/JOrariGwt/jre ( the module is in com/JOrariGwt/) .
> Unfortunately when i try to run the project from eclipse i have this
> error:
>
> [TRACE] Finding entry point classes
>   [ERROR] Unable to find type 'com.jorarigwt.client.JOrariGwt'
>  [ERROR] Hint: Previous compiler errors may have made this
> type unavailable
>  [ERROR] Hint: Check the inheritance chain from your module;
> it may not be inheriting a required module or a module may not be
> adding its source path entries properly
> [ERROR] Failure to load module 'com.jorarigwt.JOrariGwt'
>
> the entry point is well setted cause without the classes that need the
> external Java API the project run without errors.
> What can i do?
> thank you so much for your attention
>
> Marco
>
> >
>

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



question about selected item in FastTree

2009-03-18 Thread newbie

Hi,

By default, when user selects an item in the FastTree, the 'open/
close' symbol is not highlighted (only things on the right hand side
of the symbol gets highlighted instead).

I wonder if anyone know of a way to highlight the whole 'row' of the
selected item including the 'close/open' symbol.

Thank you in advance,

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



Invoke GWT entry point via custom JavaScript?

2009-03-18 Thread markmac

Hi All,

I am currently trying to integrate GWT into my existing application,
but Im having trouble doing that at the moment.

Currently I have heaps of custom JavaScript that I will eventually
migrate to GWT, but for now, I need to figure out how to add some
custom GWT widgets into my page, but not on page load (as heaps of
stuff is not yet loaded by the user, etc...) but rather on the
response callback from an existing AJAX call, can this be done?

Im imagining that I could call some externally exposed method that
resided within the *.nocache.js file? But Im not sure how that all
works, etc... If anyone has any resources that I could read up on or
experience in this area, that would be great!

Cheers,
Mark

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



RequestBuilder

2009-03-18 Thread maple...@gmail.com

How do I wait for the response is completed in another class?
For example, I have a class called GetData

public class GetData{
private String query;
private String DEFAULT_URL = "http://localhost/book.php";;
String result = new String();

public GetData(String query) {
this.query = query;
this.search();
}

private void search() {
String url = URL.encode(DEFAULT_URL + "?query=" + this.query);
RequestBuilder builder = new RequestBuilder(RequestBuilder.GET,
url);
builder.setCallback(new RequestCallback() {
public void onError(Request request, Throwable 
exception) {
}
public void onResponseReceived(Request request, 
Response response)
{
if (Response.SC_OK == response.getStatusCode()) 
{
result = response.getText();
}
}
});

try {
builder.send();
} catch (RequestException e) {
}
}

public String getResult(){
return this.result;
}
}

So, when I call

GetData test = new GetData(query);
System.out.println(test.getResult());

will return nothing. But I'm sure that it will return something.
The problem is System.out.println(test.getResult()); is executed
before the result=response.getText();
How can I fix that?

John

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



Re: RequestBuilder

2009-03-18 Thread Vitali Lovich
Put the println in your async callback (or in a function called from your
async callback).

On Wed, Mar 18, 2009 at 11:31 PM, maple...@gmail.com wrote:

>
> How do I wait for the response is completed in another class?
> For example, I have a class called GetData
>
> public class GetData{
>private String query;
>private String DEFAULT_URL = "http://localhost/book.php";;
>String result = new String();
>
>public GetData(String query) {
>this.query = query;
>this.search();
>}
>
>private void search() {
>String url = URL.encode(DEFAULT_URL + "?query=" +
> this.query);
>RequestBuilder builder = new
> RequestBuilder(RequestBuilder.GET,
> url);
>builder.setCallback(new RequestCallback() {
>public void onError(Request request, Throwable
> exception) {
>}
>public void onResponseReceived(Request request,
> Response response)
> {
>if (Response.SC_OK ==
> response.getStatusCode()) {
>result = response.getText();
>}
>}
>});
>
>try {
>builder.send();
>} catch (RequestException e) {
>}
>}
>
>public String getResult(){
>return this.result;
>}
> }
>
> So, when I call
>
> GetData test = new GetData(query);
> System.out.println(test.getResult());
>
> will return nothing. But I'm sure that it will return something.
> The problem is System.out.println(test.getResult()); is executed
> before the result=response.getText();
> How can I fix that?
>
> John
>
> >
>

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



Re: RequestBuilder

2009-03-18 Thread maple...@gmail.com

println has to be in another java file, so i cant put it in
GetData.java
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: RequestBuilder

2009-03-18 Thread Ian Bambury
You can't send a request to a server in one line and expect it to have
completed before you get to the second line.

This will NEVER happen because JS is single-threaded and even if the request
HAS returned, the callback will be queued to run later.

If you order something from an internet web site, it won't be there
immediately after you order it. You have to wait for it to be sent.

The 'A' in Ajax is for 'asynchronous'.

If you want to do something with the data you requested, you have to do it
in the callback, or it won't be there.

If you have a button which refreshes a table, get the button to make the
request, and pass the table to the callback. Get the callback to update the
table.

Ian

http://examples.roughian.com


2009/3/19 maple...@gmail.com 

>
> println has to be in another java file, so i cant put it in
> GetData.java
> >
>

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



Re: RequestBuilder

2009-03-18 Thread maple...@gmail.com

is there a way to force callback to be excuted before next line?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: RequestBuilder

2009-03-18 Thread Ian Bambury
No.
If you did that, the whole browser would lock up until the call returned.

You *could* run a timer and keep checking if the call had returned, but
there is no point since when the call has returned, the callback function
can do the work.

You need to move any logic that needs the requested data to the callback (or
have the callback make some method call on the object that needs the data).

If you don't want to do that, you shouldn't really be using Ajax. That is
what Ajax does.

If you want to be a bit more specific as to your needs, or can come up with
an example which mirrors what you are doing, you'll probably get more
specific help.

If you need to stop user input while the call is made, then the usual way is
to put up a 'loading...' message, either over the whole screen, or just in
the widget which is waiting.

Ian

http://examples.roughian.com


2009/3/19 maple...@gmail.com 

>
> is there a way to force callback to be excuted before next line?
> >
>

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



Re: RequestBuilder

2009-03-18 Thread Ian Bambury
If you go here http://examples.roughian.com/#Panels~Summary and click down
the menu on the LH side, you'll see 'Contacting Server' for a moment or two
- that kind of thing

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



Re: RequestBuilder

2009-03-18 Thread Ian Bambury
The second time you click a menu item, you won't see the message because the
loading only happens once for these pages

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



Re: RequestBuilder

2009-03-18 Thread Ian Petersen

On Wed, Mar 18, 2009 at 9:38 PM, maple...@gmail.com  wrote:
> is there a way to force callback to be excuted before next line?

Nope.  See here:
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/faca1575f306ba0f/3be719c021aa19bd

One option is to define a new callback interface and pass an instance
to GetData.  That way you can define the instance in the "other file"
and still be a good browser citizen.

For example:

public interface SearchResultListener {

  void onNewSearchResult(String result);
}

public class GetData {

  public void search(String query, final SearchResultListener listener) {
String url = URL.encode(DEFAULT_URL + "?query=" + query);
RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, url);

builder.setCallback(new RequestCallback() {
  public void onError(Request request, Throwable exception) {
// handle problems here
  }

  public void onResponseReceived(Request request, Response response) {
if (Response.SC_OK == response.getStatusCode()) {
  listener.onNewSearchResult(response.getText());
}
else {
  // handle problems here
}
  }
});

try {
  builder.send();
}
catch (RequestException e) {
  // handle problems here
}
  }
}

Then, if you have an instance of GetData, you can do this:

aGetData.search("query", new SearchResultListener() {

  public void onNewSearchResult(String result) {
System.out.println(result);
  }
});

Ian

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



Re: Clone() in GWT

2009-03-18 Thread Shajee Lawrence

clone is not supported as it returns an Object.

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



Gwt code where locales can be changed be dynamically

2009-03-18 Thread deeps

Hi, I am trying to design a code where locales can be changed both
dynamically n statically within a calendar widget like datepicker. I
would be  grateful if any of u helped me in this. Thank u.

Regards
Deepthi

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



Re: RequestBuilder

2009-03-18 Thread maple...@gmail.com

Ty sooo much, got it now

On 3月18日, 下午11时01分, Ian Petersen  wrote:
> On Wed, Mar 18, 2009 at 9:38 PM, maple...@gmail.com  
> wrote:
> > is there a way to force callback to be excuted before next line?
>
> Nope.  See 
> here:http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...
>
> One option is to define a new callback interface and pass an instance
> to GetData.  That way you can define the instance in the "other file"
> and still be a good browser citizen.
>
> For example:
>
> public interface SearchResultListener {
>
>   void onNewSearchResult(String result);
>
> }
>
> public class GetData {
>
>   public void search(String query, final SearchResultListener listener) {
> String url = URL.encode(DEFAULT_URL + "?query=" + query);
> RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, url);
>
> builder.setCallback(new RequestCallback() {
>   public void onError(Request request, Throwable exception) {
> // handle problems here
>   }
>
>   public void onResponseReceived(Request request, Response response) {
> if (Response.SC_OK == response.getStatusCode()) {
>   listener.onNewSearchResult(response.getText());
> }
> else {
>   // handle problems here
> }
>   }
> });
>
> try {
>   builder.send();
> }
> catch (RequestException e) {
>   // handle problems here
> }
>   }
>
> }
>
> Then, if you have an instance of GetData, you can do this:
>
> aGetData.search("query", new SearchResultListener() {
>
>   public void onNewSearchResult(String result) {
> System.out.println(result);
>   }
>
> });
>
> Ian
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Setting background image for ListBox Item

2009-03-18 Thread priya

Hello group,

I want to set background image for ListBox Item in my GWT application.

I am using following code for this:

for (int i = 0; i < listBox.getItemCount(); i++) {
   DOM.getChild(listBox.getElement(), i).setClassName
("list_box_style");
}

CSS for this:

.list_box_stye{
background-image: url("../images/pkg_image2.bmp");
background-position: right;
background-repeat: no-repeat;
}

It is working in FireFox but not working in IE or Safari..

Is there any other way for this to work it in Safari and IE?

Priya

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