Re: GWT 2.0 and Eclipse, Project redeployment

2010-02-19 Thread Paul S
Rajeev, please elaborate on this. I thought is was just part of the
fact that we had to restart the server if functionality there changed.
Would be very nice if server code could be hot swapped. Naturally I
would think that changes to web.xml and so on would require a server
restart, but that's to be expected. So you are saying that normal Java
code in the server side servlets can be changed? Please give a bit
more instruction on how to do this (I'm using GWT 2 in Eclipse).

Thanks
Paul

On Feb 18, 7:27 pm, Rajeev Dayal  wrote:
> How are you restarting the server? Are you using the "Restart Server" option
> in the Development Mode view?
>
> Also, if you are running your launch configuration using "Debug" (not Run),
> and you've set Eclipse to "Build Automatically", then server-side changes
> should be hotswapped in most cases.
>
>
>
> On Thu, Feb 18, 2010 at 10:44 AM, paata  wrote:
> > Hi all,
> > I'm newbie on gwt.
> > I've eclipse gwt project with smartgwt.
>
> > When i make changes on client side code, changes appeard after saving,
> > but when i make changes on server side (change  anything into servlet
> > method ) it is required to restart server.
> > I need redeployment not server restart
> > Restart needs long time, approximately 3-4 minute.
> >  any idea?
>
> > regards
> > paata
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: Help Needed : GWT Developer Plugin is not working with Mozilla Firefox

2010-02-19 Thread Tapas Adhikary
Thanks for the link , Lukas. I have got a work around for it. I suspect there
is a bug in GWT if the main page you are calling does not have GWT, the dev
mode does not work. My Login page is a pure jsp and I call GWT code after a
successful login. So once I am done with the login , I have copied the link
again to the clipboard and pasted on the browser. Everything worked well.
Now I am able to hit the debug point and my pages are also getting refreshed
on change.

Thanks for the help

On Fri, Feb 19, 2010 at 4:10 AM, Lukas Laag  wrote:

> You might want to read this:
>
> https://groups.google.com/group/google-web-toolkit/browse_thread/thread/edfe66f6a39527d1
> I think it is the same issue
>
> On Feb 18, 5:22 pm, Tapas Adhikary  wrote:
> > Any update on this ? One more info , My project was created using GWT 1.5
> > application creator and recently upgraded to the GWT 2.0.2 jars. Please
> > help.
> >
> > Thanks,
> > -Tapas
> >
> > On Wed, Feb 17, 2010 at 6:28 PM, Tapas Adhikary 
> wrote:
> > > Greetings,
> >
> > > I am using GWT 2.0.2 for my application. I have created my project
> > > using webAppCreator. I am not using the Eclipse plug-in for GWT. I am
> > > able to launch my application successfully in development mode from an
> > > external browser but not able to debug the GWT code in development
> > > mode. Not only that , If I do some changes in the GWT code and refresh
> > > the browser , the changes are not reflecting. If compile the changed
> > > code explicitly and re-launched the app , I am able to see the
> > > changes.
> >
> > > I have installed the  GWT Developer plug-in from
> > >http://gwt.google.com/missing-plugin/MissingPlugin.html
> > > but still it is not working in the way it is expected.
> >
> > > Am I missing anything anywhere? As my project code base is big , it is
> > > difficult to compile the whole code for a small code change.
> >
> > > Just for additional information , I am using the dev plug-in for
> > > Mozilla firefox on OpenSuse 11.2 OS.
> >
> > > Thanks in advance ,
> > > -Tapas Adhikary.
> >
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: Parameter 0 of is of an unknown type 'java.lang.String/2004016611'

2010-02-19 Thread Flemming Boller
I had the same error , but it was because I had a mix of GWT 2 and GWT 1.7
jarfiles on my running classpath. (also using Intellij)


Br
Flemming

On Thu, Feb 18, 2010 at 11:47 PM, gazarcher  wrote:

> Up until this week I was using IntelliJ IDEA 9.0 with GWT 1.7.1 on Mac
> OS X 10.5 and decided to upgrade to GWT 2.0.2 per the instructions on
> the GWT Website, including installing the GWT plugin into Firefox.
>
> After recompiling and running my application with several GWT modules
> and running in Firefox 3.5.7, Firefox 3.6 and Safari 4.0.3, the GWT
> modules all give the same error:
>
>Parameter 0 of is of an unknown type 'java.lang.String/2004016611'
>
> but even before that GWT spewed "ERROR: Failed to parse the policy
> file " for each module.
>
> I've cleaned out output folders/directories in IntelliJ, deleted
> caches for IntelliJ and Firefox, and tried again, but with the same
> result.  Nothing has changed in my code.
>
> I cleared out output folders/directories in IntelliJ, deleted caches
> for IntelliJ and Firefox again and uninstalled GWT 2.0.2 from my
> IntelliJ project, reinstalled GWT 1.7.1, compiled and every thing ran
> fine again.
>
> I've looked around the discussion groups and other people appear to be
> having the same problem with GWT 2.0.x.. so even though GWT 2.0 has
> gone through beta, early access, etc., and has now gone up two more
> versions, this is still an issue, and not just for me.  I understand
> the GWT version 1.0.7511 plugin for Firefox also has an issue for some
> folks.  I don't know if it is this causing the problem.
>
> Is anybody actually working with GWT 2.0 in their projects?  If so, is
> there a workaround for this issue if they hit the same problem?
>
> Is anyone on the GWT team aware of this issue and working on it?
>
> At the moment, GWT 2.0.x is unusable for me and trying to use it is
> holding up my work.  I'm going back to GWT 1.7.1 until I find a
> solution (or you do!).
>
> Any help on this matter is *greatly* appreciated.
>
> Cheers,
> - Garry
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



gwt + struts2 server-side validation

2010-02-19 Thread loucat
Hi!

is there anyone who ever tried to do some validation integrating
struts2 and gwt?
I've installed the gwtstrut2 plugin, but actually I'm still not using
anything of struts2.
I should do server side validation (of my form's fields) but I don't
know how to do it as I don't use struts2 tag libraries and I don't
know if it's possibile to associate my widgets to struts2 and make the
validation using an xml file validator...

lou

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



Re: gwt + struts2 server-side validation

2010-02-19 Thread Vasem Want
yes this has been done, you can create a
seperate validator service , generic in base model
then keep the two libraries in same package

and yes you can associate your widgets to struts
by calling a validator service

On Fri, Feb 19, 2010 at 5:16 PM, loucat  wrote:

> Hi!
>
> is there anyone who ever tried to do some validation integrating
> struts2 and gwt?
> I've installed the gwtstrut2 plugin, but actually I'm still not using
> anything of struts2.
> I should do server side validation (of my form's fields) but I don't
> know how to do it as I don't use struts2 tag libraries and I don't
> know if it's possibile to associate my widgets to struts2 and make the
> validation using an xml file validator...
>
> lou
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this groep at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: gwt + struts2 server-side validation

2010-02-19 Thread loucat
Ehm sorry I'm quite a newbie and I don't understand what you mean with
"validator service generic in base model", should it be a java class
or an xml file?



On 19 Feb, 10:26, Vasem Want  wrote:
> yes this has been done, you can create a
> seperate validator service , generic in base model
> then keep the two libraries in same package
>
> and yes you can associate your widgets to struts
> by calling a validator service
>
>
>
> On Fri, Feb 19, 2010 at 5:16 PM, loucat  wrote:
> > Hi!
>
> > is there anyone who ever tried to do some validation integrating
> > struts2 and gwt?
> > I've installed the gwtstrut2 plugin, but actually I'm still not using
> > anything of struts2.
> > I should do server side validation (of my form's fields) but I don't
> > know how to do it as I don't use struts2 tag libraries and I don't
> > know if it's possibile to associate my widgets to struts2 and make the
> > validation using an xml file validator...
>
> > lou
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > .
> > For more options, visit this groep at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

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



Best practices/ideas for GWT with Spring Security (or equivalent)

2010-02-19 Thread Paul S
I would like to debate some ideas for how to secure GWT apps in
different ways and their pros and cons. It is important to remember
that there will be different needs and so different approaches will be
more suitable in certain cases, but I just want to be aware of what
people are doing.

I am using Spring Security because it is excellent, and whilst I am
aware that there are many other solutions available this is not the
focus here, so I'll just call it Security from here on.

Security offers protection of URLs and also some more fancy AOP style
protection like protection of specific functions. To keep things
simple here lets just look at protection of URLs.

1. Without Ajax - Protecting URLs that relate to pages

Before the days of Ajax where a URL effectively corresponds to a state
you can see how the model becomes straight forward. Adam accesses /
home.html, it loads and Adam gets to read a bunch of content. At this
point Adam is considered to be a Guest. Adam is curious about a link
called "Administration", when he clicks it he is sending a Request.
That Request has some header info embedded in it (which the user never
sees but you can see if with Firebug or whatever). Sadly Adam is not
signed in so Security redirects him to a login page, but remembers
everything about that original Request. Adam suddenly remembers he
does have a user name and password so he logs in. Security processes
his login and then redirects him to the exact equivalent of what would
have been the original Request. Adam is happy because his work flow
continued seamlessly despite being asked to login.

(Ok, Spring Security can be configured to replay the original Request
upon successful login (default), or it can be forced to send you to a
particular default login success page. If you use the latter then
Adam's work flow will not be seamless because his original request for
the "Administration" page has been forgotten. Though sometimes you
might need a set up like this?)

Now Ajax comes along, and in particular I'm going to talk about GWT
here but the principles apply.

2.a. With Ajax - but still protecting URLs that relate to pages

If we use Security to protect the URL of container page (in GWT that's
the page that hosts the bootstrap javascript code for your GWT app)
then, just like normal if Adam visits /home.html he will be able to
read the content on that page. The "Administration" link has been
modified to take you to /admin.html which is in fact the host page the
GWT administrator module. Adam clicks "Administration" which Security
knows requires the Admin role so he is redirected to the login page.
Adam logs in and whether Security is configured to play back the exact
Request or whether you specifically move the browser along to /
admin.html, at this point doesn't matter. Adam is now looking at a
fully loaded GWT application. Lets say also that Security is told to
protect every GWT RPC call. Well Adam is logged in so he is allowed
access to the server services via GWT RPC and all goes smoothly...
until Adam leaves his computer for an hour and comes back to continue
his work. When the next server call that occurs is met by Security who
says, since your session has expired you are not logged in, so I'm
going to redirect you to the login page. XmlHttpRequest obeys the 30x
response code which is telling it to actually load the resource at /
login.html. In GWT this amounts to an InvocationException where the
error message content is your /login.html page markup. That's no good!
The XHR cannot interpret this as your browser would, so what to do?
The answer is pretty straightforward here. Design your /login.html
page to contain a text token that you can search for. So for example
in my /login.html code I have places an html comment right at the top
like this

so when the browser hits the /login.html page it just looks like a
regular login page. But when the RPC call encounters this
InvocationTarget exception I have an onFailure handler that looks like
this:

   public void onFailure(Throwable t) {
  if (t instanceof InvocationException){
 if (t.getMessage().split("").length > 1){
onLoginRequested();
} else {...}
  } else {...}
   }

My onLoginRequested() method could be any of a few styles. The most
obvious is to have it call a native method that looks like this:

   private native void redirectToLogin() /*-{
  $wnd.location.replace("/login.html");
   }-*/;

Now at this point we have to get clear on the behaviour of Security
with regard to where it redirects the browser after successful login.
In this case you would have to specify that it ALWAYS redirects you
to /admin.html so that when Adam signs in again he is taken back into
the Administration app. But sadly his page state (history tokens) is
lost and he's back on the front screen of your app and is now required
to put the app back into the state it was before (i.e. Adam may have
had some popup open, some menu item open, etc. Now he's 

Re: Best practices/ideas for GWT with Spring Security (or equivalent)

2010-02-19 Thread Paul S
addendum: my session expired whilst writing this!

On Feb 19, 1:07 pm, Paul S  wrote:
> I would like to debate some ideas for how to secure GWT apps in
> different ways and their pros and cons. It is important to remember
> that there will be different needs and so different approaches will be
> more suitable in certain cases, but I just want to be aware of what
> people are doing.
>
> I am using Spring Security because it is excellent, and whilst I am
> aware that there are many other solutions available this is not the
> focus here, so I'll just call it Security from here on.
>
> Security offers protection of URLs and also some more fancy AOP style
> protection like protection of specific functions. To keep things
> simple here lets just look at protection of URLs.
>
> 1. Without Ajax - Protecting URLs that relate to pages
>
> Before the days of Ajax where a URL effectively corresponds to a state
> you can see how the model becomes straight forward. Adam accesses /
> home.html, it loads and Adam gets to read a bunch of content. At this
> point Adam is considered to be a Guest. Adam is curious about a link
> called "Administration", when he clicks it he is sending a Request.
> That Request has some header info embedded in it (which the user never
> sees but you can see if with Firebug or whatever). Sadly Adam is not
> signed in so Security redirects him to a login page, but remembers
> everything about that original Request. Adam suddenly remembers he
> does have a user name and password so he logs in. Security processes
> his login and then redirects him to the exact equivalent of what would
> have been the original Request. Adam is happy because his work flow
> continued seamlessly despite being asked to login.
>
> (Ok, Spring Security can be configured to replay the original Request
> upon successful login (default), or it can be forced to send you to a
> particular default login success page. If you use the latter then
> Adam's work flow will not be seamless because his original request for
> the "Administration" page has been forgotten. Though sometimes you
> might need a set up like this?)
>
> Now Ajax comes along, and in particular I'm going to talk about GWT
> here but the principles apply.
>
> 2.a. With Ajax - but still protecting URLs that relate to pages
>
> If we use Security to protect the URL of container page (in GWT that's
> the page that hosts the bootstrap javascript code for your GWT app)
> then, just like normal if Adam visits /home.html he will be able to
> read the content on that page. The "Administration" link has been
> modified to take you to /admin.html which is in fact the host page the
> GWT administrator module. Adam clicks "Administration" which Security
> knows requires the Admin role so he is redirected to the login page.
> Adam logs in and whether Security is configured to play back the exact
> Request or whether you specifically move the browser along to /
> admin.html, at this point doesn't matter. Adam is now looking at a
> fully loaded GWT application. Lets say also that Security is told to
> protect every GWT RPC call. Well Adam is logged in so he is allowed
> access to the server services via GWT RPC and all goes smoothly...
> until Adam leaves his computer for an hour and comes back to continue
> his work. When the next server call that occurs is met by Security who
> says, since your session has expired you are not logged in, so I'm
> going to redirect you to the login page. XmlHttpRequest obeys the 30x
> response code which is telling it to actually load the resource at /
> login.html. In GWT this amounts to an InvocationException where the
> error message content is your /login.html page markup. That's no good!
> The XHR cannot interpret this as your browser would, so what to do?
> The answer is pretty straightforward here. Design your /login.html
> page to contain a text token that you can search for. So for example
> in my /login.html code I have places an html comment right at the top
> like this
> 
> so when the browser hits the /login.html page it just looks like a
> regular login page. But when the RPC call encounters this
> InvocationTarget exception I have an onFailure handler that looks like
> this:
>
>    public void onFailure(Throwable t) {
>       if (t instanceof InvocationException){
>          if 
> (t.getMessage().split("").length > 1){
>
>             onLoginRequested();
>         } else {...}
>       } else {...}
>    }
>
> My onLoginRequested() method could be any of a few styles. The most
> obvious is to have it call a native method that looks like this:
>
>    private native void redirectToLogin() /*-{
>       $wnd.location.replace("/login.html");
>    }-*/;
>
> Now at this point we have to get clear on the behaviour of Security
> with regard to where it redirects the browser after successful login.
> In this case you would have to specify that it ALWAYS redirects you
> to /admin.html so that when Adam signs in again he is taken back into
> 

Re: Resizing Events for % Sized Widgets/Panels?

2010-02-19 Thread John Denley
I think it depends on the widget, but ive had to implement a timer to
constantly check for splitter panel resizing. I understand this is how
Google would implement it themselves anyway, so it should be an acceptable
method,

On 18 February 2010 23:52, Andrew Hughes  wrote:

> Hi All,
>
> I've got...
>
> myWidget.setSize("100%","100%");
>
>
> The actualy size of this can change dynamically, as it's a % and not
> absolute. For example:
> + other content is added to the dom
> + the css style is changed
> + a split panel is moved by the user
> + the browser window size changes <--- ignore this, we have
> Window.addResizeHandler()
>
> Anyway, if myWidget (or the panel around it) changes is actual size - How
> can I detect this? Do I already have an event I can listen for?
>
> Cheers :)
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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 set the initial state of a radiobutton?

2010-02-19 Thread CodeMonkey
Dave,

Just today I was encountering almost the exact same problem.  I found
out that I was having a problem because I was setting the value before
I had attached the radio button to the document.  Some ancestor widget
had not been added to a widget that was in the document.  Once I
changed to code to have the widgets inserted into the page before
setting the value everything worked fine.

I hope this helps!

- Jim

On Feb 18, 5:18 pm, dhoffer  wrote:
> Also doesn't work with 2.0.2.  Created defect 
> issuehttp://code.google.com/p/google-web-toolkit/issues/detail?id=4647
>
> -Dave
>
> On Feb 18, 11:18 am, dhoffer  wrote:
>
>
>
> > If I add a coupleradiobuttons to the main panel it works fine.
>
> > In my app theradiobuttons are in a FlexTable.  I just add them as
> > widgets to the table.  Is this a known problem?  Do I have to do
> > something different when in a table?
>
> > -Dave
>
> > On Feb 18, 9:23 am, dhoffer  wrote:
>
> > > Hi John,
>
> > > Thanks for the reply.  No I'm not doing any RPC with respect to these
> > >radiobuttons.  I have RPC but its for other purposes.  I have stepped
> > > through the code many times with an IDE, everything seems in order.
> > > Its just theradiobuttons are not selected when the app starts?!?  I
> > > will try a smaller app and see if they work there.  Its a bit strange
> > > <= 10% of the time they are displayed correctly
>
> > > I just noticed that there is a new version 2.0.2...I might try that
> > > too.
>
> > > -Dave
>
> > > On Feb 18, 8:52 am, John Denley  wrote:
>
> > > > Its hard to try to solve this problem without being able to debug the 
> > > > code,
> > > > and Ive certainly got no time for that!
>
> > > > You can try to create a really small application that just creates and 
> > > > sets
> > > > theradiobuttons, so that you can proove to yourself that the 
> > > > functionality
> > > > works.
>
> > > > You could also try stepping through the code line by line (if you are 
> > > > using
> > > > something like the eclipse IDE)
>
> > > > Otherwise you could try manually stepping through your own code, very
> > > > tedious and boring and you need to concentrate but its possible to do if
> > > > theres not too much code to trawl through!
>
> > > > Regarding the Asynchronos problem, this all depends if you are using RPC
> > > > calls to your server to get the values for yourradiobuttons, but Im
> > > > guessing from what you have said that you are currently hardcoding the
> > > > initial values (which of course it one of the debugging steps you could 
> > > > have
> > > > tried). The problem though can be that you create and display theradio
> > > > buttons, but then the RPC call fails to update them for whatever 
> > > > reason, or
> > > > worse yet, tries to update theradiobuttons before they have even been
> > > > created!
>
> > > > Other than that I dont know enough about how you are trying to do it (or
> > > > enough of the internal workings of GWT) to offer any advice on the 
> > > > actual
> > > > order of creation etc.
>
> > > > However its worth remembering and considering whether or not your 
> > > > panels or
> > > > buttons are being destroyed or just merely hidden. Ive made that mistake
> > > > with dialog boxes and not realising that a a call to dialogbox.hide is 
> > > > only
> > > > hiding the dialog box, so if you try to create the dialogbox at the
> > > > beginning of a function and then hide it later in the same function, 
> > > > later
> > > > when you call the same function, it will create a new (clean) version 
> > > > of the
> > > > same dialogbox
>
> > > > On 18 February 2010 15:17, dhoffer  wrote:
>
> > > > > John,
>
> > > > > So how do I solve this?  I'm not clear on the solution you propose.
>
> > > > > -Dave
>
> > > > > On Feb 18, 7:51 am, John Denley  wrote:
> > > > > > is it possible that this maybe an asynchronos issue, I have had that
> > > > > before
> > > > > > where Im displaying theradiobuttons before im setting them because 
> > > > > > the
> > > > > > setting of the buttons is based on a reply from the server, which 
> > > > > > is an
> > > > > > asynchronous call!
>
> > > > > > On 18 February 2010 14:28, Bonor  wrote:
>
> > > > > > > It should! May be something else deselects it?
>
> > > > > > > I use manyradio'sand I just use:
> > > > > > >radio[i].setValue(true);
>
> > > > > > > On 18 feb, 04:42, dhoffer  wrote:
> > > > > > > > gwt 2.0.  I've tried callingsetValue(true, true) onradiobuttons
> > > > > but
> > > > > > > > when the app is run, neitherradiobuttonis selected, what is the
> > > > > > > > trick to code setting the initial value ofradiobuttons?
>
> > > > > > > > -Dave
>
> > > > > > > --
> > > > > > > You received this message because you are subscribed to the Google
> > > > > Groups
> > > > > > > "Google Web Toolkit" group.
> > > > > > > To post to this group, send email to
> > > > > google-web-tool...@googlegroups.com.
> > > > > > > To unsubscribe from this group, send email to
> > > > > > > google-

Re: Eclipse JavaEE tools + GWT Development mode

2010-02-19 Thread Chris Lercher
Wow, that sounds good! I'm really happy to hear that GPE will make
this available.

There's one additional thing I'd like to be able to do: Split up the
WebContainer part and the GWT part into two projects. This is
currently not so easy, because
- you'll need to have the web.xml in both projects and keep them in
sync. I'd really like to have the web.xml in the Web project, not in
the GWT project.
- it's necessary to copy the GWT-compiled output folder from the GWT
project into the Web project (I think, at least every time the
serialization policy file changes (?)).

Are there any plans for GPE to support this kind of project splitting?

Chris

On Feb 18, 5:40 pm, Keith Platfoot  wrote:
> Hi Chris,
>
> Thanks for posting this.  It's a good explanation of how to get WTP and GPE
> 1.2 working together, which is not a trivial task.  However, in the next
> release of the plugin we're planning on making this integration a whole lot
> easier
> .
>
> With GPE 1.3, you'll be able to adapt an existing Dynamic Web Project as a
> GWT project and debug using hosted/dev mode quite easily.  Here's a sneak
> preview of how this will work in GPE 1.3:
>
> 1. In your project's Properties dialog, select Google > Web Toolkit and
> check the box: *Use Google Web Toolkit*.
>
> 2. Switch to the Web Application property page and change *WAR source
> directory* to "WebContent" and uncheck the box: *Also use this directory as
> the output WAR directory.*
> *
> *
> 3. Start your project's server (be it GlassFish, Tomcat, etc.) using your
> configured WTP server adapter.
>
> 4. Create a new Web Application launch configuration.  On the Server tab,
> uncheck: *Run built-in server* (since we want to use WTP's server adapter)
> and on the GWT tab, change the -startupUrl argument to point to your server
> (e.g.http://localhost:8080/WebApp)
>
> 5. Run/Debug your new launch configuration.  The first time you do this,
> you'll have to select the location of the WAR directory WTP is publishing to
> (this is configurable, but I think by default it is
> /.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/ 
> ).
>
> 6. Presto!  GWT hosted/dev mode is now running in your own server, and you
> can debug either server-side or client-side code, and get automatic redeploy
> of modified class files or static resources thanks to WTP's auto-publish
> mechanism.
>
> We're going to be uploading a preview built of GPE 1.3 later this month so
> you can try it out for yourself and let us know what you think, ahead of the
> official release.  Stay tuned!
>
> Keith

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



DialogBox problem in IE

2010-02-19 Thread obesga
I've a problem with GWT 2.0.1 and the DialogBox class, with the
standarts mode on the page (aka )
When I create and how a DialogBox ( with center() ) the rest of the
application dissapears, resulting in a white page only with the dialog
on top.
When the dialog hides, the other elements return to visible...

¿ Do you know why is this happening and how to fix it ?


thankks

(It don't seem to appear a issue or this theme on the forum... I'm the
only with this problem ? )

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



Re: GWT Compilation of gwt project with multiple modules

2010-02-19 Thread Ashar Lohmar
the "MyModule" that will be used in MyModuleUsage module does not need
to be GWT compiled ... and even further you can't GWTcomplie it
without an entry point, but you don't need it gwt complied,
in this type of scenario myModule is compiled in java (javac) and made
a jar that has the .class files along with the .java files for the
classes in the (from the) folder that are mentioned by   tags.

when you'll GWTcompile the MyModuleUsage module GWT il put in that
compilation all the classes needed for this module to run that
includes the classes from MyModule.

that in info is on AFAIK bases, if someone knows different please
correct me.

for "My question is , the way I am using multiple modules to reduce
files sizes, is it correct or no ?" only the people working on
developing GWT could give u an correct answer, my guess is that it'
wont reduce it. but it would be usefull if you've used MyModule in
other more modules like MyModuleUsage

Hope it helps you and clears some of you questions
good luck

On Feb 19, 7:28 am, vinayak  wrote:
> Moderators,
>                        Nobody is answering this question. Is it that
> others can not view this thread anywhere? Do I need to do something
> more to make it viewable to others ?
> Question must be easily answerable Please help.
> Thanks.
>
> - vinayak
>
> On Feb 17, 11:17 am, vinayak  wrote:
>
>
>
> > Hello,
> >            I am a newbie to GWT and using gwt 2.0 and now gwt 2.0.2 to
> > create my web application. (Actually I am converting my existing app
> > to a gwt app...). To do this I am trying one small example. To avoid
> > very large .no-cache.js file and large first page Ioad time, I have
> > created 1 module (e.g. MyModule) and I am using it in my main gwt
> > project by inheriting it. My main project name is MyModuleUsage.
>
> > Here is the code in MyModule. This has no entrypoint class. It has one
> > MyForm class, one DetailsService and .gwt.xml file.  (given below)
>
> > public class MyForm extends Composite {
> >   // Code to create my form
>
> > }
>
> > MyModule.xml:
>
> > 
> > 
> >   
> >   
> > 
>
> > After creating this module, I created MyModule.jar with src and class
> > files as described on
>
> >http://developerlife.com/tutorials/?p=229 (Although it was for
> > gwt1.4 and IDEA, I could use that info on gwt 2.0 and eclipse.)
>
> > I created MyModule.jar manually by copying src and class files in
> > required dir structure. ( I hope there is some utility of gwt itself
> > to create one...please let me know if any)
>
> > Code for MyModuleUsage is as given below.
>
> > public class MyModuleUsage implements EntryPoint {
>
> > public void onModuleLoad() {
> > // My buttons and textboxes and tables
> >                 MyForm myform = new
> > MyForm();                             // This is from inherited
> > module.
> >                 RootPanel.get("MyMod").add(myform.asWidget());
> > // some more buttons...and their click handlers..
>
> > }
>
> > MyModuleUsage.gwt.xml
>
> > 
> > 
> >   
> >   
> >   
> >   
> >   
> >   
> > 
>
> > There is one more service of this project itself to handle clicks of
> > buttons created inside MyModuleUsage..
>
> > Now if I run MyModuleUsage then I get required output. Click on
> > buttons of Myform are handled by service inside MyModule and click on
> > buttons of MyModuleUsage are handled by service inside MyModuleUsage
> > as expected. This gives me a feeling that I can use MyModule as
> > indepedent component which I can use any other gwt project.
>
> > If I do a gwtcompilationof MyModuleUsage in eclipse then generated
> > no-cache.js file is of 6 kb and cache.html file is of 80 kb.
>
> > If I write code to generate same UI and service inside a single module
> > then generated no-cache.js file is of 10 kb and cache.html file is of
> > 230 kb.
>
> > My question is , the way I am using multiple modules to reduce files
> > sizes, is it correct or no ?
> > Second I have never gwt compiled MyModule independently. so when
> > exactly it gets compiled ?
> > where are the compiled files for MyModule.- Hide quoted text -
>
> - Show quoted text -

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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 GWT FlowPanel and other Panel Styles!

2010-02-19 Thread RPB

A FlowPanel will act like a vertical panel (since block-level elements
will naturally stack up vertically) unless you change the CSS property
of it's children to float:left;

Have a look at this for further info:
http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html



On Feb 19, 6:17 am, Tan Jia Bao  wrote:
> Hi, I'm currently making an e-commerce site using GWT and DnD.
>
> Basically everything is well and in order except for the displaying of the
> panels is done correctly.
>
> I'm using GWT RPC to retrieve the data from my DAO, in my main GWT RPC
> Client side, the data are used to create a new Widget where stuffs such as
> the Product name and Image are used in.
>
> In that Widget's constructor, I put all the Labels, Image into a Vertical
> Panel, the constructor is created with UsageExample client side file, in
> that client file, I have a FlowPanel which adds the widget into itself. Then
> my mainentrypoint calls and retrieves that FlowPanel and placing it into the
> mainPanel to display on the webpage.
>
> Thing is, the FlowPanel doesn't display like a FlowPanel, but rather like a
> VerticalPanel, I tried changing it to horizontalPanel and it works,
> everything else works except for the FlowPanel. Can anyone help on what I'm
> doing wrong? Thanks!

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



Re: Alternative for Class.isAssignableFrom() ?

2010-02-19 Thread Chris Lercher
The JRE Emulation Reference says, that getSuperclass() is supported.
http://code.google.com/webtoolkit/doc/latest/RefJreEmulation.html
Maybe you can make do with this?

Chris

On Feb 19, 3:58 am, Dominik Steiner 
wrote:
> Hi there,
>
> I'm trying to implement an event bus that will receive register
> listeners like this
>
> public  void registerListener(Class
> eventClassname, EventListener eventListener);
> (Event is a custom interface)
>
> what i would like then to achieve would be to be able to fire an event
>
> public void fireEvent(Event event);
>
> and be able to trigger all my event listeners that either are of the
> same event.getClass() or that are assignable from the event class that
> has been fired. Getting all the listeners that correspond to the event
> class itself is no problem, but how can i achieve getting all the
> listeners that registered to a interface that the event class might
> implement without being able to use Class.isAssignableFrom()?
>
> Thanks for any hints and help in advance.
>
> Dominik

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: RichText, bug with createLink?

2010-02-19 Thread Rafael
+1

Any news on this matter?

On Feb 2, 1:13 pm, Bonor  wrote:
> ThecreateLink() doens't seems to work. Not only in my app but also in
> the Google 
> Showcase:http://gwt.google.com/samples/Showcase/Showcase.html#CwRichText
>
> Is it a bug?

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



Re: GWT Compilation of gwt project with multiple modules

2010-02-19 Thread vinayak
Thanks Ashar.
So I can conclude following. Correct me if I am wrong.
1. There is no need to gwt compile included module. It gets gwt
compiled whenever user module is gwt compiled.
2.  A gwt project can not be gwt compiled if it does not contain an
EntryPoint class.

GWT developers, please take a look at other part of the question.
Thanks in advance.

- vinayak

On Feb 19, 4:36 pm, Ashar Lohmar  wrote:
> the "MyModule" that will be used in MyModuleUsage module does not need
> to be GWT compiled ... and even further you can't GWTcomplie it
> without an entry point, but you don't need it gwt complied,
> in this type of scenario myModule is compiled in java (javac) and made
> a jar that has the .class files along with the .java files for the
> classes in the (from the) folder that are mentioned by  path='client'/>  tags.
>
> when you'll GWTcompile the MyModuleUsage module GWT il put in 
> thatcompilationall the classes needed for this module to run that
> includes the classes from MyModule.
>
> that in info is on AFAIK bases, if someone knows different please
> correct me.
>
> for "My question is , the way I am using multiple modules to reduce
> files sizes, is it correct or no ?" only the people working on
> developing GWT could give u an correct answer, my guess is that it'
> wont reduce it. but it would be usefull if you've used MyModule in
> other more modules like MyModuleUsage
>
> Hope it helps you and clears some of you questions
> good luck
>
> On Feb 19, 7:28 am, vinayak  wrote:
>
> > Moderators,
> >                        Nobody is answering this question. Is it that
> > others can not view this thread anywhere? Do I need to do something
> > more to make it viewable to others ?
> > Question must be easily answerable Please help.
> > Thanks.
>
> > - vinayak
>
> > On Feb 17, 11:17 am, vinayak  wrote:
>
> > > Hello,
> > >            I am a newbie to GWT and using gwt 2.0 and now gwt 2.0.2 to
> > > create my web application. (Actually I am converting my existing app
> > > to a gwt app...). To do this I am trying one small example. To avoid
> > > very large .no-cache.js file and large first page Ioad time, I have
> > > created 1 module (e.g. MyModule) and I am using it in my main gwt
> > > project by inheriting it. My main project name is MyModuleUsage.
>
> > > Here is the code in MyModule. This has no entrypoint class. It has one
> > > MyForm class, one DetailsService and .gwt.xml file.  (given below)
>
> > > public class MyForm extends Composite {
> > >   // Code to create my form
>
> > > }
>
> > > MyModule.xml:
>
> > > 
> > > 
> > >   
> > >   
> > > 
>
> > > After creating this module, I created MyModule.jar with src and class
> > > files as described on
>
> > >http://developerlife.com/tutorials/?p=229 (Although it was for
> > > gwt1.4 and IDEA, I could use that info on gwt 2.0 and eclipse.)
>
> > > I created MyModule.jar manually by copying src and class files in
> > > required dir structure. ( I hope there is some utility of gwt itself
> > > to create one...please let me know if any)
>
> > > Code for MyModuleUsage is as given below.
>
> > > public class MyModuleUsage implements EntryPoint {
>
> > > public void onModuleLoad() {
> > > // My buttons and textboxes and tables
> > >                 MyForm myform = new
> > > MyForm();                             // This is from inherited
> > > module.
> > >                 RootPanel.get("MyMod").add(myform.asWidget());
> > > // some more buttons...and their click handlers..
>
> > > }
>
> > > MyModuleUsage.gwt.xml
>
> > > 
> > > 
> > >   
> > >   
> > >   
> > >   
> > >   
> > >   
> > > 
>
> > > There is one more service of this project itself to handle clicks of
> > > buttons created inside MyModuleUsage..
>
> > > Now if I run MyModuleUsage then I get required output. Click on
> > > buttons of Myform are handled by service inside MyModule and click on
> > > buttons of MyModuleUsage are handled by service inside MyModuleUsage
> > > as expected. This gives me a feeling that I can use MyModule as
> > > indepedent component which I can use any other gwt project.
>
> > > If I do a gwtcompilationof MyModuleUsage in eclipse then generated
> > > no-cache.js file is of 6 kb and cache.html file is of 80 kb.
>
> > > If I write code to generate same UI and service inside a single module
> > > then generated no-cache.js file is of 10 kb and cache.html file is of
> > > 230 kb.
>
> > > My question is , the way I am using multiple modules to reduce files
> > > sizes, is it correct or no ?
> > > Second I have never gwt compiled MyModule independently. so when
> > > exactly it gets compiled ?
> > > where are the compiled files for MyModule.- Hide quoted text -
>
> > - Show quoted text -

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For 

Re: RichText, bug with createLink?

2010-02-19 Thread Rafael
So far the only workaround that i have found is to use the insertHTML
method instead

On Feb 19, 8:53 am, Rafael  wrote:
> +1
>
> Any news on this matter?
>
> On Feb 2, 1:13 pm, Bonor  wrote:
>
> > ThecreateLink() doens't seems to work. Not only in my app but also in
> > the Google 
> > Showcase:http://gwt.google.com/samples/Showcase/Showcase.html#CwRichText
>
> > Is it a bug?

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



Re: GWT Compilation of gwt project with multiple modules

2010-02-19 Thread Ashar Lohmar
from my experience trying to gwtcompile an module without EntryPoint
throwed an error (don't recall which)
modules/libraries that will be used with included don't need to be
GWTcompiled. exually (don't know how to spell it)
i have noticed that running apps which had this kind of module usage
in eclipse, in the war folder i only get folders (folder with
gwtcompild code with the names given by the rename-to attribute from
the module tag) for the modules that have entry points. so even that I
use code from the other modules i don't get folders for them

also on my production server, where i deploy the app,  i run the build
script that only gwtcompiles the modules with the entrypoints, an put
in the webapps\ROOT folder of the tomcat server only the content of
the war folder of my app.

for a (good/correct) gwt compile script  try building a dummy app
using the command line with webAppCreator.cmd (check the params) that
will also create a build.xml file which afterwards you could modify it
to suit your needs.

good luck

On Feb 19, 2:34 pm, vinayak  wrote:
> Thanks Ashar.
> So I can conclude following. Correct me if I am wrong.
> 1. There is no need to gwt compile included module. It gets gwt
> compiled whenever user module is gwt compiled.
> 2.  A gwt project can not be gwt compiled if it does not contain an
> EntryPoint class.
>
> GWT developers, please take a look at other part of the question.
> Thanks in advance.
>
> - vinayak
>
> On Feb 19, 4:36 pm, Ashar Lohmar  wrote:
>
>
>
> > the "MyModule" that will be used in MyModuleUsage module does not need
> > to be GWT compiled ... and even further you can't GWTcomplie it
> > without an entry point, but you don't need it gwt complied,
> > in this type of scenario myModule is compiled in java (javac) and made
> > a jar that has the .class files along with the .java files for the
> > classes in the (from the) folder that are mentioned by  > path='client'/>  tags.
>
> > when you'll GWTcompile the MyModuleUsage module GWT il put in 
> > thatcompilationall the classes needed for this module to run that
> > includes the classes from MyModule.
>
> > that in info is on AFAIK bases, if someone knows different please
> > correct me.
>
> > for "My question is , the way I am using multiple modules to reduce
> > files sizes, is it correct or no ?" only the people working on
> > developing GWT could give u an correct answer, my guess is that it'
> > wont reduce it. but it would be usefull if you've used MyModule in
> > other more modules like MyModuleUsage
>
> > Hope it helps you and clears some of you questions
> > good luck
>
> > On Feb 19, 7:28 am, vinayak  wrote:
>
> > > Moderators,
> > >                        Nobody is answering this question. Is it that
> > > others can not view this thread anywhere? Do I need to do something
> > > more to make it viewable to others ?
> > > Question must be easily answerable Please help.
> > > Thanks.
>
> > > - vinayak
>
> > > On Feb 17, 11:17 am, vinayak  wrote:
>
> > > > Hello,
> > > >            I am a newbie to GWT and using gwt 2.0 and now gwt 2.0.2 to
> > > > create my web application. (Actually I am converting my existing app
> > > > to a gwt app...). To do this I am trying one small example. To avoid
> > > > very large .no-cache.js file and large first page Ioad time, I have
> > > > created 1 module (e.g. MyModule) and I am using it in my main gwt
> > > > project by inheriting it. My main project name is MyModuleUsage.
>
> > > > Here is the code in MyModule. This has no entrypoint class. It has one
> > > > MyForm class, one DetailsService and .gwt.xml file.  (given below)
>
> > > > public class MyForm extends Composite {
> > > >   // Code to create my form
>
> > > > }
>
> > > > MyModule.xml:
>
> > > > 
> > > > 
> > > >   
> > > >   
> > > > 
>
> > > > After creating this module, I created MyModule.jar with src and class
> > > > files as described on
>
> > > >http://developerlife.com/tutorials/?p=229 (Although it was for
> > > > gwt1.4 and IDEA, I could use that info on gwt 2.0 and eclipse.)
>
> > > > I created MyModule.jar manually by copying src and class files in
> > > > required dir structure. ( I hope there is some utility of gwt itself
> > > > to create one...please let me know if any)
>
> > > > Code for MyModuleUsage is as given below.
>
> > > > public class MyModuleUsage implements EntryPoint {
>
> > > > public void onModuleLoad() {
> > > > // My buttons and textboxes and tables
> > > >                 MyForm myform = new
> > > > MyForm();                             // This is from inherited
> > > > module.
> > > >                 RootPanel.get("MyMod").add(myform.asWidget());
> > > > // some more buttons...and their click handlers..
>
> > > > }
>
> > > > MyModuleUsage.gwt.xml
>
> > > > 
> > > > 
> > > >   
> > > >   
> > > >   
> > > >   
> > > >   
> > > >   
> > > > 
>
> > > > There is one more service of this project itself to handle clicks of
> > > > buttons created inside MyModuleUsage..
>
> > > > Now if 

Re: firefox 3.5.7 linux amd64 plugin issue

2010-02-19 Thread Marcel
>From another post I used the installation via:

http://gwt.google.com/missing-plugin/MissingPlugin.html

With this it seems that the plugin installed correctly (in firefox
3.5.8 now, just received an ubuntu update) and I can run the
application.

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



(Almost) Standards mode / Quirks mode

2010-02-19 Thread Chris Lercher
Hi,

I just had a look at a html page generated by GWT 1.7, and was
wondering about this:









GWT 1.7 was made for quirks mode, as far as I remember. But HTML 4.01
Transitional isn't quirks mode. For all I know, this is called "Almost
Standards mode", which is very close to "Standards mode", except
mainly for images.

See http://hsivonen.iki.fi/doctype/  (Section "Choosing a Doctype")
and http://www.quirksmode.org/css/quirksmode.html

So I wonder: Is this incorrect in the generated HTML page, or are the
GWT docs actually always talking about "Almost Standards mode", when
they say, that certain things before GWT 2.0 were designed for "Quirks
mode"? Or maybe the information in my links is wrong?

Chris

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



Re: Alternative for Class.isAssignableFrom() ?

2010-02-19 Thread Nathan Wells
I think you'll probably end up implementing your own version of a map
that would look something like this:

Map, List> handledEventClasses;

 List> get(Class eventClass) {
  List> result = new ArrayList>
  for ( Entry, List entry :
handledEventClasses.entrySet() ) {
if ( eventClass.isAssignableFrom(entry.getKey()) {
  result.addAll((List>)entry.getValue());
}
  }
  return result;
}

Of course, I neglect any null checking, and I don't know if that will
compile or not, but I think you can follow the basic logic.

Also, this method will probably need to be better optimized since it
runs in linear time according to the number of event classes you
register. This could be done by making the put method intelligent
enough to put the listeners into bins for each class you register.


On Feb 19, 4:43 am, Chris Lercher  wrote:
> The JRE Emulation Reference says, that getSuperclass() is 
> supported.http://code.google.com/webtoolkit/doc/latest/RefJreEmulation.html
> Maybe you can make do with this?
>
> Chris
>
> On Feb 19, 3:58 am, Dominik Steiner 
> wrote:
>
>
>
> > Hi there,
>
> > I'm trying to implement an event bus that will receive register
> > listeners like this
>
> > public  void registerListener(Class
> > eventClassname, EventListener eventListener);
> > (Event is a custom interface)
>
> > what i would like then to achieve would be to be able to fire an event
>
> > public void fireEvent(Event event);
>
> > and be able to trigger all my event listeners that either are of the
> > same event.getClass() or that are assignable from the event class that
> > has been fired. Getting all the listeners that correspond to the event
> > class itself is no problem, but how can i achieve getting all the
> > listeners that registered to a interface that the event class might
> > implement without being able to use Class.isAssignableFrom()?
>
> > Thanks for any hints and help in advance.
>
> > Dominik

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: DialogBox problem in IE

2010-02-19 Thread obesga
Well, some hot news.

If I display the dialgo box in ie7, the underlying web elements
dissapear. But if I open a new tab, and load GWT showcase, the dialo
box of the showcase works ok. And if I return to the previous tab - my
app - then the page renders correctly (taaachn !!)

WTF ???



On Feb 19, 12:18 pm, obesga  wrote:
> I've a problem with GWT 2.0.1 and the DialogBox class, with the
> standarts mode on the page (aka )
> When I create and how a DialogBox ( with center() ) the rest of the
> application dissapears, resulting in a white page only with the dialog
> on top.
> When the dialog hides, the other elements return to visible...
>
> ¿ Do you know why is this happening and how to fix it ?
>
> thankks
>
> (It don't seem to appear a issue or this theme on the forum... I'm the
> only with this problem ? )

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



Re: (Almost) Standards mode / Quirks mode

2010-02-19 Thread Alexander Arendar
Hi Chris,

you better use the strict mode:
!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd";>

That would benefit since new GWT layout panels are optimized for the strict
mode.

Sincerely,
Alex

On Fri, Feb 19, 2010 at 3:28 PM, Chris Lercher wrote:

> Hi,
>
> I just had a look at a html page generated by GWT 1.7, and was
> wondering about this:
>
> 
> 
> 
> 
> 
> 
> 
>
> GWT 1.7 was made for quirks mode, as far as I remember. But HTML 4.01
> Transitional isn't quirks mode. For all I know, this is called "Almost
> Standards mode", which is very close to "Standards mode", except
> mainly for images.
>
> See http://hsivonen.iki.fi/doctype/  (Section "Choosing a Doctype")
> and http://www.quirksmode.org/css/quirksmode.html
>
> So I wonder: Is this incorrect in the generated HTML page, or are the
> GWT docs actually always talking about "Almost Standards mode", when
> they say, that certain things before GWT 2.0 were designed for "Quirks
> mode"? Or maybe the information in my links is wrong?
>
> Chris
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: RichText, bug with createLink?

2010-02-19 Thread Chris Lercher
Which browsers are you using? What exactly doesn't work? It works for
me both on Safari 4.0.4 and Firefox 3.5 (Mac). There is one
difference: On firefox, you first have to select some text, then click
the Create link button. On Safari, it also inserts a link, if no text
was selected.



On Feb 19, 1:40 pm, Rafael  wrote:
> So far the only workaround that i have found is to use the insertHTML
> method instead
>
> On Feb 19, 8:53 am, Rafael  wrote:
>
>
>
> > +1
>
> > Any news on this matter?
>
> > On Feb 2, 1:13 pm, Bonor  wrote:
>
> > > ThecreateLink() doens't seems to work. Not only in my app but also in
> > > the Google 
> > > Showcase:http://gwt.google.com/samples/Showcase/Showcase.html#CwRichText
>
> > > Is it a bug?

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



Re: RootPanel.get() problems

2010-02-19 Thread John V Denley
OK I thought I had got past this problem, but Its returned and its not
happening at the "RootPanel.get()" point.

I've used Eclipse to step through the code line by line and here is
where Im getting this "A widget that has an existing parent widget may
not be added to  the detach list" (BTW I wish someone would acually
explain what this really means!) As this appears to be at the browser
level, I have no idea how to investigate any further, can anyone
please help me out with what to try next?

Heres the StackTrace:


Daemon Thread [Code server for idebanet from Mozilla/5.0 (Windows; U;
Windows NT 5.1; en-GB; rv:1.9.1.8) Gecko/20100202 Firefox/3.5.8 GTB6
(.NET CLR 3.5.30729) on 
http://localhost:/IDeBanet.html?gwt.codesvr=127.0.0.1:9997
@ H_W?:@Z[P&3u;sI*] (Suspended)
BrowserChannelServer(BrowserChannel).reactToMessages(BrowserChannel
$SessionHandler) line: 1670
BrowserChannelServer.processConnection() line: 401
BrowserChannelServer.run() line: 222
Thread.run() line: not available [local variables unavailable]

Heres the Code:


  public void reactToMessages(SessionHandler handler) {
do {
  try {
getStreamToOtherSide().flush();
MessageType messageType = Message.readMessageType(
getStreamFromOtherSide());
switch (messageType) {
  case FREE_VALUE:
final FreeMessage freeMsg = FreeMessage.receive(this);
handler.freeValue(this, freeMsg.getIds());
break;
  case INVOKE:
InvokeOnServerMessage imsg =
InvokeOnServerMessage.receive(this);
ExceptionOrReturnValue result = handler.invoke(this,
imsg.getThis(),
imsg.getMethodDispatchId(), imsg.getArgs());
sendFreedValues();




On Feb 9, 2:31 pm, "Juan M.M.M."  wrote:
> Thx for the reply
>
> p.d: it's enough with the prototype of the method ;D
>
> Bye!
>
> On Feb 9, 3:10 pm, Thomas Broyer  wrote:
>
>
>
> > On Feb 9, 10:37 am, "Juan M.M.M."  wrote:
>
> > > Hi man!
>
> > > Thx for the reply but I can't set the visiblitiy with this method
> > > Document.get().getElementById(...) .
>
> > > Can you tell me the exact sintax to acced to the setVisibility method
> > > through Document clas?
>
> > Either getStyle.setDisplay(Display.NONE) to hide and
> > getStyle().clearDisplay() to show; or UIObject.setVisible(elt, false)
> > to hide (pass 'true' as the second argument to show).

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: (Almost) Standards mode / Quirks mode

2010-02-19 Thread Chris Lercher
Thanks, I know, and I do (for GWT 2.0). The question is more targeted
at the documentation, which says, we shouldn't use some of the old
layout elements anymore (e.g. StackPanel), because they don't work
well in standards mode.

http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html
(Section "Moving to Standards Mode")

But if it's the case that most GWT 1.7 applications never used quirks
mode anyway (because WebAppCreator by default created a HTML file in
"Almost Standards" mode), then I don't understand that, because the
differences between "Almost Standards" and "Standards" aren't very
big, or are they?

In any case, the comment in the HTML file, that "HTML 4.01
Transitional DOCTYPE" triggers quirks mode doesn't seem to be correct.
Quirks mode is quite different from (Almost) Standards mode.


On Feb 19, 2:46 pm, Alexander Arendar 
wrote:
> Hi Chris,
>
> you better use the strict mode:
> !DOCTYPE HTML PUBLIC
> "-//W3C//DTD HTML 4.01//EN"
> "http://www.w3.org/TR/html4/strict.dtd";>
>
> That would benefit since new GWT layout panels are optimized for the strict
> mode.
>
> Sincerely,
> Alex
>
> On Fri, Feb 19, 2010 at 3:28 PM, Chris Lercher wrote:
>
>
>
> > Hi,
>
> > I just had a look at a html page generated by GWT 1.7, and was
> > wondering about this:
>
> > 
> > 
> > 
> > 
> > 
> > 
> > 
>
> > GWT 1.7 was made for quirks mode, as far as I remember. But HTML 4.01
> > Transitional isn't quirks mode. For all I know, this is called "Almost
> > Standards mode", which is very close to "Standards mode", except
> > mainly for images.
>
> > Seehttp://hsivonen.iki.fi/doctype/ (Section "Choosing a Doctype")
> > andhttp://www.quirksmode.org/css/quirksmode.html
>
> > So I wonder: Is this incorrect in the generated HTML page, or are the
> > GWT docs actually always talking about "Almost Standards mode", when
> > they say, that certain things before GWT 2.0 were designed for "Quirks
> > mode"? Or maybe the information in my links is wrong?
>
> > Chris
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: tomcat and apache problem

2010-02-19 Thread Fran
After some tests I can to confirm that the delay between Comet events
are constant.

Seems that Apache apply a timeout when conects to tomcat by Proxypass

Anyone know it?

On 19 feb, 02:04, Fran  wrote:
> anyone know the problem? please
>
> On 18 feb, 00:41, Fran  wrote:
>
> > I use Comet that its Long polling.
> > I think that the problem is a timeout that is applied by tomcat when
> > apache conect the proxy to the tomcat.
>
> > If I execute the aplication directly in tomcat. Its works fine.
> > If I execute the aplication in apache and a proxypass to servlet, the
> > aplication has a timeout between comet events that I dont understand.
>
> > You can test it:
>
> > Aplication in tomcat 
> > directly:http://california.lirondo.com:8081/msn/Messenger.html
> > ---> It works very good (is needed to use diferents navegators for
> > conect diferent users)
> > Aplication in apache:http://california.lirondo.com/msn/Messenger.html
> > --> If you are patient, you can test that works fine but is s slow
>
> > Help please, thanks!
>
> > On 17 feb, 23:46, Chris Lercher  wrote:
>
> > > Hi,
>
> > > I don't have an Apache+Tomcat setup, so I can only guess what may be
> > > happening: There are two basic ways to do Comet.
>
> > > - Streaming (for one request, the server sends a few bytes, then later
> > > some more etc.)
> > > - Long polling (for one request, the server sends zero bytes
> > > initially, and just waits until it can send anything. When the client
> > > receives that response, it creates a new request.)
>
> > > Streaming is known not to work reliably, especially with proxies
> > > (unfortunately). Long polling also only works reliably, if you don't
> > > wait too long with your response.
>
> > > Even if you manage to set up your apache in a way that it works, you
> > > probably can't control how additional proxies etc (and also the
> > > browser) between your server and the client behave.
>
> > > Maybe this helps a little bit.
> > > Chris
>
> > > On Feb 17, 8:56 pm, Fran  wrote:
>
> > > > anyone can help me please?
>
> > > > On 17 feb, 00:53, Fran  wrote:
>
> > > > > help me please
>
> > > > > On 16 feb, 19:54, Fran  wrote:
>
> > > > > > I am using now Proxypass for apache. The config is:
>
> > > > > > 
> > > > > >         ServerName california..com
> > > > > >         ServerAdmin webmas...@localhost
> > > > > >         DocumentRoot /var/www/
> > > > > >         ProxyRequests On
> > > > > >         
> > > > > >                 Order deny,allow
> > > > > >                 Allow from all
> > > > > >         
> > > > > >         ProxyPass 
> > > > > > /app/com.apphttp://california..com:8081/app/com.app
> > > > > >         ProxyPassReverse 
> > > > > > /app/com.apphttp://california..com:8081/app/com.app
>
> > > > > >         DirectoryIndex index.php
> > > > > >         AccessFileName .htaccess
> > > > > > 
>
> > > > > > The aplication is a Comet chat.
> > > > > > With this configuration, the aplication executed from apache works 
> > > > > > but
> > > > > > some message lost.
> > > > > > The error log shows:
>
> > > > > > [error] [client ] proxy: error reading status line from 
> > > > > > remote
> > > > > > server california..com, 
> > > > > > referer:http://california..com/app/com.app/2179BCD97ED1043BAEE2BAA974B2E7...
> > > > > > [error] [client ] ] proxy: Error reading from remote server
> > > > > > returned by /app/com.app/messenger, 
> > > > > > referer:http://california..com/app/com.app/2179BCD97ED1043BAEE2BAA974B2E7...
>
> > > > > > I read in some forum that is needed the lines in Location directive 
> > > > > > of
> > > > > > apache:
>
> > > > > > SetEnv force-proxy-request-1.0 1
> > > > > > SetEnv proxy-nokeepalive 1
>
> > > > > > If I put this, the aplications is beeing more and more slowly.
>
> > > > > > Someone can tell me a solutions please :(
>
> > > > > > On 15 feb, 22:47, Fran  wrote:
>
> > > > > > > Hello,
>
> > > > > > > I need your help about GWT integration in apache and tomcat.
>
> > > > > > > I have a GWT aplication that has server side. This server side is
> > > > > > > listening in 8081 port at tomcat.
> > > > > > > I need that the client side be in apache that is listening in 
> > > > > > > port 80,
> > > > > > > so I need call server side at port 8081 of tomcat.
> > > > > > > How can I do?
>
> > > > > > > If I run the aplication int tomcat, its works fine. But If I run 
> > > > > > > the
> > > > > > > aplication in apache, the server side dont work.
>
> > > > > > > Help me please
> > > > > > > Thanks

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



Re: Best practices/ideas for GWT with Spring Security (or equivalent)

2010-02-19 Thread Paul S
I got some ideas from Kent 
http://stackoverflow.com/questions/1013032/programmatic-use-of-spring-security
who in turn got some ideas from Spring Security 3 Technical Overview
http://static.springsource.org/spring-security/site/docs/3.0.x/reference/technical-overview.html#d4e689

I now have a set up that resembles Scenario 4.

In my current set up Spring Security is still configured to respond
with a valid html form at /login.html (with my  token hidden in it). So both page requests and XHR Ajax
requests are subject to Spring Security's declarative set up. Whether
I arrive at the host page and am not authenticated, or if I
authenticate and then after my session has timed out I try to call an
RPC service, I will be met with the /login.html contents as the
response. Ok, so the only trick now is that in my GWT app if I get an
InvocationException that equates to Spring Security trying to redirect
me to the /login.html page then I simply show a nice looking GWT popup
that looks like this:

   Sorry, your session seems to have expired
   Username: __
   Password: __
   Login

And when the user clicks Login an RPC call to the server is shot off
that looks a bit like this:

   public interface LoginService extends RemoteService {
  boolean login(String username, String password);
   }

Note that the boolean it returns isn't the real business here. The
real business is that we now have an authenticated session on the
server. The boolean returned just tells our GWT app to hide the popup
(if true) or keep showing it and tell the user to try log in again (if
false). That's all.

On the server I then have a service implementation that performs the
login very similarly to what Kent has done:

@Override
public boolean login(String username, String password) {

log.debug("Authentication attempt: " + username + " " + 
password);

try {
Authentication request = new
UsernamePasswordAuthenticationToken(
username, password);
Authentication result =
authenticationManager.authenticate(request);
SecurityContextHolder.getContext().setAuthentication(result);
} catch (AuthenticationException e) {
log.info("Authentication failed: " + e.getMessage());
return false;
}
log.info("Authentication success: " +
SecurityContextHolder.getContext()
.getAuthentication());
return true;
}

... where authenticationManager is injected by Spring. To show you
exactly where I am getting authenticationManager from, here's my
context configuration:








I am still undecided whether it is right to have two logins,
1. The initial login (traditional web login that moves me from /
home.html --> /login.html -->(login success)--> /admin.html)
2. A secondary login that happens over RPC that provides a quick,
convenient login via an Ajax popup, such that it doesn't interrupt
your workflow

The second is exactly what I wanted all along! Is the first redundant?
Or is it just as well to have it. i.e. 1. protects your web app code
(well the host page), 2. protects the good bits (RPC calls!!!)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: tomcat and apache problem

2010-02-19 Thread Chris Lercher
I'd take a look at this:
http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxytimeout

Or you add parameters to your ProxyPass directive
http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypass



On Feb 19, 3:17 pm, Fran  wrote:
> After some tests I can to confirm that the delay between Comet events
> are constant.
>
> Seems that Apache apply a timeout when conects to tomcat by Proxypass
>
> Anyone know it?
>
> On 19 feb, 02:04, Fran  wrote:
>
>
>
> > anyone know the problem? please
>
> > On 18 feb, 00:41, Fran  wrote:
>
> > > I use Comet that its Long polling.
> > > I think that the problem is a timeout that is applied by tomcat when
> > > apache conect the proxy to the tomcat.
>
> > > If I execute the aplication directly in tomcat. Its works fine.
> > > If I execute the aplication in apache and a proxypass to servlet, the
> > > aplication has a timeout between comet events that I dont understand.
>
> > > You can test it:
>
> > > Aplication in tomcat 
> > > directly:http://california.lirondo.com:8081/msn/Messenger.html
> > > ---> It works very good (is needed to use diferents navegators for
> > > conect diferent users)
> > > Aplication in apache:http://california.lirondo.com/msn/Messenger.html
> > > --> If you are patient, you can test that works fine but is s slow
>
> > > Help please, thanks!
>
> > > On 17 feb, 23:46, Chris Lercher  wrote:
>
> > > > Hi,
>
> > > > I don't have an Apache+Tomcat setup, so I can only guess what may be
> > > > happening: There are two basic ways to do Comet.
>
> > > > - Streaming (for one request, the server sends a few bytes, then later
> > > > some more etc.)
> > > > - Long polling (for one request, the server sends zero bytes
> > > > initially, and just waits until it can send anything. When the client
> > > > receives that response, it creates a new request.)
>
> > > > Streaming is known not to work reliably, especially with proxies
> > > > (unfortunately). Long polling also only works reliably, if you don't
> > > > wait too long with your response.
>
> > > > Even if you manage to set up your apache in a way that it works, you
> > > > probably can't control how additional proxies etc (and also the
> > > > browser) between your server and the client behave.
>
> > > > Maybe this helps a little bit.
> > > > Chris
>
> > > > On Feb 17, 8:56 pm, Fran  wrote:
>
> > > > > anyone can help me please?
>
> > > > > On 17 feb, 00:53, Fran  wrote:
>
> > > > > > help me please
>
> > > > > > On 16 feb, 19:54, Fran  wrote:
>
> > > > > > > I am using now Proxypass for apache. The config is:
>
> > > > > > > 
> > > > > > >         ServerName california..com
> > > > > > >         ServerAdmin webmas...@localhost
> > > > > > >         DocumentRoot /var/www/
> > > > > > >         ProxyRequests On
> > > > > > >         
> > > > > > >                 Order deny,allow
> > > > > > >                 Allow from all
> > > > > > >         
> > > > > > >         ProxyPass 
> > > > > > > /app/com.apphttp://california..com:8081/app/com.app
> > > > > > >         ProxyPassReverse 
> > > > > > > /app/com.apphttp://california..com:8081/app/com.app
>
> > > > > > >         DirectoryIndex index.php
> > > > > > >         AccessFileName .htaccess
> > > > > > > 
>
> > > > > > > The aplication is a Comet chat.
> > > > > > > With this configuration, the aplication executed from apache 
> > > > > > > works but
> > > > > > > some message lost.
> > > > > > > The error log shows:
>
> > > > > > > [error] [client ] proxy: error reading status line from 
> > > > > > > remote
> > > > > > > server california..com, 
> > > > > > > referer:http://california..com/app/com.app/2179BCD97ED1043BAEE2BAA974B2E7...
> > > > > > > [error] [client ] ] proxy: Error reading from remote 
> > > > > > > server
> > > > > > > returned by /app/com.app/messenger, 
> > > > > > > referer:http://california..com/app/com.app/2179BCD97ED1043BAEE2BAA974B2E7...
>
> > > > > > > I read in some forum that is needed the lines in Location 
> > > > > > > directive of
> > > > > > > apache:
>
> > > > > > > SetEnv force-proxy-request-1.0 1
> > > > > > > SetEnv proxy-nokeepalive 1
>
> > > > > > > If I put this, the aplications is beeing more and more slowly.
>
> > > > > > > Someone can tell me a solutions please :(
>
> > > > > > > On 15 feb, 22:47, Fran  wrote:
>
> > > > > > > > Hello,
>
> > > > > > > > I need your help about GWT integration in apache and tomcat.
>
> > > > > > > > I have a GWT aplication that has server side. This server side 
> > > > > > > > is
> > > > > > > > listening in 8081 port at tomcat.
> > > > > > > > I need that the client side be in apache that is listening in 
> > > > > > > > port 80,
> > > > > > > > so I need call server side at port 8081 of tomcat.
> > > > > > > > How can I do?
>
> > > > > > > > If I run the aplication int tomcat, its works fine. But If I 
> > > > > > > > run the
> > > > > > > > aplication in apache, the server side dont work.
>
> > > > > > > > Help me please
> > 

Re: Best practices/ideas for GWT with Spring Security (or equivalent)

2010-02-19 Thread Paul S
Oops, forgot to mention, don't protect the URL that corresponds to the
RPC login service!

Like this:
   
   


On Feb 19, 5:28 pm, Paul S  wrote:
> I got some ideas from 
> Kenthttp://stackoverflow.com/questions/1013032/programmatic-use-of-spring...
> who in turn got some ideas from Spring Security 3 Technical 
> Overviewhttp://static.springsource.org/spring-security/site/docs/3.0.x/refere...
>
> I now have a set up that resembles Scenario 4.
>
> In my current set up Spring Security is still configured to respond
> with a valid html form at /login.html (with my  token hidden in it). So both page requests and XHR Ajax
> requests are subject to Spring Security's declarative set up. Whether
> I arrive at the host page and am not authenticated, or if I
> authenticate and then after my session has timed out I try to call an
> RPC service, I will be met with the /login.html contents as the
> response. Ok, so the only trick now is that in my GWT app if I get an
> InvocationException that equates to Spring Security trying to redirect
> me to the /login.html page then I simply show a nice looking GWT popup
> that looks like this:
>
>    Sorry, your session seems to have expired
>    Username: __
>    Password: __
>    Login
>
> And when the user clicks Login an RPC call to the server is shot off
> that looks a bit like this:
>
>    public interface LoginService extends RemoteService {
>       boolean login(String username, String password);
>    }
>
> Note that the boolean it returns isn't the real business here. The
> real business is that we now have an authenticated session on the
> server. The boolean returned just tells our GWT app to hide the popup
> (if true) or keep showing it and tell the user to try log in again (if
> false). That's all.
>
> On the server I then have a service implementation that performs the
> login very similarly to what Kent has done:
>
>         @Override
>         public boolean login(String username, String password) {
>
>                 log.debug("Authentication attempt: " + username + " " + 
> password);
>
>             try {
>                 Authentication request = new
> UsernamePasswordAuthenticationToken(
>                                 username, password);
>                 Authentication result =
> authenticationManager.authenticate(request);
>                 SecurityContextHolder.getContext().setAuthentication(result);
>             } catch (AuthenticationException e) {
>                 log.info("Authentication failed: " + e.getMessage());
>                 return false;
>             }
>             log.info("Authentication success: " +
> SecurityContextHolder.getContext()
>                         .getAuthentication());
>             return true;
>         }
>
> ... where authenticationManager is injected by Spring. To show you
> exactly where I am getting authenticationManager from, here's my
> context configuration:
>
>         
>                 
>                         
>                         
>                 
>         
>
> I am still undecided whether it is right to have two logins,
> 1. The initial login (traditional web login that moves me from /
> home.html --> /login.html -->(login success)--> /admin.html)
> 2. A secondary login that happens over RPC that provides a quick,
> convenient login via an Ajax popup, such that it doesn't interrupt
> your workflow
>
> The second is exactly what I wanted all along! Is the first redundant?
> Or is it just as well to have it. i.e. 1. protects your web app code
> (well the host page), 2. protects the good bits (RPC calls!!!)

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



Cross site issue

2010-02-19 Thread ramesh chiluveri
Hai all,

I enabled cross site by adding  in my
module.gwt.xml

but the issue.it is not invoking RPC calls.

Can anyone suggest on this.

Thanks
Ramesh

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



Re: Is there a best practice for compiling multiple modules?

2010-02-19 Thread DaveC
The only thing I could suggest is outlined here
http://code.google.com/webtoolkit/doc/latest/FAQ_DebuggingAndCompiling.html#Can_I_speed_up_the_GWT_compiler?
(but you've probably already looked at this...)

Sorry I can't be more help - it has got me thinking though, where I
work will probably run into the same problem in the (near) future.

Cheers,
Dave

On Feb 19, 12:47 am, JimmyJoe  wrote:
> I appear to be in a rare situation with regard to GWT use:  my team
> has dozens of independent GWT modules and our compile times are rising
> as we add more modules.
>
> A couple years back the company I work for decided to switch to GWT
> for new product development.  We have a SaaS portal that has dozens of
> legacy applications written in JSPs, so this was a big change for
> us.
>
> Now that we do all new development in GWT, we are developing all new
> products as separate modules, each of which is hosted in its own JSP
> (to take advantage of all our legacy code there, punt on some
> development costs, etc.).  They fit in with our existing code very
> well.
>
> Long story short, we now find ourselves with upwards of 20 modules and
> climbing, and our complete build times are getting extraordinarily
> long.
>
> Here's a little more info:
>
> Many of our modules are built on a common framework which is its own
> module sans entrypoint.  Often a module will consist of a single page
> of functionality distinct from other features in our product suite --
> for instance setting org preferences, searching for emails, etc.  Some
> of the modules could be combined, such as "administration" modules; my
> concern with that approach is that we're still using GWT 1.7 and don't
> have code splitting to keep our performance numbers good if we go that
> direction.
>
> Regardless of that special case, however, we will eventually have
> dozens of large(-ish?), complex GWT modules that need to be regularly
> compile.  Even with Ant's  and GWT's localWorkers we are
> already seeing significantly extended compile times.
>
> Our current approach for single product development is to comment out
> all the modules that are not under development (Google's own best
> practice, as far as I have heard), and we are using development mode
> extensively, which obviously removes the need to compile the GWT code
> often.  We also do no internationalization or localization.
>
> What are your thoughts?  Is there a good way to manage a large number
> of modules and keep compile times down?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: Best Practices for MVP with Composite Template View ( Header + Content + Nav + Footer) + UiBinder

2010-02-19 Thread digitalsam007
Hi Prashant,

I did try to follow your instructions and added styles to my content
container. I replaced the old view with a . but
unfortunately, I cant see the content update on screen. Only the
Header and footer are displayed.

In the appController class, inside the valueChanged method, I added
the code like this -

@Override
public void onValueChange(ValueChangeEvent event) {

String token = event.getValue();

if (token != null) {
Presenter presenter = null;
HasWidgets outer = this.container;

if (token.equals("main")) {

if (wrapper == null) {
wrapper = new WrapperView();
ContainerSegment.HEADER = 
wrapper.getHeaderContainer();
ContainerSegment.CONTENT = 
wrapper.getContentContainer();
ContainerSegment.FOOTER = 
wrapper.getFooterContainer();

new WrapperPresenter(new 
WrapperView()).go(container);
System.out.println("Initial Screen 
Created!!!");
}

presenter = new SearchPresenter(eventBus, new 
SearchView());
outer = wrapper.getContentContainer();

}

if (presenter != null) {
presenter.go(outer);
System.out
.println("Content Area is going 
to refresh with search Widget");
}
}

}

I verified that the correct go method is being called. Also, the outer
container actually contains the Content panel  and also the
actual SearchView content is getting added to the container.

Any hint why I might not be able to get a refresh?



On Feb 19, 9:39 am, Prashant Hegde  wrote:
> I am using a similar strategy and it works just fine. I suspect it may
> be a problem with your DockLayoutPanel sizing. Please check if the sizes
> are 100%, also give the panel a border for debugging to see how your
> layout looks...
>
> If it helps, I have listed my UiBinder file.
>
> 
>          .layout {
>              border-width:1px;
>              border-style:solid;
>              width: 100%;
>              height: 100%;
>
>          }
>
>          .mainlayout {
>              width: 100%;
>              height: 100%;
>              position:relative;
>              top:2em;
>              left: 2em;
>          }
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> -- Prashant
>
> On 19-02-2010 09:50, digitalsam007 wrote:
>
> > Hello,
>
> > I have been trying to implement the MVP pattern in my new GWT app. I
> > have followed the Contacts example app and it seems to be quite
> > straightforward. In there, the controller passes the root
> > panel(container) to every presenter in its go method. And these
> > presenters add the respective view(Display) to the container.
>
> > However, in my case I have to use a template with Header, footer,
> > Navigation and Content. Something quite similar to the Mail sample app
> > found in the GWT SDK. I tried to create a wrapper view class and its
> > corresponding Presenter and included all the 4 diffrent views viz
> > header, footer, nav and content in it ( WrapperView.ui.xml).
>
> > I provided extra methods in the WrapperView that can return HasWidgets
> > for each of the segments in the page like this -
>
> > HasWidgets getHeaderContainer()
> > HasWidgets getContentContainer()
> > HasWidgets getFooterContainer()
> > HasWidgets getNavContainer()
>
> > In the WrapperView.ui.xml , i added a dockLayoutPanel which inturn
> > contains each of these containers ( each container elemensta re in
> > turn SimplePanel components which contains the actual widgets for
> > Header, footer...etc)
>
> > 
> >            
> >                    
> >            
> >            
> >                    
> >            
> >            
> >                    
> >            
> > 
>
> > So, the first time when the module loads and the AppController.go
> > method is invoked I trigget the history with a new tocket eg Home.
> > This invokes the valueChanged method and in that I create the
> > WrapperView (if not already created; yes i maintain a reference to
> > this object in AppController) and present it on screen. Then, I call
> > the views getContentContainer method and try to add the content
> > directly to that in another presenter. I do not pass the topmost
> > container this time.
>
> > Logically it should work and the content area must be refreshed with
> > the respective Views when diffrent presenter presents it. But
> > unfortunately I cannot achieve what I want to yet. So, could anyone of
> > you provide me with some ideas or m

GWT + Google Sites API

2010-02-19 Thread Pedro Camelo
I just begun learning GWT and I'm been wondering if it's possible to
get GWT + Google Sites API working together.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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 Developer Plugin for Safari 4.0.4!

2010-02-19 Thread Babgali
Can any one please help me out on getting "GWT Developer Plugin for
Safari 4.0.4" to read MIME type "application/x-gwt-hosted-mode".

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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 a Jersey Client in a GWT Server Impl Class

2010-02-19 Thread bk
I am new to GWT, and I am trying to string up a simple app. I have a
small Jersey client to consume a rest interface [1]. In order to avoid
the cross scripting issue, I planned to put this client into the GWT
server, and expose the functionality to GWT over GWT-RPC. If I run
this client stand alone, it works. If I run this in the GWT app via
eclipse (which also uses Jersey I think) I get the error

Caused by: com.sun.jersey.api.client.ClientHandlerException: A message
body reader for Java type, interface java.util.List, and MIME media
type, application/json, was not found
at
com.sun.jersey.api.client.ClientResponse.getEntity(ClientResponse.java:
526)
at
com.sun.jersey.api.client.ClientResponse.getEntity(ClientResponse.java:
508)
at com.sun.jersey.api.client.WebResource.handle(WebResource.java:572)
at com.sun.jersey.api.client.WebResource.get(WebResource.java:183)
at
org.candlepin.client.CandlepinClient.getProducts(CandlepinClient.java:
30)
at
org.candlepin.pinsetter.server.CandlepinServiceImpl.getProducts(CandlepinServiceImpl.java:
16)
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.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
562)

Which leads me to believe the ContextResolver is getting overwritten.
Has anyone gotten a jersey client to work in the server sdie of GWT?

-- bk
[1] http://www.pastie.org/832659

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



Slider Panel like in maps?

2010-02-19 Thread Panam
I really love the "slider panel" that is used with Google maps. Is
this (or a very similar) widget somehow available for GWT? Thanks

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



How to determine frame size?

2010-02-19 Thread Panam
Is it somehow possible to determine the size of a frame? I'd like a
widget (a canvas) to occupy all space that is available in a frame
without the need to scroll... Thanks

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



Re: Problem with GWT 2.0 Chrome developer plugin

2010-02-19 Thread Smiley
Same here..:( is there any solution for this problem? i really like
the "speed" of my gwt application on the Chrome browser..but now i
can't test on Chrome anymore. this is a major problem for me...
any suggestions?

On Feb 3, 6:02 pm, Steve Lancey  wrote:
> Same here
>
> On Jan 19, 3:05 pm, Isac  wrote:
>
>
>
> > Hi, I have recently updated the GWT SDK from 1.5.3 to 2.0.0 on a
> > project. I managed to fix all issues but one.
> > I can't use the development mode withchrome. The login page of my
> > application loads perfectly but when I try to log in (i.e. make an
> > RPC) I get the following error:
> > 
> > com.google.gwt.core.client.JavaScriptException: (Error): Error
> > calling
> > method on NPObject! stack: Error: Error calling method on NPObject!
> > at
> > eval at eval (native v8natives.js:132:1) at unknown source at
> > __gwt_jsInvoke (http://grapple:8087/hosted.html:70:35) at Array.0
> > (eval at eval (native
> > v8natives.js:132:1)) at Object. (unknown source) at __gwt_jsInvoke
> > (http://grapple:8087/hosted.html?:70:35) at
> > Array.1 (eval at eval (native v8natives.js:132:1)) at Object.
> > (unknown
> > source) at __gwt_jsInvoke (http://grapple:8087/hosted.html:70:35) at
> > Array.1 (eval at eval (native
> > v8natives.js:132:1)) __gwt_ObjectId: 2835 at
> > com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript
> > (BrowserChannelServer.java:195) at
> > com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke
> > (ModuleSpaceOOPHM.java:120) at
> > com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
> > 507) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid
> > (ModuleSpace.java:284) at
> > com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid
> > (JavaScriptHost.java:107) at
> > com.google.gwt.user.client.rpc.impl.SerializerBase$MethodMap
> > $.deserialize$(SerializerBase.java) at
> > com.google.gwt.user.client.rpc.impl.SerializerBase.deserialize
> > (SerializerBase.java:124) at
> > com.google.gwt.user.client.rpc.impl.ClientSerializationStreamReader.deseria
> > lize
> > (ClientSerializationStreamReader.java:116) at
> > com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readO
> > bject
> > (AbstractSerializationStreamReader.java:61) at
> > com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter
> > $ResponseReader$8.read(RequestCallbackAdapter.java:104) at
> > com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceiv
> > ed
> > (RequestCallbackAdapter.java:197) at
> > com.google.gwt.http.client.Request.fireOnResponseReceived
> > (Request.java:
> > 287) at com.google.gwt.http.client.RequestBuilder
> > $1.onReadyStateChange
> > (RequestBuilder.java:396) 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.MethodDispatch.invoke
> > (MethodDispatch.java:
> > 71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke
> > (OophmSessionHandler.java:157) at
> > com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForRetur
> > n
> > (BrowserChannel.java:1713) at
> > com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript
> > (BrowserChannelServer.java:165) at
> > com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke
> > (ModuleSpaceOOPHM.java:120) at
> > com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
> > 507) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject
> > (ModuleSpace.java:264) at
> > com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject
> > (JavaScriptHost.java:91) at
> > com.google.gwt.core.client.impl.Impl.apply
> > (Impl.java) at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:
> > 188) at sun.reflect.GeneratedMethodAccessor231.invoke(Unknown Source)
> > at sun.reflect.DelegatingMethodAccessorImpl.invoke
> > (DelegatingMethodAccessorImpl.java:25) at
> > java.lang.reflect.Method.invoke(Method.java:597) at
> > com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
> > at com.google.gwt.dev.shell.MethodDispatch.invoke
> > (MethodDispatch.java:
> > 71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke
> > (OophmSessionHandler.java:157) at
> > com.google.gwt.dev.shell.BrowserChannel.reactToMessages
> > (BrowserChannel.java:1668) at
> > com.google.gwt.dev.shell.BrowserChannelServer.processConnection
> > (BrowserChannelServer.java:401) at
> > com.google.gwt.dev.shell.BrowserChannelServer.run
> > (BrowserChannelServer.java:222) at java.lang.Thread.run(Thread.java:
> > 619)
> > 
> > I am usingChrome4.0.295.0 andDeveloperplugin1.0.7263.
> > The Development mode works fine on FF and IE.
> > Do you have any idea of what is going on?
> > Thank you.

-- 
You received this message because you are subscr

Re: Problem with GWT 2.0 Chrome developer plugin

2010-02-19 Thread Smiley
i'm having the same problem :( is there any solution for this issue? i
really like the "speed" of my gwt application on Chrome, but now i
can't test on Chrome anymore..this is a major problem for me...
any help would be appreciated .

On Feb 3, 6:02 pm, Steve Lancey  wrote:
> Same here
>
> On Jan 19, 3:05 pm, Isac  wrote:
>
>
>
> > Hi, I have recently updated the GWT SDK from 1.5.3 to 2.0.0 on a
> > project. I managed to fix all issues but one.
> > I can't use the development mode withchrome. The login page of my
> > application loads perfectly but when I try to log in (i.e. make an
> > RPC) I get the following error:
> > 
> > com.google.gwt.core.client.JavaScriptException: (Error): Error
> > calling
> > method on NPObject! stack: Error: Error calling method on NPObject!
> > at
> > eval at eval (native v8natives.js:132:1) at unknown source at
> > __gwt_jsInvoke (http://grapple:8087/hosted.html:70:35) at Array.0
> > (eval at eval (native
> > v8natives.js:132:1)) at Object. (unknown source) at __gwt_jsInvoke
> > (http://grapple:8087/hosted.html?:70:35) at
> > Array.1 (eval at eval (native v8natives.js:132:1)) at Object.
> > (unknown
> > source) at __gwt_jsInvoke (http://grapple:8087/hosted.html:70:35) at
> > Array.1 (eval at eval (native
> > v8natives.js:132:1)) __gwt_ObjectId: 2835 at
> > com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript
> > (BrowserChannelServer.java:195) at
> > com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke
> > (ModuleSpaceOOPHM.java:120) at
> > com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
> > 507) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid
> > (ModuleSpace.java:284) at
> > com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid
> > (JavaScriptHost.java:107) at
> > com.google.gwt.user.client.rpc.impl.SerializerBase$MethodMap
> > $.deserialize$(SerializerBase.java) at
> > com.google.gwt.user.client.rpc.impl.SerializerBase.deserialize
> > (SerializerBase.java:124) at
> > com.google.gwt.user.client.rpc.impl.ClientSerializationStreamReader.deseria
> > lize
> > (ClientSerializationStreamReader.java:116) at
> > com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readO
> > bject
> > (AbstractSerializationStreamReader.java:61) at
> > com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter
> > $ResponseReader$8.read(RequestCallbackAdapter.java:104) at
> > com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceiv
> > ed
> > (RequestCallbackAdapter.java:197) at
> > com.google.gwt.http.client.Request.fireOnResponseReceived
> > (Request.java:
> > 287) at com.google.gwt.http.client.RequestBuilder
> > $1.onReadyStateChange
> > (RequestBuilder.java:396) 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.MethodDispatch.invoke
> > (MethodDispatch.java:
> > 71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke
> > (OophmSessionHandler.java:157) at
> > com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForRetur
> > n
> > (BrowserChannel.java:1713) at
> > com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript
> > (BrowserChannelServer.java:165) at
> > com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke
> > (ModuleSpaceOOPHM.java:120) at
> > com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
> > 507) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject
> > (ModuleSpace.java:264) at
> > com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject
> > (JavaScriptHost.java:91) at
> > com.google.gwt.core.client.impl.Impl.apply
> > (Impl.java) at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:
> > 188) at sun.reflect.GeneratedMethodAccessor231.invoke(Unknown Source)
> > at sun.reflect.DelegatingMethodAccessorImpl.invoke
> > (DelegatingMethodAccessorImpl.java:25) at
> > java.lang.reflect.Method.invoke(Method.java:597) at
> > com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
> > at com.google.gwt.dev.shell.MethodDispatch.invoke
> > (MethodDispatch.java:
> > 71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke
> > (OophmSessionHandler.java:157) at
> > com.google.gwt.dev.shell.BrowserChannel.reactToMessages
> > (BrowserChannel.java:1668) at
> > com.google.gwt.dev.shell.BrowserChannelServer.processConnection
> > (BrowserChannelServer.java:401) at
> > com.google.gwt.dev.shell.BrowserChannelServer.run
> > (BrowserChannelServer.java:222) at java.lang.Thread.run(Thread.java:
> > 619)
> > 
> > I am usingChrome4.0.295.0 andDeveloperplugin1.0.7263.
> > The Development mode works fine on FF and IE.
> > Do you have any idea of what is going on?
> > Thank you.

-- 
You received this message beca

Re: Parameter 0 of is of an unknown type 'java.lang.String/2004016611'

2010-02-19 Thread gazarcher
Thanks for the reply.

I only had GWT 2.0.2 in my classpath when I got the error (which,
incidentally, is caused when a callback throws an exception and the
callback's onFailure() method is called.  The actual exception thrown
is a com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException
during a com.google.gwt.user.server.rpc.RPC.decodeRequest).

I am having no problems with GWT 1.7.1 using the same codebase in my
project (i.e., my code hasn't changed and I'm confident it is nothing
I did in my code to cause the error).

Before I dare try GWT 2.0.x again, I need to see some response that
this error has been fixed (by the GWT team).

- Garry


On Feb 19, 3:44 am, Flemming Boller  wrote:
> I had the same error , but it was because I had a mix of GWT 2 and GWT 1.7
> jarfiles on my running classpath. (also using Intellij)
>
> Br
> Flemming
>
> On Thu, Feb 18, 2010 at 11:47 PM, gazarcher  wrote:
> > Up until this week I was using IntelliJ IDEA 9.0 with GWT 1.7.1 on Mac
> > OS X 10.5 and decided to upgrade to GWT 2.0.2 per the instructions on
> > the GWT Website, including installing the GWT plugin into Firefox.
>
> > After recompiling and running my application with several GWT modules
> > and running in Firefox 3.5.7, Firefox 3.6 and Safari 4.0.3, the GWT
> > modules all give the same error:
>
> >    Parameter 0 of is of an unknown type 'java.lang.String/2004016611'
>
> > but even before that GWT spewed "ERROR: Failed to parse the policy
> > file " for each module.
>
> > I've cleaned out output folders/directories in IntelliJ, deleted
> > caches for IntelliJ and Firefox, and tried again, but with the same
> > result.  Nothing has changed in my code.
>
> > I cleared out output folders/directories in IntelliJ, deleted caches
> > for IntelliJ and Firefox again and uninstalled GWT 2.0.2 from my
> > IntelliJ project, reinstalled GWT 1.7.1, compiled and every thing ran
> > fine again.
>
> > I've looked around the discussion groups and other people appear to be
> > having the same problem with GWT 2.0.x.. so even though GWT 2.0 has
> > gone through beta, early access, etc., and has now gone up two more
> > versions, this is still an issue, and not just for me.  I understand
> > the GWT version 1.0.7511 plugin for Firefox also has an issue for some
> > folks.  I don't know if it is this causing the problem.
>
> > Is anybody actually working with GWT 2.0 in their projects?  If so, is
> > there a workaround for this issue if they hit the same problem?
>
> > Is anyone on the GWT team aware of this issue and working on it?
>
> > At the moment, GWT 2.0.x is unusable for me and trying to use it is
> > holding up my work.  I'm going back to GWT 1.7.1 until I find a
> > solution (or you do!).
>
> > Any help on this matter is *greatly* appreciated.
>
> > Cheers,
> > - Garry
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

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



No startup URLs were supplied -- add them to the end of the GWTShell command line

2010-02-19 Thread tmcconechy
I have the Eclipse plugin installed and I created my project using gwt-
maven-plugin, then added the "use Google Web Toolit to the project. It
all works fine except for when starting in dev mode i get the
following error:


Starting HTTP on port 
[WARN] No startup URLs were supplied -- add them to the end of the
GWTShell command line

After that i cannot see the url on the dev mode screen. What do i need
to change to get this to work properly?

Thanks!
Tim

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



The "-implicit" argument of javac for JDK 6

2010-02-19 Thread Gabriel Forro
Hello everybody,

we have found a hard to track problem, which can happen to You also if
You use JDK 6 to compile your classes in GWT. The problem has been
caused our unawareness of the mechanism how JDK 6 javac compiler
searches for types during compilation (http://java.sun.com/javase/6/
docs/technotes/tools/windows/javac.html#searching).
If the javac founds a source file for a referenced type, which has a
newer timestamp as the found class, then it will compile that source
file also. This is the default behavior of javac.
An example:
The GWT's gwt-user.jar library contains both source files and class
files for javax.servlet.* types. If there is a standard servlet.jar in
the classpath of the javac during compilation and the servlet.jar is
placed before the gwt-user.jar in the classpath, then the javac will
compile the referenced javax.servlet.* types to your application also!
javax.* types should not be part of your application and they can
cause application fail (for example ClassCastException, when the
servlets of your application are loaded).
Similar problem can happen, when You override some types (because you
want to use them in GWT client) and You do not use the super-source
functionality of gwt module definition, which enables to place your
custom types in a different package as their original overridden
mates.

Fortunately the mentioned javac functionality can be switched out
through the "-implicit:none" javac argument (see
http://java.sun.com/javase/6/docs/technotes/tools/windows/javac.html).
According to our experience I recommend to use this argument in your
GWT projects, when your classes are compiled by javac. Also I
recommend to use the super-source functionality in your gwt module
definition, if You need to override some types.

Have a nice day,

Gabriel

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



Problem with gwt 2.0.2

2010-02-19 Thread glascaleia
Hi all,
i have a problem with gwt 2.0.2. I downloaded the zip and i created a
maven project with the dependencies from gwt-user , gwt-dev and gwt-
servlet

This is part of my pom.xml


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


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


com.google.gwt
gwt-dev
${gwtVersion}
${platform}-libs
zip
provided


com.google.gwt
gwt-dev
${gwtVersion}
${platform}
provided

In the gwt-2.0.2.zip i have not found the gwt-dev library for mac
platform and with mvn clean install i have the error because not found
gwt-dev mac library .zip
Any help???
Regards Giuseppe

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



RPC call to return List

2010-02-19 Thread BimboJones
Hi,

I'm trying to return a List through an rpc call,

   public List getUserFileList(String id) {
return new Funcs().getUserFileList(id);
}

getUserFileList(id) returns a List but i get a
SerializationException that the Finfo class isn't included in the
Serialization Policy, i have similar code that was working in previous
version of gwt.


Thanks for any help

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



Re: Unable to Use GWT Developer Plugin with Firefox 3.6

2010-02-19 Thread Arturas
Hi All,

The same issue as anybody reported. I am running 64bit debian lenny,
(2.6.30.5.2.pm64-smp) with Mozilla Iceweasel 3.5.5. I have installed
the plugin, and tried to debug a gwt project. Once it gets to the
browser, the browser complains that the addon is not installed.

My solution was to installed a debootstrapped ubuntu karmic 32bit on
top of debian (cf. https://wiki.ubuntu.com/DebootstrapChroot) with
32bit firefox in it, and use the firefox 32bit version to run and
debug gwt applications. That worked perfectly ok.

I would not recommend installing debian lenny 32bit version, since by
default firefox is of version 3.0.x. This version was too early for
gwt addon.

Thanks,
arturas

On Feb 9, 12:41 pm, vali  wrote:
> Hello!
>
> I've got the same problem. I can install the plugin in firefox 3.6 but
> when i want to use it, i just get a message that i need the plugin (as
> if it wasnt installed yet).
> Works with FF3.6 in windows tho'
> Using 3.5.7 until the bug is fixed... Unfortunately i didnt find many
> people complaining about that, so i hope this will be fixed at all.
>
> im using arch linux w/ 2.6.32 under gnome btw.
> greets
> vali
>
> On 8 Feb., 13:55, makoki  wrote:
>
> > We've got a similar problem under mac. The app that before the plugin
> > update worked fine now has some problems with DateBox instances, other
> > browsers plugins seems fine, the application runs fine if compiled and
> > seen through any browser including FF without plugin, it gets the same
> > problems if try the compiled app with a FF browser with the plugin.
> > Oh, we're using FF 3.6 and GWT 2.0
>
> > On 3 feb, 14:21, kolstae  wrote:
>
> > > I have the exact sameproblem.
>
> > > On Feb 2, 4:53 pm, Thad  wrote:
>
> > > > Yes.  This has been observed and commented on.  I've been 
> > > > usingFirefox3.5.7 (on Linux) because of this.
>
> > > > This morning I was alerted to an update to the GWTplugin, and
> > > > installed it (v.1.0.7511).  However it still does not work 
> > > > withFirefox3.6.  When I try using it,Firefox3.6just asks for,
> > > > downloads, and installs thepluginover and over again.
>
> > > > On Jan 30, 2:39 am, akhil  wrote:
>
> > > > > Dear Team,
>
> > > > > i m using GWT 2.0 with MyEclips6.0, i created an sample project with
> > > > > GWT but when i compile and goto browse (FireFox3.6) that it is asking
> > > > > that apluginis required , as per give link i download theplugin
> > > > > also, but it's showing error that it is not compatible withFireFox3.6
>
> > > > > wating for Help
>
> > > > > regards
> > > > > Akhil

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: Error loading module " No source code is available for com.google.gdata.util.AuthenticationException; did you forget to inherit a required module" in GWT after using gdata-java-client and appeng

2010-02-19 Thread Shyam Visamsetty
Can anyone help me with this error? TIA

-Shyam.

On Feb 19, 12:56 am, Shyam Visamsetty 
wrote:
> Hi All,
>
> I am getting an error while running in development mode in GWT 2.0 and
> also AppEngine. I add the external library "gdata-java-client'
>
> Using Eclipse IDE.
>
> Error is:
> "No source code is available for
> com.google.gdata.util.AuthenticationException; did you forget to
> inherit a required module"
>
> Another error is "The import com.google.appengine cannot be resolved"
>
> Could you kindly provide suggestions on how to overcome them. What is
> the module to be inherited. Why is AppEngine not resolving.
>
> I  am a newbie and would appreciate any help. TIA.
>
> Thanks,
> Shyam.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: Best Practices for MVP with Composite Template View ( Header + Content + Nav + Footer) + UiBinder

2010-02-19 Thread digitalsam007
I forgot to mention that when I try to add the Search View into the
main root container instead of the content container like this -- it
works in that case but my header and footer will now be gone...

  if (presenter != null) {
 presenter.go(this.container); // adding to the Root panel
  }

I guess there's something wrong with retrieving the Contnet Container.
But when I try to print it , it shows the correct Div html stuffs etc.

Can we not update only a part of a widget/panel???


On Feb 19, 7:50 pm, digitalsam007  wrote:
> Hi Prashant,
>
> I did try to follow your instructions and added styles to my content
> container. I replaced the old view with a . but
> unfortunately, I cant see the content update on screen. Only the
> Header and footer are displayed.
>
> In the appController class, inside the valueChanged method, I added
> the code like this -
>
>         @Override
>         public void onValueChange(ValueChangeEvent event) {
>
>                 String token = event.getValue();
>
>                 if (token != null) {
>                         Presenter presenter = null;
>                         HasWidgets outer = this.container;
>
>                         if (token.equals("main")) {
>
>                                 if (wrapper == null) {
>                                         wrapper = new WrapperView();
>                                         ContainerSegment.HEADER = 
> wrapper.getHeaderContainer();
>                                         ContainerSegment.CONTENT = 
> wrapper.getContentContainer();
>                                         ContainerSegment.FOOTER = 
> wrapper.getFooterContainer();
>
>                                         new WrapperPresenter(new 
> WrapperView()).go(container);
>                                         System.out.println("Initial Screen 
> Created!!!");
>                                 }
>
>                                 presenter = new SearchPresenter(eventBus, new 
> SearchView());
>                                 outer = wrapper.getContentContainer();
>
>                         }
>
>                         if (presenter != null) {
>                                 presenter.go(outer);
>                                 System.out
>                                                 .println("Content Area is 
> going to refresh with search Widget");
>                         }
>                 }
>
>         }
>
> I verified that the correct go method is being called. Also, the outer
> container actually contains the Content panel  and also the
> actual SearchView content is getting added to the container.
>
> Any hint why I might not be able to get a refresh?
>
> On Feb 19, 9:39 am, Prashant Hegde  wrote:
>
> > I am using a similar strategy and it works just fine. I suspect it may
> > be a problem with your DockLayoutPanel sizing. Please check if the sizes
> > are 100%, also give the panel a border for debugging to see how your
> > layout looks...
>
> > If it helps, I have listed my UiBinder file.
>
> > 
> >          .layout {
> >              border-width:1px;
> >              border-style:solid;
> >              width: 100%;
> >              height: 100%;
>
> >          }
>
> >          .mainlayout {
> >              width: 100%;
> >              height: 100%;
> >              position:relative;
> >              top:2em;
> >              left: 2em;
> >          }
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
>
> > -- Prashant
>
> > On 19-02-2010 09:50, digitalsam007 wrote:
>
> > > Hello,
>
> > > I have been trying to implement the MVP pattern in my new GWT app. I
> > > have followed the Contacts example app and it seems to be quite
> > > straightforward. In there, the controller passes the root
> > > panel(container) to every presenter in its go method. And these
> > > presenters add the respective view(Display) to the container.
>
> > > However, in my case I have to use a template with Header, footer,
> > > Navigation and Content. Something quite similar to the Mail sample app
> > > found in the GWT SDK. I tried to create a wrapper view class and its
> > > corresponding Presenter and included all the 4 diffrent views viz
> > > header, footer, nav and content in it ( WrapperView.ui.xml).
>
> > > I provided extra methods in the WrapperView that can return HasWidgets
> > > for each of the segments in the page like this -
>
> > > HasWidgets getHeaderContainer()
> > > HasWidgets getContentContainer()
> > > HasWidgets getFooterContainer()
> > > HasWidgets getNavContainer()
>
> > > In the WrapperView.ui.xml , i added a dockLayoutPanel which inturn
> > > contains each of these containers ( each container elemensta re in
> > > turn SimplePanel components which contains the actual widgets for
> > > Header, footer...etc)
>
> > > 
> > >            
> > >                    
> > >            
> > >            
> > >                     > > />
> > >            
> > >            
> > >                   

Re: Alternative for Class.isAssignableFrom() ?

2010-02-19 Thread Dominik Steiner

@Chris,

yes, thanks for the tip, I already tried that by getSuperclass() will  
not get any classes that are implemented by this class but only a  
superclass. So I would not be able to use interfaces but only extend  
from a base class to which i could also attach a listener too and that  
would be triggered if a subclass event would be fired, but that's not  
the same than having the power and flexibility of interfaces.


@Nathan,

your solution is what I tried first and my junit tests would run just  
fine with this but GWT doesn't implement the isAssignableFrom()  
method, so that's why I'm looking for some alternatives if there are?


Thanks again for your great help and perhaps there are other solutions  
out there still?


Dominik


The JRE Emulation Reference says, that getSuperclass() is supported.
http://code.google.com/webtoolkit/doc/latest/RefJreEmulation.html
Maybe you can make do with this?

Chris

On Feb 19, 3:58 am, Dominik Steiner 
wrote:

Hi there,

I'm trying to implement an event bus that will receive register
listeners like this

public  void registerListener(Class
eventClassname, EventListener eventListener);
(Event is a custom interface)

what i would like then to achieve would be to be able to fire an  
event


public void fireEvent(Event event);

and be able to trigger all my event listeners that either are of the
same event.getClass() or that are assignable from the event class  
that
has been fired. Getting all the listeners that correspond to the  
event

class itself is no problem, but how can i achieve getting all the
listeners that registered to a interface that the event class might
implement without being able to use Class.isAssignableFrom()?

Thanks for any hints and help in advance.

Dominik


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




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



Re: Best practices/ideas for GWT with Spring Security (or equivalent)

2010-02-19 Thread Paul S
This is very interesting 
http://seewah.blogspot.com/2009/02/gwt-and-spring-security.html
But comparing See Wah's code, and what I have it looks like mine is
less invasive. In fact I haven't had to do anything to my *ServiceImpl
classes, except to set them up for Spring. I think the key differences
are:
- See Wah uses an Exception to let the client know that you are not
authenticated
- I use a regular page redirect and have to scan for a special token


- See Wah's code allows you to have protection for your RPC calls
- My code allows you to have protection for regular URLs (e.g. /
admin.html), and RPC URLs, and method invocations

- See Wah's code requires you to authenticate yourself via an RPC call
- My code allows you to authenticate yourself via a regular /
login.html page, but then once you're in the GWT app, if your session
expires you are offered an Ajax style login (like See Wah's).

I guess I'm homing in on what I would consider to be my choice of
approach. Keep those thousands of responses coming, folks! ;)




On Feb 19, 5:32 pm, Paul S  wrote:
> Oops, forgot to mention, don't protect the URL that corresponds to the
> RPC login service!
>
> Like this:
>    
>    
>
> On Feb 19, 5:28 pm, Paul S  wrote:
>
>
>
> > I got some ideas from 
> > Kenthttp://stackoverflow.com/questions/1013032/programmatic-use-of-spring...
> > who in turn got some ideas from Spring Security 3 Technical 
> > Overviewhttp://static.springsource.org/spring-security/site/docs/3.0.x/refere...
>
> > I now have a set up that resembles Scenario 4.
>
> > In my current set up Spring Security is still configured to respond
> > with a valid html form at /login.html (with my  token hidden in it). So both page requests and XHR Ajax
> > requests are subject to Spring Security's declarative set up. Whether
> > I arrive at the host page and am not authenticated, or if I
> > authenticate and then after my session has timed out I try to call an
> > RPC service, I will be met with the /login.html contents as the
> > response. Ok, so the only trick now is that in my GWT app if I get an
> > InvocationException that equates to Spring Security trying to redirect
> > me to the /login.html page then I simply show a nice looking GWT popup
> > that looks like this:
>
> >    Sorry, your session seems to have expired
> >    Username: __
> >    Password: __
> >    Login
>
> > And when the user clicks Login an RPC call to the server is shot off
> > that looks a bit like this:
>
> >    public interface LoginService extends RemoteService {
> >       boolean login(String username, String password);
> >    }
>
> > Note that the boolean it returns isn't the real business here. The
> > real business is that we now have an authenticated session on the
> > server. The boolean returned just tells our GWT app to hide the popup
> > (if true) or keep showing it and tell the user to try log in again (if
> > false). That's all.
>
> > On the server I then have a service implementation that performs the
> > login very similarly to what Kent has done:
>
> >         @Override
> >         public boolean login(String username, String password) {
>
> >                 log.debug("Authentication attempt: " + username + " " + 
> > password);
>
> >             try {
> >                 Authentication request = new
> > UsernamePasswordAuthenticationToken(
> >                                 username, password);
> >                 Authentication result =
> > authenticationManager.authenticate(request);
> >                 
> > SecurityContextHolder.getContext().setAuthentication(result);
> >             } catch (AuthenticationException e) {
> >                 log.info("Authentication failed: " + e.getMessage());
> >                 return false;
> >             }
> >             log.info("Authentication success: " +
> > SecurityContextHolder.getContext()
> >                         .getAuthentication());
> >             return true;
> >         }
>
> > ... where authenticationManager is injected by Spring. To show you
> > exactly where I am getting authenticationManager from, here's my
> > context configuration:
>
> >         
> >                 
> >                         
> >                         
> >                 
> >         
>
> > I am still undecided whether it is right to have two logins,
> > 1. The initial login (traditional web login that moves me from /
> > home.html --> /login.html -->(login success)--> /admin.html)
> > 2. A secondary login that happens over RPC that provides a quick,
> > convenient login via an Ajax popup, such that it doesn't interrupt
> > your workflow
>
> > The second is exactly what I wanted all along! Is the first redundant?
> > Or is it just as well to have it. i.e. 1. protects your web app code
> > (well the host page), 2. protects the good bits (RPC calls!!!)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool.

Polylines above streets (a route, not linear distance)

2010-02-19 Thread Joe
Hey!
This is my first entry and I hope someone could help me...

I'm implementing a mobile application with the Goggle Web Toolkit,
which can display a route, marked by several Markers, on a Google Map.
Now I want connect the Markers with Polylines and it works fine. But
who is it possible to display the lines above the streets and not by
linear distance (air line)?
Would be great if someone could reply to my question...
Thank's a lot...
Regards
Joe

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



Re: Download, IE7 Download Blocker

2010-02-19 Thread Patrick Tucker
I know in IE8 there is a security setting that can be turned off to
remove this "feature" as they would probably call it.  Unfortunately
that will require all of your users to make sure they turn this
setting off.

What I have done to get around this is to return the URL to the user
and place it in a DialogBox in an anchor allowing the user to click it
and the browser will download it as expected.

This is unfortunately a nuance for your users but its better than the
download being blocked.

Hope that helps,
Pat

On Feb 18, 10:15 pm, Geoffrey Wiseman 
wrote:
> I have a GWT application that uses GWT-RPC to send data back and forth
> to the server.  I've got a button that downloads a PDF based on that
> data from the server.  PDF Generation works fine, and the download
> worked fine using Window.open().
>
> However, as it stood, the download would not include any data that had
> been changed on-screen; but if I add a GWT-RPC call before the
> download, then IE7 blocks the download because it decides that the
> download is not the direct result of user action (I guess because the
> Window.open happens after the async 'save my data' call).
>
> I've tried some other suggestions in the group's archive for iframes
> and the like, but all of these are also blocked by the download
> blocker.  Has anyone run into this and found a solution that they're
> happy with?  Sadly, IE7 is the target browser for this client, so it's
> a bit of an issue for me.

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



libstdc++.so.5 error

2010-02-19 Thread DD
I am trying to run a GWT application with the hosted mode in Eclipse
(In Ubuntu) but I am getting the following errors when attempting to
it. Please look at it and give me a suggestion how to overcome it.


** Unable to load Mozilla for hosted mode **
java.lang.UnsatisfiedLinkError: /home/zaloni/Dhiraj/GWT/gwt-
linux-1.7.0/mozilla-1.7.12/libxpcom.so: libstdc++.so.5: cannot open
shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1778)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1674)
at java.lang.Runtime.load0(Runtime.java:770)
at java.lang.System.load(System.java:1003)
at
com.google.gwt.dev.shell.moz.MozillaInstall.load(MozillaInstall.java:
190)
at
com.google.gwt.dev.BootStrapPlatform.initHostedMode(BootStrapPlatform.java:
53)
at com.google.gwt.dev.HostedModeBase.(HostedModeBase.java:362)
at com.google.gwt.dev.SwtHostedModeBase.(SwtHostedModeBase.java:
98)
at com.google.gwt.dev.HostedMode.(HostedMode.java:271)
at com.google.gwt.dev.HostedMode.main(HostedMode.java:230)

When I checked my system I have found libstdc++6 installed in my
system, so I tried to install the libstdc++5 by using the following
command

   apt-get install libstdc++5

But then I found the following problem

   r...@zaloni-desktop:/home/zaloni# apt-get install libstdc++5
  Reading package lists... Done
  Building dependency tree
  Reading state information... Done
  Package libstdc++5 is not available, but is referred to by
another package.
  This may mean that the package is missing, has been obsoleted,
or
  is only available from another source
  E: Package libstdc++5 has no installation candidate
   r...@zaloni-desktop:/home/zaloni#

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: No startup URLs were supplied -- add them to the end of the GWTShell command line

2010-02-19 Thread javajim
GWT is just telling out that it can't figure out a way to start your
application.  Maybe you don't have any JSP or HTML files in the root
of your war - you might be hiding these under WEB-INF.

There is a program arguement called "startupUrl" which you can use to
assign the initial URL of your application.  Think of this as the
equivalent of the welcome page that you specify in web.xml.

To assign this option in Eclipse specify the following from the top
level menu

   Run -> Run Conifgurations

Then select the run configuration under the "Web Application" type.
It will be named the same as your project.

Then select the "arguments" tab and enter something like the following
in the "Program arguments" area:

  -startupUrl 

where "nnn" is the name of your welcome page resource (typically a
servlet name)

All this does is get Eclipse to list this when you start the
application.  You can also just bookmark this link in your browser and
not bother to set it in Eclipse.  As far as I know, Eclipse doesn't
start the browser automatically. Although there may be a way to do
that.

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



Re: Problem with gwt 2.0.2

2010-02-19 Thread Trevor Skaife
Starting with gwt 2.0.0 there are no os specific jars.

On Feb 19, 5:27 am, glascaleia  wrote:
> Hi all,
> i have a problem with gwt 2.0.2. I downloaded the zip and i created a
> maven project with the dependencies from gwt-user , gwt-dev and gwt-
> servlet
>
> This is part of my pom.xml
> 
>                 
>                         com.google.gwt
>                         gwt-servlet
>                         ${gwtVersion}
>                         runtime
>                 
>                 
>                         com.google.gwt
>                         gwt-user
>                         ${gwtVersion}
>                         provided
>                 
>                 
>                         com.google.gwt
>                         gwt-dev
>                         ${gwtVersion}
>                         ${platform}-libs
>                         zip
>                         provided
>                 
>                 
>                         com.google.gwt
>                         gwt-dev
>                         ${gwtVersion}
>                         ${platform}
>                         provided
>                 
> In the gwt-2.0.2.zip i have not found the gwt-dev library for mac
> platform and with mvn clean install i have the error because not found
> gwt-dev mac library .zip
> Any help???
> Regards Giuseppe

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



Re: RPC call to return List

2010-02-19 Thread javajim
You have to make sure that the GWT compiler can get access to the
"Finfo" class.

For example, if "Finfo" is declared in the package
"com.mycompany.pojo" then you would have to add a line to your
"mycompany.gwt.xml" file like the following:



This will make sure the GWT compiler has the source to the class for
"Finfo".

If you are using JDO or JPA this might be more complicated. If you can
include a stacktrace with your post, that would be helpful.



On Feb 18, 11:54 am, BimboJones  wrote:
> Hi,
>
> I'm trying to return a List through an rpc call,
>
>        public List getUserFileList(String id) {
>                 return new Funcs().getUserFileList(id);
>         }
>
> getUserFileList(id) returns a List but i get a
> SerializationException that the Finfo class isn't included in the
> Serialization Policy, i have similar code that was working in previous
> version of gwt.
>
> Thanks for any help

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



Re: Best Practices for MVP with Composite Template View ( Header + Content + Nav + Footer) + UiBinder

2010-02-19 Thread digitalsam007
I also tried to add the serach widget into the content container of
the wrapper view and then adding the wrapper view to the rootpanel
container. But it didnt help. See the modified code below -

HasWidgets outer = this.container;

if (token.equals("main")) {

if (wrapper == null) {
wrapper = new WrapperView();
}

presenter = new SearchPresenter(eventBus, new SearchView());
outer = wrapper.getContentContainer();

}

if (presenter != null) {
presenter.go(outer);
new WrapperPresenter(new WrapperView()).go(this.container);

}

On Feb 19, 7:50 pm, digitalsam007  wrote:
> Hi Prashant,
>
> I did try to follow your instructions and added styles to my content
> container. I replaced the old view with a . but
> unfortunately, I cant see the content update on screen. Only the
> Header and footer are displayed.
>
> In the appController class, inside the valueChanged method, I added
> the code like this -
>
>         @Override
>         public void onValueChange(ValueChangeEvent event) {
>
>                 String token = event.getValue();
>
>                 if (token != null) {
>                         Presenter presenter = null;
>                         HasWidgets outer = this.container;
>
>                         if (token.equals("main")) {
>
>                                 if (wrapper == null) {
>                                         wrapper = new WrapperView();
>                                         ContainerSegment.HEADER = 
> wrapper.getHeaderContainer();
>                                         ContainerSegment.CONTENT = 
> wrapper.getContentContainer();
>                                         ContainerSegment.FOOTER = 
> wrapper.getFooterContainer();
>
>                                         new WrapperPresenter(new 
> WrapperView()).go(container);
>                                         System.out.println("Initial Screen 
> Created!!!");
>                                 }
>
>                                 presenter = new SearchPresenter(eventBus, new 
> SearchView());
>                                 outer = wrapper.getContentContainer();
>
>                         }
>
>                         if (presenter != null) {
>                                 presenter.go(outer);
>                                 System.out
>                                                 .println("Content Area is 
> going to refresh with search Widget");
>                         }
>                 }
>
>         }
>
> I verified that the correct go method is being called. Also, the outer
> container actually contains the Content panel  and also the
> actual SearchView content is getting added to the container.
>
> Any hint why I might not be able to get a refresh?
>
> On Feb 19, 9:39 am, Prashant Hegde  wrote:
>
> > I am using a similar strategy and it works just fine. I suspect it may
> > be a problem with your DockLayoutPanel sizing. Please check if the sizes
> > are 100%, also give the panel a border for debugging to see how your
> > layout looks...
>
> > If it helps, I have listed my UiBinder file.
>
> > 
> >          .layout {
> >              border-width:1px;
> >              border-style:solid;
> >              width: 100%;
> >              height: 100%;
>
> >          }
>
> >          .mainlayout {
> >              width: 100%;
> >              height: 100%;
> >              position:relative;
> >              top:2em;
> >              left: 2em;
> >          }
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
>
> > -- Prashant
>
> > On 19-02-2010 09:50, digitalsam007 wrote:
>
> > > Hello,
>
> > > I have been trying to implement the MVP pattern in my new GWT app. I
> > > have followed the Contacts example app and it seems to be quite
> > > straightforward. In there, the controller passes the root
> > > panel(container) to every presenter in its go method. And these
> > > presenters add the respective view(Display) to the container.
>
> > > However, in my case I have to use a template with Header, footer,
> > > Navigation and Content. Something quite similar to the Mail sample app
> > > found in the GWT SDK. I tried to create a wrapper view class and its
> > > corresponding Presenter and included all the 4 diffrent views viz
> > > header, footer, nav and content in it ( WrapperView.ui.xml).
>
> > > I provided extra methods in the WrapperView that can return HasWidgets
> > > for each of the segments in the page like this -
>
> > > HasWidgets getHeaderContainer()
> > > HasWidgets getContentContainer()
> > > HasWidgets getFooterContainer()
> > > HasWidgets getNavContainer()
>
> > > In the WrapperView.ui.xml , i added a dockLayoutPanel which inturn
> > > contains each of these containers ( each container elemensta re in
> > > turn SimplePanel components which contains the actual widgets for
> > > Header, footer...etc)
>
> > > 
> > >            
> > >                    
> > >            
> > >            
> > >   

Re: Polylines above streets (a route, not linear distance)

2010-02-19 Thread Eric Ayers
When you perform a directions query, one of the items you get back is a
polyline that covers the route.  Is that what you were looking for?

http://gwt-google-apis.googlecode.com/svn/javadoc/maps/1.0/com/google/gwt/maps/client/geocode/DirectionResults.html

On Thu, Feb 18, 2010 at 3:39 PM, Joe wrote:

> Hey!
> This is my first entry and I hope someone could help me...
>
> I'm implementing a mobile application with the Goggle Web Toolkit,
> which can display a route, marked by several Markers, on a Google Map.
> Now I want connect the Markers with Polylines and it works fine. But
> who is it possible to display the lines above the streets and not by
> linear distance (air line)?
> Would be great if someone could reply to my question...
> Thank's a lot...
> Regards
> Joe
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>


-- 
Eric Z. Ayers
Google Web Toolkit, Atlanta, GA USA
Sign up now for Google I/O 2010: May 19-20, http://code.google.com/io

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: Cross site issue

2010-02-19 Thread Fabiano


On Feb 19, 3:34 pm, ramesh chiluveri  wrote:
> Hai all,
>
> I enabled cross site by adding  in my
> module.gwt.xml
>
> but the issue.it is not invoking RPC calls.
>
> Can anyone suggest on this.
>
> Thanks
> Ramesh

IMHO! this is a noob hypothesis:
I have understood that xs permits the execution of GWT scripts from a
different domain.
The problem about cross site javascript EXECUTION may be about the
iframe sandbox in which GWT apps should run. IN case of different
domains the GWT application cannot access to the parent window and the
application fails.
XS solves this issue and permits the script execution.
The RPC Cross-site communication is another problem which cannot be
solved this way (I think) cause the SOP same origin policy.
In order to consume WS on other domains you have to refer to the gwt
documentation. There are few tricks about.
Regards

Ps:
I have not found a way to use GWT-RPC directly.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: Error loading module " No source code is available for com.google.gdata.util.AuthenticationException; did you forget to inherit a required module" in GWT after using gdata-java-client and appeng

2010-02-19 Thread dane.molotok
I bet this addresses GWT not being able to find your Exception:

http://thejavamonkey.blogspot.com/2009/08/gwt-basics-reusable-bean-libraries.html

On Feb 19, 9:03 am, Shyam Visamsetty  wrote:
> Can anyone help me with this error? TIA
>
> -Shyam.
>
> On Feb 19, 12:56 am, Shyam Visamsetty 
> wrote:
>
>
>
> > Hi All,
>
> > I am getting an error while running in development mode in GWT 2.0 and
> > also AppEngine. I add the external library "gdata-java-client'
>
> > Using Eclipse IDE.
>
> > Error is:
> > "No source code is available for
> > com.google.gdata.util.AuthenticationException; did you forget to
> > inherit a required module"
>
> > Another error is "The import com.google.appengine cannot be resolved"
>
> > Could you kindly provide suggestions on how to overcome them. What is
> > the module to be inherited. Why is AppEngine not resolving.
>
> > I  am a newbie and would appreciate any help. TIA.
>
> > Thanks,
> > Shyam.

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



Re: MVP Beginner Question

2010-02-19 Thread Krishna
Chris,

Thanks so much for linking to the tutorial on MVP architecture. Do you
have any idea as to when the follow up articles will be posted? I'm
specifically interested in the integration with Ui Binder as well as
best practices wrt code splitting.

Thanks a ton,

Krishna


On Dec 23 2009, 12:38 am, Sripathi Krishnan
 wrote:
> Pretty neat article.
> Eagerly waiting for the "UI Binder and MVP"  follow up post, cause thats a
> pain right now.
>
> (I know there are a few threads floating around on that topic, and the
> solutions provided are good .. but I would still like a better integration
> with UiBinder).
>
> --Sri
>
> 2009/12/22 Chris Ramsdale 
>
>
>
> > We've just added a tech article related to building GWT-based apps using
> > the MVP architecture. Although it doesn't discuss all of the topics
> > discussed in Ray's presentation (stay tuned, we'll be adding more), it does
> > cover the basics of MVP, using the Event Bus, getting History right, and
> > testing.
>
> >http://code.google.com/webtoolkit/doc/latest/tutorial/mvp-architectur...
>
> > - Chris
>
> > On Mon, Dec 21, 2009 at 2:32 PM, pohl  wrote:
>
> >> I haven't used any of the pre-packaged frameworks, so I can't help you
> >> select from them.
>
> >> However, my team is using this architecture, having been inspired by
> >> the original talk at Google I/O.   In my opinion, there is no better
> >> source of wisdom than that presentation, and its slides.
>
> >> If you haven't seen it yet, do so.  If you've seen it less than 20
> >> times, keep re-watching it day after day until you have.
>
> >>http://code.google.com/events/io/2009/sessions/GoogleWebToolkitBestPr...
>
> >> > I understand that GIN is used for dependency injection but not able to
> >> > understand Event bus, Presenter and Dispatcher as they are handled
> >> > differently by these examples..
>
> >> EventBus is a decoupling mechanism, and is adequately explained by
> >> rjrjr in the video.
>
> >> "Dispatcher" is probably what rjrjr refers to as ActionService, which
> >> is an implementation of the "command pattern" for RPC.   This is also
> >> discussed very well in the video.
>
> >> Presenter is the P in MVP, which is also discussed very well in the
> >> video.   I suspect that after you have fully absorbed the
> >> presentation, you'll come back and look at the three samples/
> >> frameworks with different eyes.
>
> >> --
>
> >> You received this message because you are subscribed to the Google Groups
> >> "Google Web Toolkit" group.
> >> To post to this group, send email to google-web-tool...@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> google-web-toolkit+unsubscr...@googlegroups.com >>  cr...@googlegroups.com>
> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/google-web-toolkit?hl=en.
>
> >  --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: (Almost) Standards mode / Quirks mode

2010-02-19 Thread Chris Lercher
Ok, on closer inspection, the author of the HTML comment is right, and
I'm wrong. While I'd say that the usual way to set a browser to quirks
mode is to omit the DOCTYPE declaration, the DOCTYPE in the HTML file
also leads to quirks mode (because it omits the concrete DTD location,
so it's effectively an invalid Doctype declaration). This is even
shown in the table at the bottom of the link I posted: 
http://hsivonen.iki.fi/doctype/

So all is good, GWT 1.7 projects were in quirks mode by default, and
the documentation is correct.


On Feb 19, 2:56 pm, Chris Lercher  wrote:
> Thanks, I know, and I do (for GWT 2.0). The question is more targeted
> at the documentation, which says, we shouldn't use some of the old
> layout elements anymore (e.g. StackPanel), because they don't work
> well in standards mode.
>
> http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html
> (Section "Moving to Standards Mode")
>
> But if it's the case that most GWT 1.7 applications never used quirks
> mode anyway (because WebAppCreator by default created a HTML file in
> "Almost Standards" mode), then I don't understand that, because the
> differences between "Almost Standards" and "Standards" aren't very
> big, or are they?
>
> In any case, the comment in the HTML file, that "HTML 4.01
> Transitional DOCTYPE" triggers quirks mode doesn't seem to be correct.
> Quirks mode is quite different from (Almost) Standards mode.
>
> On Feb 19, 2:46 pm, Alexander Arendar 
> wrote:
>
>
>
> > Hi Chris,
>
> > you better use the strict mode:
> > !DOCTYPE HTML PUBLIC
> > "-//W3C//DTD HTML 4.01//EN"
> > "http://www.w3.org/TR/html4/strict.dtd";>
>
> > That would benefit since new GWT layout panels are optimized for the strict
> > mode.
>
> > Sincerely,
> > Alex
>
> > On Fri, Feb 19, 2010 at 3:28 PM, Chris Lercher 
> > wrote:
>
> > > Hi,
>
> > > I just had a look at a html page generated by GWT 1.7, and was
> > > wondering about this:
>
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
>
> > > GWT 1.7 was made for quirks mode, as far as I remember. But HTML 4.01
> > > Transitional isn't quirks mode. For all I know, this is called "Almost
> > > Standards mode", which is very close to "Standards mode", except
> > > mainly for images.
>
> > > Seehttp://hsivonen.iki.fi/doctype/ (Section "Choosing a Doctype")
> > > andhttp://www.quirksmode.org/css/quirksmode.html
>
> > > So I wonder: Is this incorrect in the generated HTML page, or are the
> > > GWT docs actually always talking about "Almost Standards mode", when
> > > they say, that certain things before GWT 2.0 were designed for "Quirks
> > > mode"? Or maybe the information in my links is wrong?
>
> > > Chris
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "Google Web Toolkit" group.
> > > To post to this group, send email to google-web-tool...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-web-toolkit+unsubscr...@googlegroups.com > >  cr...@googlegroups.com>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: (Almost) Standards mode / Quirks mode

2010-02-19 Thread Alexander Arendar
yeah, those guys in google knows what they do :)

On Fri, Feb 19, 2010 at 6:39 PM, Chris Lercher wrote:

> Ok, on closer inspection, the author of the HTML comment is right, and
> I'm wrong. While I'd say that the usual way to set a browser to quirks
> mode is to omit the DOCTYPE declaration, the DOCTYPE in the HTML file
> also leads to quirks mode (because it omits the concrete DTD location,
> so it's effectively an invalid Doctype declaration). This is even
> shown in the table at the bottom of the link I posted:
> http://hsivonen.iki.fi/doctype/
>
> So all is good, GWT 1.7 projects were in quirks mode by default, and
> the documentation is correct.
>
>
> On Feb 19, 2:56 pm, Chris Lercher  wrote:
> > Thanks, I know, and I do (for GWT 2.0). The question is more targeted
> > at the documentation, which says, we shouldn't use some of the old
> > layout elements anymore (e.g. StackPanel), because they don't work
> > well in standards mode.
> >
> > http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html
> > (Section "Moving to Standards Mode")
> >
> > But if it's the case that most GWT 1.7 applications never used quirks
> > mode anyway (because WebAppCreator by default created a HTML file in
> > "Almost Standards" mode), then I don't understand that, because the
> > differences between "Almost Standards" and "Standards" aren't very
> > big, or are they?
> >
> > In any case, the comment in the HTML file, that "HTML 4.01
> > Transitional DOCTYPE" triggers quirks mode doesn't seem to be correct.
> > Quirks mode is quite different from (Almost) Standards mode.
> >
> > On Feb 19, 2:46 pm, Alexander Arendar 
> > wrote:
> >
> >
> >
> > > Hi Chris,
> >
> > > you better use the strict mode:
> > > !DOCTYPE HTML PUBLIC
> > > "-//W3C//DTD HTML 4.01//EN"
> > > "http://www.w3.org/TR/html4/strict.dtd";>
> >
> > > That would benefit since new GWT layout panels are optimized for the
> strict
> > > mode.
> >
> > > Sincerely,
> > > Alex
> >
> > > On Fri, Feb 19, 2010 at 3:28 PM, Chris Lercher  >wrote:
> >
> > > > Hi,
> >
> > > > I just had a look at a html page generated by GWT 1.7, and was
> > > > wondering about this:
> >
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> >
> > > > GWT 1.7 was made for quirks mode, as far as I remember. But HTML 4.01
> > > > Transitional isn't quirks mode. For all I know, this is called
> "Almost
> > > > Standards mode", which is very close to "Standards mode", except
> > > > mainly for images.
> >
> > > > Seehttp://hsivonen.iki.fi/doctype/ (Section "Choosing a Doctype")
> > > > andhttp://www.quirksmode.org/css/quirksmode.html
> >
> > > > So I wonder: Is this incorrect in the generated HTML page, or are the
> > > > GWT docs actually always talking about "Almost Standards mode", when
> > > > they say, that certain things before GWT 2.0 were designed for
> "Quirks
> > > > mode"? Or maybe the information in my links is wrong?
> >
> > > > Chris
> >
> > > > --
> > > > You received this message because you are subscribed to the Google
> Groups
> > > > "Google Web Toolkit" group.
> > > > To post to this group, send email to
> google-web-tool...@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > google-web-toolkit+unsubscr...@googlegroups.com cr...@googlegroups.com>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: Problem with gwt 2.0.2

2010-02-19 Thread Giuseppe La Scaleia
Yes thanks for replay, i have resolved .

2010/2/19 Trevor Skaife 

> Starting with gwt 2.0.0 there are no os specific jars.
>
> On Feb 19, 5:27 am, glascaleia  wrote:
> > Hi all,
> > i have a problem with gwt 2.0.2. I downloaded the zip and i created a
> > maven project with the dependencies from gwt-user , gwt-dev and gwt-
> > servlet
> >
> > This is part of my pom.xml
> > 
> > 
> > com.google.gwt
> > gwt-servlet
> > ${gwtVersion}
> > runtime
> > 
> > 
> > com.google.gwt
> > gwt-user
> > ${gwtVersion}
> > provided
> > 
> > 
> > com.google.gwt
> > gwt-dev
> > ${gwtVersion}
> > ${platform}-libs
> > zip
> > provided
> > 
> > 
> > com.google.gwt
> > gwt-dev
> > ${gwtVersion}
> > ${platform}
> > provided
> > 
> > In the gwt-2.0.2.zip i have not found the gwt-dev library for mac
> > platform and with mvn clean install i have the error because not found
> > gwt-dev mac library .zip
> > Any help???
> > Regards Giuseppe
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: GWT 2.0 plugin for Firefox 3.6

2010-02-19 Thread Thad
Thanks, Lukas. That's it. I've built 1.0.7591M.etc (the timestamp) in
SuSE Linux 11.2, and installed it successfully in Firefox 3.6.  This
is working with GWT 2.0.2.

On Feb 18, 5:06 pm, Lukas Laag  wrote:
> Actually, you do not want to use the version of the SDK files which
> come with your distribution. The Makefile is designed to build the
> code using the gecko-1.9.2 which is available from the GWT svn
> repository (see:http://google-web-toolkit.googlecode.com/svn/plugin-sdks/).
> Sorry I forgot to mention that.
>
> So in the same directory where your checked out the GWT trunk, you
> should also do:
>
> svn cohttp://google-web-toolkit.googlecode.com/svn/plugin-sdks/gecko-sdks/g...
> plugin-sdks/gecko-sdks/gecko-1.9.2
>
> On Feb 18, 9:20 pm, Thad  wrote:
>
> > I've got Firefox installed at /opt/firefox, so in trunk/plugins/
> > xpcomand/Makefile I set DEFAULT_FIREFOX_LIBS to /opt/firefox.
>
> > On my system (SuSE Linux 11.2), theXPCOMfiles are in /usr/include/
> > xulrunner-1.9.1.7/unstable
> > I must be brain-dead today, but I'm not seeing where to set that in
> > the Makefile.
>
> > On Feb 17, 3:40 am, Lukas Laag  wrote:
>
> > > The version in the trunk works fine with FF3.6.
> > > I had no problem building it.
> > > + Check out the source and tools from the svn repository as described
> > > in:http://code.google.com/webtoolkit/makinggwtbetter.html#checkingout
> > > + Go to trunk/plugins/xpcomand type: make ARCH=x86 BROWSER=ff36
> > > This will build a plugin in the directory trunk/plugins/xpcom/prebuilt/
> > > gwt-dev-plugin.xpi
> > > + In FF3.6, go to File > Open File... and open the .xpi resulting from
> > > the build
>
> > > Beware though no to accept updates to v. 1.0.7511 since as you noticed
> > > this version does not work with FF36
>
> > > On Feb 16, 8:05 pm, Thad  wrote:
>
> > > > When will this be available?  I have v. 1.0.7511.  This works with
> > > > Firefox 3.5.7 but will not work with 3.6.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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 set the initial state of a radiobutton?

2010-02-19 Thread dhoffer
Jim,

So how do you know when the radio button is attached to the document?

-Dave

On Feb 19, 3:19 am, CodeMonkey  wrote:
> Dave,
>
> Just today I was encountering almost the exact same problem.  I found
> out that I was having a problem because I was setting the value before
> I had attached the radio button to the document.  Some ancestor widget
> had not been added to a widget that was in the document.  Once I
> changed to code to have the widgets inserted into the page before
> setting the value everything worked fine.
>
> I hope this helps!
>
> - Jim
>
> On Feb 18, 5:18 pm, dhoffer  wrote:
>
> > Also doesn't work with 2.0.2.  Created defect 
> > issuehttp://code.google.com/p/google-web-toolkit/issues/detail?id=4647
>
> > -Dave
>
> > On Feb 18, 11:18 am, dhoffer  wrote:
>
> > > If I add a coupleradiobuttons to the main panel it works fine.
>
> > > In my app theradiobuttons are in a FlexTable.  I just add them as
> > > widgets to the table.  Is this a known problem?  Do I have to do
> > > something different when in a table?
>
> > > -Dave
>
> > > On Feb 18, 9:23 am, dhoffer  wrote:
>
> > > > Hi John,
>
> > > > Thanks for the reply.  No I'm not doing any RPC with respect to these
> > > >radiobuttons.  I have RPC but its for other purposes.  I have stepped
> > > > through the code many times with an IDE, everything seems in order.
> > > > Its just theradiobuttons are not selected when the app starts?!?  I
> > > > will try a smaller app and see if they work there.  Its a bit strange
> > > > <= 10% of the time they are displayed correctly
>
> > > > I just noticed that there is a new version 2.0.2...I might try that
> > > > too.
>
> > > > -Dave
>
> > > > On Feb 18, 8:52 am, John Denley  wrote:
>
> > > > > Its hard to try to solve this problem without being able to debug the 
> > > > > code,
> > > > > and Ive certainly got no time for that!
>
> > > > > You can try to create a really small application that just creates 
> > > > > and sets
> > > > > theradiobuttons, so that you can proove to yourself that the 
> > > > > functionality
> > > > > works.
>
> > > > > You could also try stepping through the code line by line (if you are 
> > > > > using
> > > > > something like the eclipse IDE)
>
> > > > > Otherwise you could try manually stepping through your own code, very
> > > > > tedious and boring and you need to concentrate but its possible to do 
> > > > > if
> > > > > theres not too much code to trawl through!
>
> > > > > Regarding the Asynchronos problem, this all depends if you are using 
> > > > > RPC
> > > > > calls to your server to get the values for yourradiobuttons, but Im
> > > > > guessing from what you have said that you are currently hardcoding the
> > > > > initial values (which of course it one of the debugging steps you 
> > > > > could have
> > > > > tried). The problem though can be that you create and display theradio
> > > > > buttons, but then the RPC call fails to update them for whatever 
> > > > > reason, or
> > > > > worse yet, tries to update theradiobuttons before they have even been
> > > > > created!
>
> > > > > Other than that I dont know enough about how you are trying to do it 
> > > > > (or
> > > > > enough of the internal workings of GWT) to offer any advice on the 
> > > > > actual
> > > > > order of creation etc.
>
> > > > > However its worth remembering and considering whether or not your 
> > > > > panels or
> > > > > buttons are being destroyed or just merely hidden. Ive made that 
> > > > > mistake
> > > > > with dialog boxes and not realising that a a call to dialogbox.hide 
> > > > > is only
> > > > > hiding the dialog box, so if you try to create the dialogbox at the
> > > > > beginning of a function and then hide it later in the same function, 
> > > > > later
> > > > > when you call the same function, it will create a new (clean) version 
> > > > > of the
> > > > > same dialogbox
>
> > > > > On 18 February 2010 15:17, dhoffer  wrote:
>
> > > > > > John,
>
> > > > > > So how do I solve this?  I'm not clear on the solution you propose.
>
> > > > > > -Dave
>
> > > > > > On Feb 18, 7:51 am, John Denley  wrote:
> > > > > > > is it possible that this maybe an asynchronos issue, I have had 
> > > > > > > that
> > > > > > before
> > > > > > > where Im displaying theradiobuttons before im setting them 
> > > > > > > because the
> > > > > > > setting of the buttons is based on a reply from the server, which 
> > > > > > > is an
> > > > > > > asynchronous call!
>
> > > > > > > On 18 February 2010 14:28, Bonor  wrote:
>
> > > > > > > > It should! May be something else deselects it?
>
> > > > > > > > I use manyradio'sand I just use:
> > > > > > > >radio[i].setValue(true);
>
> > > > > > > > On 18 feb, 04:42, dhoffer  wrote:
> > > > > > > > > gwt 2.0.  I've tried callingsetValue(true, true) 
> > > > > > > > > onradiobuttons
> > > > > > but
> > > > > > > > > when the app is run, neitherradiobuttonis selected, what is 
> > > > > > > > > the
> > > > > > > > > trick to code 

How to deal with gwt.rpc files in noserver mode?

2010-02-19 Thread Ed
How best can I deal with my gwt.rpc files in noserver mode in case I
have multiple gwt modules that all talk against the same backend?
What I do now: include the generated gwt.rpc files in my backend such
that gwt can find them (I use gwt-sl spring integration).

However, I find it a bit akward and doesn't feel right... Isn't there
a more easy way to merge the generated files in one gwt.rpc file (it
contains duplicatted objects) ?
Should I simple crap the generated gwt.rpc files and put them in my
war during the maven war build?.. or can it be smarter.

How do other people do this?

I noticed gwt is having this new DeRpc system, but I think it doesn't
solve the above issues. However, it will become more easier to run
hosted mode against an other server :)..

Please some advice on the above,
Ed

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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 FocusWidget.addClickHandler for GWT 2.0 Hyperlink (ClickHandler deprecated)

2010-02-19 Thread Tapas Adhikary
I have upgraded my project to GWT 2.0, and my hyperlinks keeps getting
the wornings for using the deprecated ClickHandler.

The JavaDoc says to use FocusWidget.addClickHandle. Why does the
Hyperlink need to use this FocusWidget? How should I use it ? Why can
a Hyperlink not use a ClickHandler but a GWT Button and Anchor can?
What is the logic behind it ?

I'm not sure how to use it? Does anyone have an example? Please share.

Thanks,
-Tapas

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



Can google plugin use different jar files for server and client?

2010-02-19 Thread Tim K
I have a server version of a class in one jar, and a client version of
the class in another.  The client version is restricted to JRE
emulation, while the server version can use the entire JRE.  Can the
google plug-in for eclipse be configured to use the server jar for the
server code and the client jar for the client code?

*** Server jar ***
class X {
 X() { ... }
 X( File directory ) { . }
...

*** Client jar ***
class X {
 X() { ... }
// Can't access a file on client side, so disable this constructor
// X( File directory ) { . }
...

Regards,
Tim K

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



Re: Debug Gadget GWT 2.0

2010-02-19 Thread Eric Ayers
I'm not really sure if it works, and I'm the maintainer.  I'm pretty sure it
doesn't.  I haven't finished converting all the gwt-google-api projects to
work with GWT 2.0.

Hey, if you want to walk over to the gwt-google-apis group we could talk
some more about it.  I hope to have some time to bring the gadgets API up to
speed soon.

On Thu, Feb 18, 2010 at 9:46 AM, flokay  wrote:

> Hi,
>
> how can I debug a GWT 2.0-gadget (with init-method etc.) with Eclipse?
> In 1.7.1 it worked well with a few changings but in 2.0 I don't get
> it!
> Has somebody done it already?
>
> Regards,
> flo
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>


-- 
Eric Z. Ayers
Google Web Toolkit, Atlanta, GA USA
Sign up now for Google I/O 2010: May 19-20, http://code.google.com/io

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



TabPanel depreciated when using UI Binder

2010-02-19 Thread Paul Stockley
When I use a TabPanel with UI Binder it says that it is depreciated in
favor of the new TabLayoutPanel. The problem is that I am using a
TabPanel within a DialogBox. From what I understand TabLayoutPanel
will not work in this case. So either I am mistaken and I can use
TabLayoutPanel or they have depreciated a component for which there is
no substitute!

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



unresolved issues

2010-02-19 Thread mwaschkowski
Hi,

This is a general question regarding outstanding issues in the issue
tracker - how does this thing work? I know there was an effort to
clean things up a few months ago, but I haven't seen the results of
that, if any.

I still have starred issues from 2006 like:

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

which is still in accepted status and has even been commented that it
was still present in 2.0.0-m2, but still no resolution.

Or

  http://code.google.com/p/google-web-toolkit/issues/detail?id=1405&start=100

which is from 2007, and was last updated with:

Comment 9 by jlaba...@google.com, Jan 05, 2009
The close button is such a common use case, I agree we should add it.
Status: Accepted
Labels: Milestone-Planned

What does this mean?

I don't want this space to become like Adobe's tracking where issues
are opened and never resolved. I don't see this as being an issue
about actually fixing the issues, just updating/clarifying the status
of current issues.

This is an urgent issue that requires immediate attention - what can I
do to help?

Thank you,

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-tool...@googlegroups.com.
To unsubscribe from this group, send email 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 create custom gwt library

2010-02-19 Thread Ashish Khivesara
Thanks guys for the responses.
I was able to make this work.
The problem was the jar that I created had everything in the project
included & not just the src folder. This caused runtime errors.

Thanks again for the help.
Ashish

On Wed, Feb 17, 2010 at 10:16 PM, Subhrajyoti Moitra  wrote:

> i think gwt-maven plugin can help you do this.
> Have 2 separate projects, and the do a clean install on the first project.
> and then use it as a dependency in the 2nd one, like any other typical
> maven dependency.
>
> For specifics see
> http://mojo.codehaus.org/gwt-maven-plugin/user-guide/multiproject.html ,,
> this has another approach for multi module builds.
>
> Thanks,
> Subhro.
>
> On Thu, Feb 18, 2010 at 5:39 AM, Ashish Khivesara <
> ashish.khives...@gmail.com> wrote:
>
>> Hi,
>> I have some GWT utilities that I would like to use in other GWT Apps.
>> I am using Eclipse. How can I create this into a GWT library to for re-use?
>>
>> I referenced it as anther project (in eclipse) and that seemed to work.
>>
>> However when i export that utility project as a jar and then reference
>> that as a library in the other project, it seems like it is referenced fine
>> (since there are no compile errors). But there are runtime errors. It is not
>> able to import the library class.
>>
>> Is there a systematic procedure I could follow to create GWT libraries?
>>
>> Thanks
>> Ashish
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to google-web-tool...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



GWT based dynamic multiple-app design?

2010-02-19 Thread Ashish Khivesara
Hi,
Here is what I am trying to achieve.


1. I have say N standalone GWT apps with entry points.
2. I need to have a GWT Home Page App which would simply have icons which on
clicking need to activate the appropriate stand  alone app.
3. I need an ability to dynamically be able to include another standalone
application to the the Home Page App.

So here is how done so far,
I have a couple of gwt based standalone app which work well by themselves.
I created another project for the Home App.
I included the 2 standalone apps here as modules.

Issue:
Now when I run the Home App, I notice that the Home.html has everything I do
in onModuleLoad() for Home, but along with it the 2 apps onModuleLoad() also
gets executed. I did not want that to happen. I want to trigger that through
an action.


I hope I have been able to explain what I am trying to do.

Any pointer would be very very helpful.

Thanks
Ashish

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: Parameter 0 of is of an unknown type 'java.lang.String/2004016611'

2010-02-19 Thread javaunixsolaris
I have the same problem, my code works fine on GWT 1.7.0.

On Feb 19, 6:29 am, gazarcher  wrote:
> Thanks for the reply.
>
> I only had GWT 2.0.2 in my classpath when I got theerror(which,
> incidentally, is caused when a callback throws an exception and the
> callback's onFailure() method is called.  The actual exception thrown
> is a com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException
> during a com.google.gwt.user.server.rpc.RPC.decodeRequest).
>
> I am having no problems with GWT 1.7.1 using the same codebase in my
> project (i.e., my code hasn't changed and I'm confident it is nothing
> I did in my code to cause theerror).
>
> Before I dare try GWT 2.0.x again, I need to see some response that
> thiserrorhas been fixed (by the GWT team).
>
> - Garry
>
> On Feb 19, 3:44 am, Flemming Boller  wrote:
>
> > I had the sameerror, but it was because I had a mix of GWT 2 and GWT 1.7
> > jarfiles on my running classpath. (also using Intellij)
>
> > Br
> > Flemming
>
> > On Thu, Feb 18, 2010 at 11:47 PM, gazarcher  wrote:
> > > Up until this week I was using IntelliJ IDEA 9.0 with GWT 1.7.1 on Mac
> > > OS X 10.5 and decided to upgrade to GWT 2.0.2 per the instructions on
> > > the GWT Website, including installing the GWT plugin into Firefox.
>
> > > After recompiling and running my application with several GWT modules
> > > and running in Firefox 3.5.7, Firefox 3.6 and Safari 4.0.3, the GWT
> > > modules all give the sameerror:
>
> > >    Parameter 0 of is of an unknown type 'java.lang.String/2004016611'
>
> > > but even before that GWT spewed "ERROR:Failedtoparsethepolicy
> > >file" for each module.
>
> > > I've cleaned out output folders/directories in IntelliJ, deleted
> > > caches for IntelliJ and Firefox, and tried again, but with the same
> > > result.  Nothing has changed in my code.
>
> > > I cleared out output folders/directories in IntelliJ, deleted caches
> > > for IntelliJ and Firefox again and uninstalled GWT 2.0.2 from my
> > > IntelliJ project, reinstalled GWT 1.7.1, compiled and every thing ran
> > > fine again.
>
> > > I've looked around the discussion groups and other people appear to be
> > > having the same problem with GWT 2.0.x.. so even though GWT 2.0 has
> > > gone through beta, early access, etc., and has now gone up two more
> > > versions, this is still an issue, and not just for me.  I understand
> > > the GWT version 1.0.7511 plugin for Firefox also has an issue for some
> > > folks.  I don't know if it is this causing the problem.
>
> > > Is anybody actually working with GWT 2.0 in their projects?  If so, is
> > > there a workaround for this issue if they hit the same problem?
>
> > > Is anyone on the GWT team aware of this issue and working on it?
>
> > > At the moment, GWT 2.0.x is unusable for me and trying to use it is
> > > holding up my work.  I'm going back to GWT 1.7.1 until I find a
> > > solution (or you do!).
>
> > > Any help on this matter is *greatly* appreciated.
>
> > > Cheers,
> > > - Garry
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "Google Web Toolkit" group.
> > > To post to this group, send email to google-web-tool...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-web-toolkit+unsubscr...@googlegroups.com
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: Parameter 0 of is of an unknown type 'java.lang.String/2004016611'

2010-02-19 Thread javaunixsolaris
Thanks Flemming, it was a mix of a 1.7.0 jar and 2.0.2 jars.

gazarcher, if you have exceptions in your log about "Failed to get the
SerializationPolicy" you are probably mixing jars.  I don't know how
GWT does it but in Java we have a similar exception with "serial uid"
and what it does it to check class compatibility.

On Feb 19, 1:44 am, Flemming Boller  wrote:
> I had the same error , but it was because I had a mix of GWT 2 and GWT 1.7
> jarfiles on my running classpath. (also using Intellij)
>
> Br
> Flemming
>
> On Thu, Feb 18, 2010 at 11:47 PM, gazarcher  wrote:
> > Up until this week I was using IntelliJ IDEA 9.0 with GWT 1.7.1 on Mac
> > OS X 10.5 and decided to upgrade to GWT 2.0.2 per the instructions on
> > the GWT Website, including installing the GWT plugin into Firefox.
>
> > After recompiling and running my application with several GWT modules
> > and running in Firefox 3.5.7, Firefox 3.6 and Safari 4.0.3, the GWT
> > modules all give the same error:
>
> >    Parameter 0 of is of an unknown type 'java.lang.String/2004016611'
>
> > but even before that GWT spewed "ERROR: Failed to parse the policy
> > file " for each module.
>
> > I've cleaned out output folders/directories in IntelliJ, deleted
> > caches for IntelliJ and Firefox, and tried again, but with the same
> > result.  Nothing has changed in my code.
>
> > I cleared out output folders/directories in IntelliJ, deleted caches
> > for IntelliJ and Firefox again and uninstalled GWT 2.0.2 from my
> > IntelliJ project, reinstalled GWT 1.7.1, compiled and every thing ran
> > fine again.
>
> > I've looked around the discussion groups and other people appear to be
> > having the same problem with GWT 2.0.x.. so even though GWT 2.0 has
> > gone through beta, early access, etc., and has now gone up two more
> > versions, this is still an issue, and not just for me.  I understand
> > the GWT version 1.0.7511 plugin for Firefox also has an issue for some
> > folks.  I don't know if it is this causing the problem.
>
> > Is anybody actually working with GWT 2.0 in their projects?  If so, is
> > there a workaround for this issue if they hit the same problem?
>
> > Is anyone on the GWT team aware of this issue and working on it?
>
> > At the moment, GWT 2.0.x is unusable for me and trying to use it is
> > holding up my work.  I'm going back to GWT 1.7.1 until I find a
> > solution (or you do!).
>
> > Any help on this matter is *greatly* appreciated.
>
> > Cheers,
> > - Garry
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

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



rpc to existing server

2010-02-19 Thread magicaltrout
is it possible to make a rpc call to an existing tomcat server? i'm
working off the helloworld example right now. thanks.

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



Re: Problem while loading stylesheet dynamically

2010-02-19 Thread Ashish Khivesara
I am trying to do the same thing. However it does not seem to work.
In my setup I have multiple modules. One module has an entry point and other
modules do not. I try to load css in the module that does not have an entry
point. The css is located in war/ directory.

I get Warning 404 in the console. Not sure what's happening here.

Thanks

On Thu, Jul 23, 2009 at 9:23 PM, Rick  wrote:

>
> Hi Adam
>
> Thanks a lot. Its working fine now.
>
> On Jul 24, 2:50 am, Adam T  wrote:
> > Hi Rick,
> >
> > The last line in your native method should read:
> >
> > $doc.getElementsByTagName("head")[0].appendChild(fileref);
> >
> > As GWT uses $doc to refer to the pages document.  See:
> http://code.google.com/webtoolkit/doc/1.6/DevGuideCodingBasics.html#D...
> >
> > //Adam
> >
> > On 23 Juli, 15:03, Rick  wrote:
> >
> > > Hi All
> >
> > > I am building an application using GWT 1.6. In my application I need
> > > to load external stylesheet at runtime. But its not working. I am able
> > > to load stylesheet in an independent html file. But when I am using
> > > same with GWT, its not reflecting. Below is a sample code to produce
> > > this case. Any help/suggestion will be highly appriciated.
> >
> > > StyleSheetEntryPoint.java
> >
> > > package com.example.foo.client;
> > > import com.google.gwt.core.client.EntryPoint;
> > > import com.google.gwt.user.client.ui.HTML;
> > > import com.google.gwt.user.client.ui.RootPanel;
> >
> > > public class StyleSheetEntryPoint implements EntryPoint {
> >
> > > public void onModuleLoad() {
> > > loadStyleSheet();
> > > HTML html = new HTML("Hello");
> > > html.setStyleName("sendButton");
> > > RootPanel.get().add(html);
> > > }
> >
> > > public static native void loadStyleSheet()/*-{
> > > var fileref=document.createElement("link");
> > > fileref.setAttribute("rel", "stylesheet");
> > > fileref.setAttribute("type", "text/css");
> > > fileref.setAttribute("href", "Component.css");
> > >
> document.getElementsByTagName("head")[0].appendChild(fileref);
> > > }-*/;
> >
> > > }
> >
> > > Component.css
> > > .sendButton {font-weight:bold;font-size: 16pt;}
> >
> > > Following HTML is giving me expected behaviour.
> > > 
> > > 
> > > 
> > > function loadCSS(){
> > > var fileref=document.createElement("link");
> > > fileref.setAttribute("rel", "stylesheet");
> > > fileref.setAttribute("type", "text/css");
> > > fileref.setAttribute("href", "Component.css");
> > > document.getElementsByTagName("head")[0].appendChild(fileref);}
> >
> > > 
> > > 
> > > 
> > > Hello
> > > 
> > > 
> >
> > > Thanks and regards
> >
> > > Rick
> --~--~-~--~~~---~--~~
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to Google-Web-Toolkit@googlegroups.com
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/Google-Web-Toolkit?hl=en
> -~--~~~~--~~--~--~---
>
>

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



Re: Problem while loading stylesheet dynamically

2010-02-19 Thread Ashish Khivesara
It defi seems like a path issue. So basically when you use multiple modules
and try to load dynamically css in the module which does not implement
EntryPoint, the JSNI method does not seem to work.

Any pointers on a fix for the same?

Thanks

On Fri, Feb 19, 2010 at 4:11 PM, Ashish Khivesara <
ashish.khives...@gmail.com> wrote:

> I am trying to do the same thing. However it does not seem to work.
> In my setup I have multiple modules. One module has an entry point and
> other modules do not. I try to load css in the module that does not have an
> entry point. The css is located in war/ directory.
>
> I get Warning 404 in the console. Not sure what's happening here.
>
> Thanks
>
> On Thu, Jul 23, 2009 at 9:23 PM, Rick  wrote:
>
>>
>> Hi Adam
>>
>> Thanks a lot. Its working fine now.
>>
>> On Jul 24, 2:50 am, Adam T  wrote:
>> > Hi Rick,
>> >
>> > The last line in your native method should read:
>> >
>> > $doc.getElementsByTagName("head")[0].appendChild(fileref);
>> >
>> > As GWT uses $doc to refer to the pages document.  See:
>> http://code.google.com/webtoolkit/doc/1.6/DevGuideCodingBasics.html#D...
>> >
>> > //Adam
>> >
>> > On 23 Juli, 15:03, Rick  wrote:
>> >
>> > > Hi All
>> >
>> > > I am building an application using GWT 1.6. In my application I need
>> > > to load external stylesheet at runtime. But its not working. I am able
>> > > to load stylesheet in an independent html file. But when I am using
>> > > same with GWT, its not reflecting. Below is a sample code to produce
>> > > this case. Any help/suggestion will be highly appriciated.
>> >
>> > > StyleSheetEntryPoint.java
>> >
>> > > package com.example.foo.client;
>> > > import com.google.gwt.core.client.EntryPoint;
>> > > import com.google.gwt.user.client.ui.HTML;
>> > > import com.google.gwt.user.client.ui.RootPanel;
>> >
>> > > public class StyleSheetEntryPoint implements EntryPoint {
>> >
>> > > public void onModuleLoad() {
>> > > loadStyleSheet();
>> > > HTML html = new HTML("Hello");
>> > > html.setStyleName("sendButton");
>> > > RootPanel.get().add(html);
>> > > }
>> >
>> > > public static native void loadStyleSheet()/*-{
>> > > var fileref=document.createElement("link");
>> > > fileref.setAttribute("rel", "stylesheet");
>> > > fileref.setAttribute("type", "text/css");
>> > > fileref.setAttribute("href", "Component.css");
>> > >
>> document.getElementsByTagName("head")[0].appendChild(fileref);
>> > > }-*/;
>> >
>> > > }
>> >
>> > > Component.css
>> > > .sendButton {font-weight:bold;font-size: 16pt;}
>> >
>> > > Following HTML is giving me expected behaviour.
>> > > 
>> > > 
>> > > 
>> > > function loadCSS(){
>> > > var fileref=document.createElement("link");
>> > > fileref.setAttribute("rel", "stylesheet");
>> > > fileref.setAttribute("type", "text/css");
>> > > fileref.setAttribute("href", "Component.css");
>> > >
>> document.getElementsByTagName("head")[0].appendChild(fileref);}
>> >
>> > > 
>> > > 
>> > > 
>> > > Hello
>> > > 
>> > > 
>> >
>> > > Thanks and regards
>> >
>> > > Rick
>> --~--~-~--~~~---~--~~
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to Google-Web-Toolkit@googlegroups.com
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/Google-Web-Toolkit?hl=en
>> -~--~~~~--~~--~--~---
>>
>>
>

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



Re: tomcat and apache problem

2010-02-19 Thread Fran
Thanks Chris,

I put the ProxyTimeout directive to 1 and now seems that the
aplications have timeout 1.
Now the problem is that the aplication close the conection and dont is
hearing the future comet events

:(

On 19 feb, 15:29, Chris Lercher  wrote:
> I'd take a look at 
> this:http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxytimeout
>
> Or you add parameters to your ProxyPass 
> directivehttp://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypass
>
> On Feb 19, 3:17 pm, Fran  wrote:
>
> > After some tests I can to confirm that the delay between Comet events
> > are constant.
>
> > Seems that Apache apply a timeout when conects to tomcat by Proxypass
>
> > Anyone know it?
>
> > On 19 feb, 02:04, Fran  wrote:
>
> > > anyone know the problem? please
>
> > > On 18 feb, 00:41, Fran  wrote:
>
> > > > I use Comet that its Long polling.
> > > > I think that the problem is a timeout that is applied by tomcat when
> > > > apache conect the proxy to the tomcat.
>
> > > > If I execute the aplication directly in tomcat. Its works fine.
> > > > If I execute the aplication in apache and a proxypass to servlet, the
> > > > aplication has a timeout between comet events that I dont understand.
>
> > > > You can test it:
>
> > > > Aplication in tomcat 
> > > > directly:http://california.lirondo.com:8081/msn/Messenger.html
> > > > ---> It works very good (is needed to use diferents navegators for
> > > > conect diferent users)
> > > > Aplication in apache:http://california.lirondo.com/msn/Messenger.html
> > > > --> If you are patient, you can test that works fine but is s slow
>
> > > > Help please, thanks!
>
> > > > On 17 feb, 23:46, Chris Lercher  wrote:
>
> > > > > Hi,
>
> > > > > I don't have an Apache+Tomcat setup, so I can only guess what may be
> > > > > happening: There are two basic ways to do Comet.
>
> > > > > - Streaming (for one request, the server sends a few bytes, then later
> > > > > some more etc.)
> > > > > - Long polling (for one request, the server sends zero bytes
> > > > > initially, and just waits until it can send anything. When the client
> > > > > receives that response, it creates a new request.)
>
> > > > > Streaming is known not to work reliably, especially with proxies
> > > > > (unfortunately). Long polling also only works reliably, if you don't
> > > > > wait too long with your response.
>
> > > > > Even if you manage to set up your apache in a way that it works, you
> > > > > probably can't control how additional proxies etc (and also the
> > > > > browser) between your server and the client behave.
>
> > > > > Maybe this helps a little bit.
> > > > > Chris
>
> > > > > On Feb 17, 8:56 pm, Fran  wrote:
>
> > > > > > anyone can help me please?
>
> > > > > > On 17 feb, 00:53, Fran  wrote:
>
> > > > > > > help me please
>
> > > > > > > On 16 feb, 19:54, Fran  wrote:
>
> > > > > > > > I am using now Proxypass for apache. The config is:
>
> > > > > > > > 
> > > > > > > >         ServerName california..com
> > > > > > > >         ServerAdmin webmas...@localhost
> > > > > > > >         DocumentRoot /var/www/
> > > > > > > >         ProxyRequests On
> > > > > > > >         
> > > > > > > >                 Order deny,allow
> > > > > > > >                 Allow from all
> > > > > > > >         
> > > > > > > >         ProxyPass 
> > > > > > > > /app/com.apphttp://california..com:8081/app/com.app
> > > > > > > >         ProxyPassReverse 
> > > > > > > > /app/com.apphttp://california..com:8081/app/com.app
>
> > > > > > > >         DirectoryIndex index.php
> > > > > > > >         AccessFileName .htaccess
> > > > > > > > 
>
> > > > > > > > The aplication is a Comet chat.
> > > > > > > > With this configuration, the aplication executed from apache 
> > > > > > > > works but
> > > > > > > > some message lost.
> > > > > > > > The error log shows:
>
> > > > > > > > [error] [client ] proxy: error reading status line from 
> > > > > > > > remote
> > > > > > > > server california..com, 
> > > > > > > > referer:http://california..com/app/com.app/2179BCD97ED1043BAEE2BAA974B2E7...
> > > > > > > > [error] [client ] ] proxy: Error reading from remote 
> > > > > > > > server
> > > > > > > > returned by /app/com.app/messenger, 
> > > > > > > > referer:http://california..com/app/com.app/2179BCD97ED1043BAEE2BAA974B2E7...
>
> > > > > > > > I read in some forum that is needed the lines in Location 
> > > > > > > > directive of
> > > > > > > > apache:
>
> > > > > > > > SetEnv force-proxy-request-1.0 1
> > > > > > > > SetEnv proxy-nokeepalive 1
>
> > > > > > > > If I put this, the aplications is beeing more and more slowly.
>
> > > > > > > > Someone can tell me a solutions please :(
>
> > > > > > > > On 15 feb, 22:47, Fran  wrote:
>
> > > > > > > > > Hello,
>
> > > > > > > > > I need your help about GWT integration in apache and tomcat.
>
> > > > > > > > > I have a GWT aplication that has server side. This server 
> > > > > > > > > side is
> > > > > > > > > listening

Re: tomcat and apache problem

2010-02-19 Thread Chris Lercher
The timeout for your connections should be _shorter_ than the
ProxyTimeout, so setting it to 1 second may not be an ideal choice...


On Feb 20, 1:29 am, Fran  wrote:
> Thanks Chris,
>
> I put the ProxyTimeout directive to 1 and now seems that the
> aplications have timeout 1.
> Now the problem is that the aplication close the conection and dont is
> hearing the future comet events
>
> :(
>
> On 19 feb, 15:29, Chris Lercher  wrote:
>
>
>
> > I'd take a look at 
> > this:http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxytimeout
>
> > Or you add parameters to your ProxyPass 
> > directivehttp://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypass
>
> > On Feb 19, 3:17 pm, Fran  wrote:
>
> > > After some tests I can to confirm that the delay between Comet events
> > > are constant.
>
> > > Seems that Apache apply a timeout when conects to tomcat by Proxypass
>
> > > Anyone know it?
>
> > > On 19 feb, 02:04, Fran  wrote:
>
> > > > anyone know the problem? please
>
> > > > On 18 feb, 00:41, Fran  wrote:
>
> > > > > I use Comet that its Long polling.
> > > > > I think that the problem is a timeout that is applied by tomcat when
> > > > > apache conect the proxy to the tomcat.
>
> > > > > If I execute the aplication directly in tomcat. Its works fine.
> > > > > If I execute the aplication in apache and a proxypass to servlet, the
> > > > > aplication has a timeout between comet events that I dont understand.
>
> > > > > You can test it:
>
> > > > > Aplication in tomcat 
> > > > > directly:http://california.lirondo.com:8081/msn/Messenger.html
> > > > > ---> It works very good (is needed to use diferents navegators for
> > > > > conect diferent users)
> > > > > Aplication in apache:http://california.lirondo.com/msn/Messenger.html
> > > > > --> If you are patient, you can test that works fine but is s slow
>
> > > > > Help please, thanks!
>
> > > > > On 17 feb, 23:46, Chris Lercher  wrote:
>
> > > > > > Hi,
>
> > > > > > I don't have an Apache+Tomcat setup, so I can only guess what may be
> > > > > > happening: There are two basic ways to do Comet.
>
> > > > > > - Streaming (for one request, the server sends a few bytes, then 
> > > > > > later
> > > > > > some more etc.)
> > > > > > - Long polling (for one request, the server sends zero bytes
> > > > > > initially, and just waits until it can send anything. When the 
> > > > > > client
> > > > > > receives that response, it creates a new request.)
>
> > > > > > Streaming is known not to work reliably, especially with proxies
> > > > > > (unfortunately). Long polling also only works reliably, if you don't
> > > > > > wait too long with your response.
>
> > > > > > Even if you manage to set up your apache in a way that it works, you
> > > > > > probably can't control how additional proxies etc (and also the
> > > > > > browser) between your server and the client behave.
>
> > > > > > Maybe this helps a little bit.
> > > > > > Chris
>
> > > > > > On Feb 17, 8:56 pm, Fran  wrote:
>
> > > > > > > anyone can help me please?
>
> > > > > > > On 17 feb, 00:53, Fran  wrote:
>
> > > > > > > > help me please
>
> > > > > > > > On 16 feb, 19:54, Fran  wrote:
>
> > > > > > > > > I am using now Proxypass for apache. The config is:
>
> > > > > > > > > 
> > > > > > > > >         ServerName california..com
> > > > > > > > >         ServerAdmin webmas...@localhost
> > > > > > > > >         DocumentRoot /var/www/
> > > > > > > > >         ProxyRequests On
> > > > > > > > >         
> > > > > > > > >                 Order deny,allow
> > > > > > > > >                 Allow from all
> > > > > > > > >         
> > > > > > > > >         ProxyPass 
> > > > > > > > > /app/com.apphttp://california..com:8081/app/com.app
> > > > > > > > >         ProxyPassReverse 
> > > > > > > > > /app/com.apphttp://california..com:8081/app/com.app
>
> > > > > > > > >         DirectoryIndex index.php
> > > > > > > > >         AccessFileName .htaccess
> > > > > > > > > 
>
> > > > > > > > > The aplication is a Comet chat.
> > > > > > > > > With this configuration, the aplication executed from apache 
> > > > > > > > > works but
> > > > > > > > > some message lost.
> > > > > > > > > The error log shows:
>
> > > > > > > > > [error] [client ] proxy: error reading status line 
> > > > > > > > > from remote
> > > > > > > > > server california..com, 
> > > > > > > > > referer:http://california..com/app/com.app/2179BCD97ED1043BAEE2BAA974B2E7...
> > > > > > > > > [error] [client ] ] proxy: Error reading from remote 
> > > > > > > > > server
> > > > > > > > > returned by /app/com.app/messenger, 
> > > > > > > > > referer:http://california..com/app/com.app/2179BCD97ED1043BAEE2BAA974B2E7...
>
> > > > > > > > > I read in some forum that is needed the lines in Location 
> > > > > > > > > directive of
> > > > > > > > > apache:
>
> > > > > > > > > SetEnv force-proxy-request-1.0 1
> > > > > > > > > SetEnv proxy-nokeepalive 1
>
> > > > > > > > > If I put this, the aplicatio

Re: tomcat and apache problem

2010-02-19 Thread Chris Lercher
BTW, here's a link about timeouts + Comet:
http://code.google.com/p/google-web-toolkit-incubator/wiki/ServerPushFAQ

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: tomcat and apache problem

2010-02-19 Thread Fran
If I dont put a short timeout, the aplication isnt good.
Do you imagine that the MSN Messenger delay 15 seconds to show you the
contact list?

I need that the solution works as the aplication in tomcat. If I
execute the aplication on tomcat, it work without timeout. So I need
when the aplication works in apache, seems that is working in tomcat.

Im going to show the url that you tell me. Thanks!

On 20 feb, 01:57, Chris Lercher  wrote:
> BTW, here's a link about timeouts + 
> Comet:http://code.google.com/p/google-web-toolkit-incubator/wiki/ServerPushFAQ

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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 provide a local css resource file with a Module

2010-02-19 Thread Ashish Khivesara
I need to associate a local css resource file with a module. This module
does not have Entry point hence I cannot simply import it in the html.
Here is what I did

I added this line in my Music.gwt.xml



Music.css resides in the war/ directory

Now I inherit this module in another Module. However the css resource does
not seem to be attached / downloaded.

Any pointers?

Thanks
Ashish

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: tomcat and apache problem

2010-02-19 Thread Fran
I finally read it but seems that they cant help me. They arent use my
technical that is a Comet long polling technique.

I am reading the apache log and I find a curious error:

[error] [client 127.0.0.1] (OS 10060)A connection attempt failed
because the connected party did not properly respond after a period of
time, or established connection failed because connected host has
failed to respond.  : proxy: error reading response

It could be the cause of the conection close last the reception of the
first comet event.


On 20 feb, 02:08, Fran  wrote:
> If I dont put a short timeout, the aplication isnt good.
> Do you imagine that the MSN Messenger delay 15 seconds to show you the
> contact list?
>
> I need that the solution works as the aplication in tomcat. If I
> execute the aplication on tomcat, it work without timeout. So I need
> when the aplication works in apache, seems that is working in tomcat.
>
> Im going to show the url that you tell me. Thanks!
>
> On 20 feb, 01:57, Chris Lercher  wrote:
>
> > BTW, here's a link about timeouts + 
> > Comet:http://code.google.com/p/google-web-toolkit-incubator/wiki/ServerPushFAQ

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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 provide a local css resource file with a Module

2010-02-19 Thread Ashish Khivesara
Well the issue here would maybe because the module here in question does not
an Entry point and hence there is no hostpage to inject this css reference
into.
So this there a way to make sure the inheriting module injects this
stylesheet in its host page??

Thanks
Ashish

On Fri, Feb 19, 2010 at 5:18 PM, Ashish Khivesara <
ashish.khives...@gmail.com> wrote:

> I need to associate a local css resource file with a module. This module
> does not have Entry point hence I cannot simply import it in the html.
> Here is what I did
>
> I added this line in my Music.gwt.xml
>
> 
>
> Music.css resides in the war/ directory
>
> Now I inherit this module in another Module. However the css resource does
> not seem to be attached / downloaded.
>
> Any pointers?
>
> Thanks
> Ashish
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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 set the initial state of a radiobutton?

2010-02-19 Thread CodeMonkey
Dave,

I am sorry to say this, but it seems like our issues differ a bit.  In
my case I was removing from the page a panel which contained some
RadioButtons.  Later on I was setting their values, and then putting
the panel that contained them back into the page.  The problem I was
encountering was with radio buttons that were grouped together.  If
one button in the group was selected and I tried to set a different
one in the same group, then they would both be selected, which was not
supposed to happen.  I found that if I put the panel back into the
page first, and then set the values, the groups of radio buttons
worked as they should.

I was trying to recreate what you are talking about wrote the
following code:

  public void onModuleLoad()
  {
RadioButton radio1 = new RadioButton("group", "option 1");

radio1.setValue(true);

VerticalPanel panel = new VerticalPanel();
panel.add(radio1);

RootPanel.get().add(panel);
  }

This worked as expected. The radio button was set.  Is this an
accurate representation of your problem?

- Jim

On Feb 19, 10:01 am, dhoffer  wrote:
> Jim,
>
> So how do you know when theradiobuttonis attached to the document?
>
> -Dave
>
> On Feb 19, 3:19 am, CodeMonkey  wrote:
>
>
>
> > Dave,
>
> > Just today I was encountering almost the exact same problem.  I found
> > out that I was having a problem because I was setting the value before
> > I had attached theradiobuttonto the document.  Some ancestor widget
> > had not been added to a widget that was in the document.  Once I
> > changed to code to have the widgets inserted into the page before
> > setting the value everything worked fine.
>
> > I hope this helps!
>
> > - Jim
>
> > On Feb 18, 5:18 pm, dhoffer  wrote:
>
> > > Also doesn't work with 2.0.2.  Created defect 
> > > issuehttp://code.google.com/p/google-web-toolkit/issues/detail?id=4647
>
> > > -Dave
>
> > > On Feb 18, 11:18 am, dhoffer  wrote:
>
> > > > If I add a coupleradiobuttons to the main panel it works fine.
>
> > > > In my app theradiobuttons are in a FlexTable.  I just add them as
> > > > widgets to the table.  Is this a known problem?  Do I have to do
> > > > something different when in a table?
>
> > > > -Dave
>
> > > > On Feb 18, 9:23 am, dhoffer  wrote:
>
> > > > > Hi John,
>
> > > > > Thanks for the reply.  No I'm not doing any RPC with respect to these
> > > > >radiobuttons.  I have RPC but its for other purposes.  I have stepped
> > > > > through the code many times with an IDE, everything seems in order.
> > > > > Its just theradiobuttons are not selected when the app starts?!?  I
> > > > > will try a smaller app and see if they work there.  Its a bit strange
> > > > > <= 10% of the time they are displayed correctly
>
> > > > > I just noticed that there is a new version 2.0.2...I might try that
> > > > > too.
>
> > > > > -Dave
>
> > > > > On Feb 18, 8:52 am, John Denley  wrote:
>
> > > > > > Its hard to try to solve this problem without being able to debug 
> > > > > > the code,
> > > > > > and Ive certainly got no time for that!
>
> > > > > > You can try to create a really small application that just creates 
> > > > > > and sets
> > > > > > theradiobuttons, so that you can proove to yourself that the 
> > > > > > functionality
> > > > > > works.
>
> > > > > > You could also try stepping through the code line by line (if you 
> > > > > > are using
> > > > > > something like the eclipse IDE)
>
> > > > > > Otherwise you could try manually stepping through your own code, 
> > > > > > very
> > > > > > tedious and boring and you need to concentrate but its possible to 
> > > > > > do if
> > > > > > theres not too much code to trawl through!
>
> > > > > > Regarding the Asynchronos problem, this all depends if you are 
> > > > > > using RPC
> > > > > > calls to your server to get the values for yourradiobuttons, but Im
> > > > > > guessing from what you have said that you are currently hardcoding 
> > > > > > the
> > > > > > initial values (which of course it one of the debugging steps you 
> > > > > > could have
> > > > > > tried). The problem though can be that you create and display 
> > > > > > theradio
> > > > > > buttons, but then the RPC call fails to update them for whatever 
> > > > > > reason, or
> > > > > > worse yet, tries to update theradiobuttons before they have even 
> > > > > > been
> > > > > > created!
>
> > > > > > Other than that I dont know enough about how you are trying to do 
> > > > > > it (or
> > > > > > enough of the internal workings of GWT) to offer any advice on the 
> > > > > > actual
> > > > > > order of creation etc.
>
> > > > > > However its worth remembering and considering whether or not your 
> > > > > > panels or
> > > > > > buttons are being destroyed or just merely hidden. Ive made that 
> > > > > > mistake
> > > > > > with dialog boxes and not realising that a a call to dialogbox.hide 
> > > > > > is only
> > > > > > hiding the dialog box, so if you try to create the dialogbox at the
> > > > > > b

Re: How to provide a local css resource file with a Module

2010-02-19 Thread Ashish Khivesara
This looks like a bug.

Issue: If a module without a entry point includes a stylesheet element then
the path is considered to be relative to the module that may inherit it.
This make it rigid and thereby adds a dependency between the inheriting
module.

In my case Music module had this line in the Music.gwt.xml


Now Home module inherits Music modules.

But GWT instead of looking for /music/Music.css, looks for the css resource
in /home/Music.css

[WARN] 404 - GET /home/Music.css (127.0.0.1) 1400 bytes


On Fri, Feb 19, 2010 at 5:31 PM, Ashish Khivesara <
ashish.khives...@gmail.com> wrote:

> Well the issue here would maybe because the module here in question does
> not an Entry point and hence there is no hostpage to inject this css
> reference into.
> So this there a way to make sure the inheriting module injects this
> stylesheet in its host page??
>
> Thanks
> Ashish
>
> On Fri, Feb 19, 2010 at 5:18 PM, Ashish Khivesara <
> ashish.khives...@gmail.com> wrote:
>
>> I need to associate a local css resource file with a module. This module
>> does not have Entry point hence I cannot simply import it in the html.
>> Here is what I did
>>
>> I added this line in my Music.gwt.xml
>>
>> 
>>
>> Music.css resides in the war/ directory
>>
>> Now I inherit this module in another Module. However the css resource does
>> not seem to be attached / downloaded.
>>
>> Any pointers?
>>
>> Thanks
>> Ashish
>>
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: tomcat and apache problem

2010-02-19 Thread dablack
Fran,

I use an Apache/Tomcat configuration and am very satisfied with its
performance; however, I use the mod_jk module rather than the
mod_proxy module. Have you looked into using the mod_jk module? With
it the communication between Apache and Tomcat are instantaneous. The
link http://tomcat.apache.org/connectors-doc/ can help you get more
information on this module and how to get it and use it. If you are
interested, I would be happy to share excerpts from my configuration
files to show how I've configured the connection.

On Feb 19, 7:24 pm, Fran  wrote:
> I finally read it but seems that they cant help me. They arent use my
> technical that is a Comet long polling technique.
>
> I am reading the apache log and I find a curious error:
>
> [error] [client 127.0.0.1] (OS 10060)A connection attempt failed
> because the connected party did not properly respond after a period of
> time, or established connection failed because connected host has
> failed to respond.  : proxy: error reading response
>
> It could be the cause of the conection close last the reception of the
> first comet event.
>
> On 20 feb, 02:08, Fran  wrote:
>
> > If I dont put a short timeout, the aplication isnt good.
> > Do you imagine that the MSN Messenger delay 15 seconds to show you the
> > contact list?
>
> > I need that the solution works as the aplication in tomcat. If I
> > execute the aplication on tomcat, it work without timeout. So I need
> > when the aplication works in apache, seems that is working in tomcat.
>
> > Im going to show the url that you tell me. Thanks!
>
> > On 20 feb, 01:57, Chris Lercher  wrote:
>
> > > BTW, here's a link about timeouts + 
> > > Comet:http://code.google.com/p/google-web-toolkit-incubator/wiki/ServerPushFAQ

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: tomcat and apache problem

2010-02-19 Thread Chris Lercher
The timeout is for the max time the app server gets to respond. If it
closes the connection earlier (which it should do, once it sends its
response), then the delay is shorter. This is what long polling is all
about. So if you set the delay to 15 seconds, it doesn't mean you have
to wait for 15 seconds every time. That's only, when the server
doesn't send the response within 15 seconds.

But as dablack says, probably mod_jk is the better solution anyway.
However, like I said earlier, there may be additional proxies between
your server and the client. So if it doesn't work correctly with
mod_proxy, this could indicate, that there is some problem in the way
the app server and the client interact. I have the feeling, that the
server maybe doesn't close its connection, so the proxy won't (always)
flush its contents. This triggers a timeout on the proxy or on the
client (depending on which is shorter).

On Feb 20, 2:08 am, Fran  wrote:
> If I dont put a short timeout, the aplication isnt good.
> Do you imagine that the MSN Messenger delay 15 seconds to show you the
> contact list?
>
> I need that the solution works as the aplication in tomcat. If I
> execute the aplication on tomcat, it work without timeout. So I need
> when the aplication works in apache, seems that is working in tomcat.
>
> Im going to show the url that you tell me. Thanks!
>
> On 20 feb, 01:57, Chris Lercher  wrote:
>
>
>
> > BTW, here's a link about timeouts + 
> > Comet:http://code.google.com/p/google-web-toolkit-incubator/wiki/ServerPushFAQ

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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 GWT FlowPanel and other Panel Styles!

2010-02-19 Thread Tan Jia Bao
Hi, thank you for your reply.

I've done what you said and attached a CSS style to that flowpanel but it
still wouldn't work, though I'm not sure whether is my css file in the
correct folder but it works for my regular webpage.

However, when I attach a style to some GWT generated text, it doesn't work.
What am I probably doing wrong? Thanks again!

On Fri, Feb 19, 2010 at 8:40 PM, RPB  wrote:

>
> A FlowPanel will act like a vertical panel (since block-level elements
> will naturally stack up vertically) unless you change the CSS property
> of it's children to float:left;
>
> Have a look at this for further info:
> http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html
>
>
>
> On Feb 19, 6:17 am, Tan Jia Bao  wrote:
> > Hi, I'm currently making an e-commerce site using GWT and DnD.
> >
> > Basically everything is well and in order except for the displaying of
> the
> > panels is done correctly.
> >
> > I'm using GWT RPC to retrieve the data from my DAO, in my main GWT RPC
> > Client side, the data are used to create a new Widget where stuffs such
> as
> > the Product name and Image are used in.
> >
> > In that Widget's constructor, I put all the Labels, Image into a Vertical
> > Panel, the constructor is created with UsageExample client side file, in
> > that client file, I have a FlowPanel which adds the widget into itself.
> Then
> > my mainentrypoint calls and retrieves that FlowPanel and placing it into
> the
> > mainPanel to display on the webpage.
> >
> > Thing is, the FlowPanel doesn't display like a FlowPanel, but rather like
> a
> > VerticalPanel, I tried changing it to horizontalPanel and it works,
> > everything else works except for the FlowPanel. Can anyone help on what
> I'm
> > doing wrong? Thanks!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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 set the initial state of a radiobutton?

2010-02-19 Thread dhoffer
My case is a bit different.  I'm using the FlexTable to help layout
the content.  Its when I add radio buttons to a FlexTable that it does
not work.

-Dave

On Feb 19, 6:33 pm, CodeMonkey  wrote:
> Dave,
>
> I am sorry to say this, but it seems like our issues differ a bit.  In
> my case I was removing from the page a panel which contained some
> RadioButtons.  Later on I was setting their values, and then putting
> the panel that contained them back into the page.  The problem I was
> encountering was with radio buttons that were grouped together.  If
> one button in the group was selected and I tried to set a different
> one in the same group, then they would both be selected, which was not
> supposed to happen.  I found that if I put the panel back into the
> page first, and then set the values, the groups of radio buttons
> worked as they should.
>
> I was trying to recreate what you are talking about wrote the
> following code:
>
>   public void onModuleLoad()
>   {
>     RadioButton radio1 = new RadioButton("group", "option 1");
>
>     radio1.setValue(true);
>
>     VerticalPanel panel = new VerticalPanel();
>     panel.add(radio1);
>
>     RootPanel.get().add(panel);
>   }
>
> This worked as expected. The radio button was set.  Is this an
> accurate representation of your problem?
>
> - Jim
>
> On Feb 19, 10:01 am, dhoffer  wrote:
>
> > Jim,
>
> > So how do you know when theradiobuttonis attached to the document?
>
> > -Dave
>
> > On Feb 19, 3:19 am, CodeMonkey  wrote:
>
> > > Dave,
>
> > > Just today I was encountering almost the exact same problem.  I found
> > > out that I was having a problem because I was setting the value before
> > > I had attached theradiobuttonto the document.  Some ancestor widget
> > > had not been added to a widget that was in the document.  Once I
> > > changed to code to have the widgets inserted into the page before
> > > setting the value everything worked fine.
>
> > > I hope this helps!
>
> > > - Jim
>
> > > On Feb 18, 5:18 pm, dhoffer  wrote:
>
> > > > Also doesn't work with 2.0.2.  Created defect 
> > > > issuehttp://code.google.com/p/google-web-toolkit/issues/detail?id=4647
>
> > > > -Dave
>
> > > > On Feb 18, 11:18 am, dhoffer  wrote:
>
> > > > > If I add a coupleradiobuttons to the main panel it works fine.
>
> > > > > In my app theradiobuttons are in a FlexTable.  I just add them as
> > > > > widgets to the table.  Is this a known problem?  Do I have to do
> > > > > something different when in a table?
>
> > > > > -Dave
>
> > > > > On Feb 18, 9:23 am, dhoffer  wrote:
>
> > > > > > Hi John,
>
> > > > > > Thanks for the reply.  No I'm not doing any RPC with respect to 
> > > > > > these
> > > > > >radiobuttons.  I have RPC but its for other purposes.  I have stepped
> > > > > > through the code many times with an IDE, everything seems in order.
> > > > > > Its just theradiobuttons are not selected when the app starts?!?  I
> > > > > > will try a smaller app and see if they work there.  Its a bit 
> > > > > > strange
> > > > > > <= 10% of the time they are displayed correctly
>
> > > > > > I just noticed that there is a new version 2.0.2...I might try that
> > > > > > too.
>
> > > > > > -Dave
>
> > > > > > On Feb 18, 8:52 am, John Denley  wrote:
>
> > > > > > > Its hard to try to solve this problem without being able to debug 
> > > > > > > the code,
> > > > > > > and Ive certainly got no time for that!
>
> > > > > > > You can try to create a really small application that just 
> > > > > > > creates and sets
> > > > > > > theradiobuttons, so that you can proove to yourself that the 
> > > > > > > functionality
> > > > > > > works.
>
> > > > > > > You could also try stepping through the code line by line (if you 
> > > > > > > are using
> > > > > > > something like the eclipse IDE)
>
> > > > > > > Otherwise you could try manually stepping through your own code, 
> > > > > > > very
> > > > > > > tedious and boring and you need to concentrate but its possible 
> > > > > > > to do if
> > > > > > > theres not too much code to trawl through!
>
> > > > > > > Regarding the Asynchronos problem, this all depends if you are 
> > > > > > > using RPC
> > > > > > > calls to your server to get the values for yourradiobuttons, but 
> > > > > > > Im
> > > > > > > guessing from what you have said that you are currently 
> > > > > > > hardcoding the
> > > > > > > initial values (which of course it one of the debugging steps you 
> > > > > > > could have
> > > > > > > tried). The problem though can be that you create and display 
> > > > > > > theradio
> > > > > > > buttons, but then the RPC call fails to update them for whatever 
> > > > > > > reason, or
> > > > > > > worse yet, tries to update theradiobuttons before they have even 
> > > > > > > been
> > > > > > > created!
>
> > > > > > > Other than that I dont know enough about how you are trying to do 
> > > > > > > it (or
> > > > > > > enough of the internal workings of GWT) to offer any advice on 
> > > > > > > the actua

Re: How to set the initial state of a radiobutton?

2010-02-19 Thread dhoffer
My case is a bit different.  I'm using the FlexTable to help layout
the content.  Its when I add radio buttons to a FlexTable that it does
not work.

-Dave

On Feb 19, 6:33 pm, CodeMonkey  wrote:
> Dave,
>
> I am sorry to say this, but it seems like our issues differ a bit.  In
> my case I was removing from the page a panel which contained some
> RadioButtons.  Later on I was setting their values, and then putting
> the panel that contained them back into the page.  The problem I was
> encountering was with radio buttons that were grouped together.  If
> one button in the group was selected and I tried to set a different
> one in the same group, then they would both be selected, which was not
> supposed to happen.  I found that if I put the panel back into the
> page first, and then set the values, the groups of radio buttons
> worked as they should.
>
> I was trying to recreate what you are talking about wrote the
> following code:
>
>   public void onModuleLoad()
>   {
>     RadioButton radio1 = new RadioButton("group", "option 1");
>
>     radio1.setValue(true);
>
>     VerticalPanel panel = new VerticalPanel();
>     panel.add(radio1);
>
>     RootPanel.get().add(panel);
>   }
>
> This worked as expected. The radio button was set.  Is this an
> accurate representation of your problem?
>
> - Jim
>
> On Feb 19, 10:01 am, dhoffer  wrote:
>
> > Jim,
>
> > So how do you know when theradiobuttonis attached to the document?
>
> > -Dave
>
> > On Feb 19, 3:19 am, CodeMonkey  wrote:
>
> > > Dave,
>
> > > Just today I was encountering almost the exact same problem.  I found
> > > out that I was having a problem because I was setting the value before
> > > I had attached theradiobuttonto the document.  Some ancestor widget
> > > had not been added to a widget that was in the document.  Once I
> > > changed to code to have the widgets inserted into the page before
> > > setting the value everything worked fine.
>
> > > I hope this helps!
>
> > > - Jim
>
> > > On Feb 18, 5:18 pm, dhoffer  wrote:
>
> > > > Also doesn't work with 2.0.2.  Created defect 
> > > > issuehttp://code.google.com/p/google-web-toolkit/issues/detail?id=4647
>
> > > > -Dave
>
> > > > On Feb 18, 11:18 am, dhoffer  wrote:
>
> > > > > If I add a coupleradiobuttons to the main panel it works fine.
>
> > > > > In my app theradiobuttons are in a FlexTable.  I just add them as
> > > > > widgets to the table.  Is this a known problem?  Do I have to do
> > > > > something different when in a table?
>
> > > > > -Dave
>
> > > > > On Feb 18, 9:23 am, dhoffer  wrote:
>
> > > > > > Hi John,
>
> > > > > > Thanks for the reply.  No I'm not doing any RPC with respect to 
> > > > > > these
> > > > > >radiobuttons.  I have RPC but its for other purposes.  I have stepped
> > > > > > through the code many times with an IDE, everything seems in order.
> > > > > > Its just theradiobuttons are not selected when the app starts?!?  I
> > > > > > will try a smaller app and see if they work there.  Its a bit 
> > > > > > strange
> > > > > > <= 10% of the time they are displayed correctly
>
> > > > > > I just noticed that there is a new version 2.0.2...I might try that
> > > > > > too.
>
> > > > > > -Dave
>
> > > > > > On Feb 18, 8:52 am, John Denley  wrote:
>
> > > > > > > Its hard to try to solve this problem without being able to debug 
> > > > > > > the code,
> > > > > > > and Ive certainly got no time for that!
>
> > > > > > > You can try to create a really small application that just 
> > > > > > > creates and sets
> > > > > > > theradiobuttons, so that you can proove to yourself that the 
> > > > > > > functionality
> > > > > > > works.
>
> > > > > > > You could also try stepping through the code line by line (if you 
> > > > > > > are using
> > > > > > > something like the eclipse IDE)
>
> > > > > > > Otherwise you could try manually stepping through your own code, 
> > > > > > > very
> > > > > > > tedious and boring and you need to concentrate but its possible 
> > > > > > > to do if
> > > > > > > theres not too much code to trawl through!
>
> > > > > > > Regarding the Asynchronos problem, this all depends if you are 
> > > > > > > using RPC
> > > > > > > calls to your server to get the values for yourradiobuttons, but 
> > > > > > > Im
> > > > > > > guessing from what you have said that you are currently 
> > > > > > > hardcoding the
> > > > > > > initial values (which of course it one of the debugging steps you 
> > > > > > > could have
> > > > > > > tried). The problem though can be that you create and display 
> > > > > > > theradio
> > > > > > > buttons, but then the RPC call fails to update them for whatever 
> > > > > > > reason, or
> > > > > > > worse yet, tries to update theradiobuttons before they have even 
> > > > > > > been
> > > > > > > created!
>
> > > > > > > Other than that I dont know enough about how you are trying to do 
> > > > > > > it (or
> > > > > > > enough of the internal workings of GWT) to offer any advice on 
> > > > > > > the actua