Re: FocusPanel not allowing focus on nested text fields

2008-09-23 Thread Thomas Broyer



On 23 sep, 07:11, "Michael Neale" <[EMAIL PROTECTED]> wrote:
> If I have a composite, which in turn has text fields in it, when I
> wrap all that in a FocusPanel - I can't seem to *easily* click on it
> (I have to click a few times) to set the focus on the field to edit
> it.
>
> Any ideas on what this is? (tabbing seems to work - its the mouse
> clicking). Am I abusing FocusPanel?

Maybe (probably?). What are you using the FocusPanel for? What's the
use case? What's the intended behavior?
--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Getting continued feedback on the state of a RPC call

2008-09-23 Thread Palietta

Hi all,

I have a GWT application which uses a remote service that does some
complex, and potentially long work. However, I don't want to hold the
user unaware of the status of their request for too long. So I would
like a way for the client app to receive frequent information on the
service status, which would be posted to the UI in real time.

I've unsuccessfully tried the following way:

The client makes a call to the remote service, which starts doing its
job.
The service itself, in turn, modifies some state variable during the
course of its computation.
So I created a client-side Timer which, every second, polls another
remote service that simply returns this state variable. This timer is
started right before the main service is called, and is halted after
the service returns.

Being these calls asynchronous, this method didn't work. All scheduled
Timer calls returned after the main service altogether.

I know it might be a dumb question, but it would really be helpful for
me to be able to provide the user with continued feedback on the state
of the service they called.

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



Re: GWT with AXIS

2008-09-23 Thread Lothar Kimmeringer

Hello,

cloclo schrieb:

> Hello,
> 
> I'm trying to do more or less the same stuff. The problem is how to
> make the GWT able to translate a simple call like this:
> 
> -->
>   import org.apache.axis.client.*;
> 
>   Service service = new Service();
>   Call call = (Call) service.createCall();
>   etc...
> <-

Simple answer: You can't. Why do you want to call a WebService
from the browser directly. Call a RemoteServiceServlet that does
that for you. That way you get around the restriction that the
GWT-application in general can only connect to the server it
was loaded from.


Regards, Lothar

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



JavaScript error only in Hosted Mode

2008-09-23 Thread psycotica0

Hello.
I've run into something that I think is a limitation in the GWT hosted
mode browser.

In javascript includes, it seems that they don't have the Window
object defined.

I included a javascript file (By putting a script tag in the gwt.xml),
let's say Test.js, and wrote the following into it:

function T(f) {
  f instanceof Window;
}

and then in a JSNI method called $wnd.T("something")
This throws the error in GWT "Can't find variable: Window".

The same setup seems to work in Firefox. I haven't been able to test
the exact same circumstances in Firefox, because the errors in Hosted
Mode stop me from being able to compile and browse in something else,
but a simple HTML file and js include seems to work in Firefox.

If I've misunderstood something, that would be great.

Any help would be appreciated.

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



GWT compiler for HPUX

2008-09-23 Thread Aryan

Does GWT compile exist for HPUX? I rquire GWT compile for HPUX for
supporting runtime compilation when my GWT application is deployed in
HPUX machine

--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Moving values

2008-09-23 Thread baalu aanand

Hi

I am new for using the GWT. Now i am working with Mail
application. I am doing some alteration in that. I altered the Task
tab at lefthand side. I have placed one textfield and button in that
tab. When I give any values in the textfield and select the button
means, that text box value should come below the trash in Mail tab at
right hand side.

  I have tried it many ways, the values are reaching the Mail tab, but
it not placing below the trash. Then all the calls are ajax call. I
don't know how to call one HTML page from my current HTML page.

 I need help for this. Kindly help me.


Thanks
Baalu

--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



gwt call from ,java to php web service

2008-09-23 Thread cloclo

Hi everybody,

   I'd love to be able to call a PHP web service from gwt tool
library.

   Ususally it's rather easy to call  from java a PHP web webservice.

 ...
 import org.apache.axis.client.*;

Service service = new Service();
Call call = (Call) service.createCall();

... etc


But the gwt compiler don't accept that: the error message  is:

-start message--

Removing units with errors
   [ERROR] Errors in 'file:/C:/Documents%20and%20Settings/
claude_antidot/My%20Documents/java_project/WebApplication1/src/java/
org/yournamehere/client/MainEntryPoint.java'
  [ERROR] Line 59: No source code is available for type
org.apache.axis.client.Service; did you forget to inherit a required
module?
Computing all possible rebind results for
'org.yournamehere.client.MainEntryPoint'
   Rebinding org.yournamehere.client.MainEntryPoint
  Checking rule 
 [ERROR] Unable to find type
'org.yournamehere.client.MainEntryPoint'
[ERROR] Hint: Previous compiler errors may have made this
type unavailable
[ERROR] Hint: Check the inheritance chain from your
module; it may not be inheriting a required module or a module may not
be adding its source path entries properly
[ERROR] Build failed

--stop message-

Does anybody now what the gwt is expexcted for or does anybody be able
to show me a link to sample code doing that?

   a call from java gwt's generated code to a php web service.

Thank you for any help or suggestion.

Claude.
[EMAIL PROTECTED]




--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT with AXIS

2008-09-23 Thread cloclo


Hello,

I'm trying to do more or less the same stuff. The problem is how to
make the GWT able to translate a simple call like this:

-->
  import org.apache.axis.client.*;

  Service service = new Service();
  Call call = (Call) service.createCall();
  etc...
<-

When I try to build this from inside the NetBeans IDE 6.1 the folowing
message occurs:

--->
Removing units with errors
   [ERROR] Errors in 'file:/C:/Documents%20and%20Settings/
claude_antidot/My%20Documents/java_project/WebApplication1/src/java/
org/yournamehere/client/MainEntryPoint.java'
  [ERROR] Line 59: No source code is available for type
org.apache.axis.client.Service; did you forget to inherit a required
module?
Computing all possible rebind results for
'org.yournamehere.client.MainEntryPoint'
   Rebinding org.yournamehere.client.MainEntryPoint
  Checking rule 
 [ERROR] Unable to find type
'org.yournamehere.client.MainEntryPoint'
[ERROR] Hint: Previous compiler errors may have made this
type unavailable
[ERROR] Hint: Check the inheritance chain from your
module; it may not be inheriting a required module or a module may not
be adding its source path entries properly
[ERROR] Build failed

<--

The aim (that runs perfectly as an applet) is to contact a PHP web
service.
Could you help me about this stuff?

NB: I inherits those stuffs:





Thank you.
Claude

On Jul 25, 7:30 pm, Tom Hjellming <[EMAIL PROTECTED]>
wrote:
> Are you sure you don't have a "client" java file that is trying to
> import a "server" class?  It's ok for a "server" class to import a
> "client" class but not the other way.
>
> Also, the "client" in the apache axis package path is not the same as
> the "client" in your GWT-based source code.  If you have a "client" GWT
> java class importing "org.apache.axis.client.*", then that is the problem.
>
> Can you show us the import sections of your "client" java files?
>
> Tom
>
> Tereno wrote:
> > Yes pretty much.
>
> > It's like what you guys said, the server code is being dragged into
> > the GWT compiler and is probably being compiled into JavaScript. How
> > do I structure it such that it's not this way? They are already in
> > different packages.
>
> > On Jul 24, 3:45 pm, Tom Hjellming <[EMAIL PROTECTED]>
> > wrote:
>
> >> Are you getting the  "No source code for org.apache.axis.client" error
> >> in the compilation of MyServiceImpl or for your interface files?
>
> >> Tom
>
> >> Tereno wrote:
>
> >>> Well I followed the way they showed in the example with the 2
> >>> interfaces and the implementation. I placed the Axis service creation
> >>> calls in the implementation and that's how I got those errors. Here's
> >>> my code:
>
> >>> import com.google.gwt.user.server.rpc.RemoteServiceServlet;
> >>> import org.apache.axis.client.Call;
> >>> import org.apache.axis.client.Service;
> >>> import javax.xml.namespace.QName;
> >>> import java.net.*;
>
> >>> public class MyServiceImpl extends RemoteServiceServlet implements
> >>> MyService{
> >>> public String myString(String s) {
> >>> Service service = new Service();
> >>> try {
> >>> Call call = (Call)service.createCall();
> >>> String endpoint = 
> >>> "http://localhost:8080/server/soap/ResourceMgmt";;
> >>> call.setTargetEndpointAddress(new URL(endpoint));
> >>> call.setOperationName( new QName("getResource"));
> >>> String input = "0001";
> >>> String answer = (String) call.invoke(new Object[] 
> >>> {new
> >>> String(input)});
> >>> return answer;
> >>> }
> >>> catch (Exception e)
> >>> {
> >>> return "Error - " + e.getMessage();
> >>> }
> >>> //return "Received" + s;
>
> >>> }
> >>> }
>
> >>> On Jul 24, 1:44 pm, Tom Hjellming <[EMAIL PROTECTED]>
> >>> wrote:
>
>  My GWT app makes Axis/SOAP calls from the server side without any
>  problems.  I just include the appropriate jar files into the Eclipse
>  project.
>
>  The "inherits" message makes me wonder if you have axis imports or calls
>  inside "client" code though.
>
>  Tom
>
>  Tereno wrote:
>
> > Hi there,
>
> > So I'm trying to communicate with my SOAP service. I read from
> > somewhere that one way would be to make an RPC call to the server and
> > use the server to make the SOAP call. I attempted to do that but my
> > problem is that while my code compiles in Eclipse with the Axis
> > libraries, I get "No source code for org.apache.axis.client" type
> > errors where they ask if I forgot to inherit a required model. I am
> > wondering how would I overcome this. The library is in my classpath as
> > well as my buildpath so I'm not too sure how to rec

GWTCanvas problems

2008-09-23 Thread [EMAIL PROTECTED]

Hello, I'm a new to gwt.  I'm having a problem with the gwtCanvas
widget.  It seems that arcs are showing up in my google devopment
shell, but not in my browser of choice(chrome, firefox, ie).  I'm
trying to find out if this is a known issue and if there is a solution
that i'm overlooking.   Any suggestions would be greatly appreciated!
Thanks.

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



Possible to split GWT application in seperate WAR files?

2008-09-23 Thread cschoett

Hello,

i have a question related to packaging a larger business application.
I am building a GWT application that contains two parts, a generic
part and a customer specific part that will be changed for every
customer. Both parts depend on each other and shall be integrated into
one big application.
A major requirement is that the generic part shall be developed and
deployable independently from the customer specific part. If we for
example discover a bug or add features to the generic part we want to
deliver an archive (WAR file) to the customer without touching the
customer specific part (in some cases we even won't have access to the
customer specific part.

As far as I know so far, it is possible to create two seperate modules
where the customer specific modules inherits the generic module. So I
have an idependance at source level. But when I compile the customer
specific module, both modules are compiled into one folder. Is it
possible to separate the two modules and package them into separate
WAR files? Is there any other way to integrate two modules so that the
can be developed and deployed independently?

Many thanks in advance.

Kind regards,
Christoph

--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Possible to split GWT application in seperate WAR files?

2008-09-23 Thread cschoett

Hello,

i have a question related to packaging a larger business application.
I am building a GWT application that contains two parts, a generic
part and a customer specific part that will be changed for every
customer. Both parts depend on each other and shall be integrated into
one big application.
A major requirement is that the generic part shall be developed and
deployable independently from the customer specific part. If we for
example discover a bug or add features to the generic part we want to
deliver an archive (WAR file) to the customer without touching the
customer specific part (in some cases we even won't have access to the
customer specific part.

As far as I know so far, it is possible to create two seperate modules
where the customer specific modules inherits the generic module. So I
have an idependance at source level. But when I compile the customer
specific module, both modules are compiled into one folder. Is it
possible to separate the two modules and package them into separate
WAR files? Is there any other way to integrate two modules so that the
can be developed and deployed independently?

Many thanks in advance.

Kind regards,
Christoph

--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Problem with CSS and caching

2008-09-23 Thread p4r1tyb1t

We are currently using GWT for a medium size project. Currently we are
facing couple of issues one issue has to deal with CSS cache, when our
Interface developer team try to debug a certain CSS issue and they
modify the CSS on deployed war, they don't see the result of changes
right away rather it takes few minutes to see the result. My question
is does GWT has some sort of cache mechanism?


--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



com.google.gwt.widgetideas..graphics.client.GWTCanvas problems

2008-09-23 Thread [EMAIL PROTECTED]

I'm new to gwt.  I am drawing an arc with this canvas.  When i render
my app using the google development shell, everything shows properly.
Only when i view the html in a browser(ie, firefox, and chrome) the
arc does not show up.  The rectangles and lines that I have drawn
using the canvas element works fine, but the arc is not showing.  I've
searched for similiar problems, but I haven't found anything.  Any one
have any solutions??  It would be greatly appreciated.

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



problem_with_download_of_GWT

2008-09-23 Thread Nathan Jeffery

Hi there,

i am having difficulty in downloading the app.

i have tried quite a few times and have even tried using different
browsers, but the download always seems to stop and about 4Mb...

any suggestions?

thanks.

nathan

--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



GWT compilers for solaris

2008-09-23 Thread Aryan

Does any GWT compiler exist for Solaris

--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Opening and Loading a GWT Module from another module

2008-09-23 Thread Halabe

Hi All,

Does anyone know how can I open and reload a GWT module from another
module in a new Window??

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



call a PHP web service from gwt toollibrary

2008-09-23 Thread cloclo

Hi everybody, I'd love to be able to call a PHP web service from gwt
toollibrary.

Ususally it's rather easy to call from java a PHP web webservice.

...import org.apache.axis.client.*;

Service service = new Service();
Call call = (Call) service.createCall(); ... etc

But the gwt compiler does't accept that: the error message is:

-start message--

library-inclusion-in-archive:
library-inclusion-in-manifest:
Removing units with errors
   [ERROR] Errors in 'file:/C:/Documents%20and%20Settings/
claude_antidot/My%20Documents/java_project/WebApplication1/src/java/
org/yournamehere/client/MainEntryPoint.java'
  [ERROR] Line 59: No source code is available for type
org.apache.axis.client.Service; did you forget to inherit a required
module?
Computing all possible rebind results for
'org.yournamehere.client.MainEntryPoint'
   Rebinding org.yournamehere.client.MainEntryPoint
  Checking rule 
 [ERROR] Unable to find type
'org.yournamehere.client.MainEntryPoint'
[ERROR] Hint: Previous compiler errors may have made this
type unavailable
[ERROR] Hint: Check the inheritance chain from your
module; it may not be inheriting a required module or a module may not
be adding its source path entries properly
[ERROR] Build failed


--stop message-

Does anybody knows what the gwt is expexcted for or does anybody be
able to show me a link to sample code doing that?

   -> a call from java gwt's generated code to a php web service.

Thank you for any help or suggestion.
Claude

--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT spring integration

2008-09-23 Thread Martyn

A not very sophisticated solution, but doesn't need much explanation
and gets you debugging how you want is a simple proxy servlet for each
Spring managed bean, like so:

public class PortfolioServiceProxyServlet extends RemoteServiceServlet
implements RemotePortfolioService {

// Reference to spring managed bean.
// The interface PortfolioService extends the interface
RemotePortfolioService.
private PortfolioService service;

public PortfolioServiceProxyServlet() {
super();

// Get a Spring application context.
// This needs to be moved to a singleton so can be shared.
String[] s = {"applicationContext.xml"};
ApplicationContext context = new
ClassPathXmlApplicationContext(s);

// Get a reference to the Spring managed bean.
service = (PortfolioService)
context.getBean("portfolioService");
}

public Portfolio getPortfolioById(Integer id) throws Exception {
try {
// Forward to the spring managed bean.
return service.getPortfolioById(id);
} catch (Exception e) {
// Ensure exceptions supported by GWT.
throw new Exception(e);
}
}
}

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



Re: Getting continued feedback on the state of a RPC call

2008-09-23 Thread Amit Dhingra
Hi,
Event I am a newbie in java and GWt, though how about partitioning your long
job, as in...
e.g.  For a http call which needs to access names say 100,000 in number. I
might actually partition this call in say 26 calls with each call querying
names starting with each of the 26 alphabets... and on the callback of the
first function I might update the user and make the second call and so on.
Actually do a chaining... :)

Thats just a guess... may be that I might be totally wrong on this... :)

Cheers,
Amit Dhingra


On Tue, Sep 23, 2008 at 3:19 PM, Palietta <[EMAIL PROTECTED]> wrote:

>
> Hi all,
>
> I have a GWT application which uses a remote service that does some
> complex, and potentially long work. However, I don't want to hold the
> user unaware of the status of their request for too long. So I would
> like a way for the client app to receive frequent information on the
> service status, which would be posted to the UI in real time.
>
> I've unsuccessfully tried the following way:
>
> The client makes a call to the remote service, which starts doing its
> job.
> The service itself, in turn, modifies some state variable during the
> course of its computation.
> So I created a client-side Timer which, every second, polls another
> remote service that simply returns this state variable. This timer is
> started right before the main service is called, and is halted after
> the service returns.
>
> Being these calls asynchronous, this method didn't work. All scheduled
> Timer calls returned after the main service altogether.
>
> I know it might be a dumb question, but it would really be helpful for
> me to be able to provide the user with continued feedback on the state
> of the service they called.
>
> Thank You
> >
>


-- 
Warm Regards,
Amit Dhingra

--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Getting continued feedback on the state of a RPC call

2008-09-23 Thread Lothar Kimmeringer

Hello,

Palietta schrieb:

> So I created a client-side Timer which, every second, polls another
> remote service that simply returns this state variable. This timer is
> started right before the main service is called, and is halted after
> the service returns.
> 
> Being these calls asynchronous, this method didn't work. All scheduled
> Timer calls returned after the main service altogether.
> 
> I know it might be a dumb question, but it would really be helpful for
> me to be able to provide the user with continued feedback on the state
> of the service they called.

Can you provide some source how you call the long running task
and create the timer? I have some ideas why this fails, but
it's only guessing without knowing more.

Independent from that you might google for "Comet GWT". This
might be a solution for you as well.


Regards, Lothar

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



Re: Sharing the localization code between client and server

2008-09-23 Thread Martin Trummer

Hi,

I am also interested in this.

Our approach is to write the texts into the properties files and then
use the GWT-i18n tool to generate the interface-files.
Of course this is not the best thing to do, because all the arguments
will be strings...

Maybe another approach would be to extend the GWT-i18n tool, which
already does the properties file parsing and creates the interface
file.
I have not looked at this tool yet, but maybe it can be extended to
generate another file for the backend, that implements the interface
methods and builds the messages from the ResourceBundle.

regards, martin

On Sep 22, 12:02 pm, Lothar Kimmeringer <[EMAIL PROTECTED]> wrote:
> Dobes schrieb:
>
> > Hm, I see.  But would I be able to use GWT.create(...) to create the
> > Constants subclass, and have it honor my @DefaultStringValue()
> > annotations?
>
> I'm using GWT 1.4 here and haven't migrated to 1.5, yet.
> Using GWT.create will be difficult on the server-side, because
> the Locale can be different for every request, so you need
> a second parameter. Using ResourceBundle on the other side allows
> a similar call:
>
> ResourceBundle rb = 
> ResourceBundle.getBundle(AdminToolsI18NConstants.class.getName(), loc);
>
> > I suppose not, so maybe I'd have to come up with some kind of clever
> > factory scheme which uses GWT.create in client code and whatever my
> > own implementation is in server code.
>
> You can implement your own version of ResourceBundle, that is
> reading in the property-files and use reflection on the interface
> to get the annotations. With Proxy-classes it should also be possible
> to create something similar to GWT.create.
>
> If I have very much time, I'd might be able to program something
> like this, but you shouldn't wait for that, at the moment my spare
> time is about zero ;-)
>
> Regards, Lothar
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: space between images in FlowPanel

2008-09-23 Thread Martin Trummer

maybe this helps: 
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/4469528cb5bbef8d/bdfaf9503d9f9ef1

On Sep 22, 7:42 am, ArunDhaJ <[EMAIL PROTECTED]> wrote:
> Hi,
> I'm adding 4 images in a FlowPanel, it lines up continuously. When I
> try adding a space between images by adding a flowpanel.add(new
> HTML(" ") the alignment gets changed.
>
> FlowPanel toolBar = new FlowPanel();
> toolBar.add(new Image("images/image1.png"));
> toolBar.add(new HTML(" "));
> toolBar.add(new Image("images/image2.png"));
> toolBar.add(new HTML(" "));
> toolBar.add(new Image("images/image3.png"));
> toolBar.add(new HTML(" "));
> toolBar.add(new Image("images/image4.png"));
> toolBar.add(new HTML(" "));
> toolBar.add(new Image("images/image5.png"));
>
> Is this way correct? or is there any other suggestion ??
>
> Thanks in Advance !
>
> -ArunDhaJ
--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Sharing the localization code between client and server

2008-09-23 Thread Lothar Kimmeringer

Martin Trummer schrieb:

> Maybe another approach would be to extend the GWT-i18n tool, which
> already does the properties file parsing and creates the interface
> file.
> I have not looked at this tool yet, but maybe it can be extended to
> generate another file for the backend, that implements the interface
> methods and builds the messages from the ResourceBundle.

That would make force everybody to actually use the tool regularily
to create the interface-file. I - for example - doesn't use the tool
but add methods to the interface-file by hand while developing the
GUI. In the long run, I realized that I'm faster and I'm also adding
Javadoc-comments describing the meaning behind the entry.


Regards, Lothar

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



Google Maps API Library for GWT 1.0 Release Candidate 1 now available

2008-09-23 Thread Eric Ayers
We're happy to say that the first Release Candidate for the Google Maps API
Library for Google Web Toolkit
is now ready to be taken
for a test drive.  The Maps library provides a way
to access the Google Maps API from a GWT project without having to write
additional JavaScript code.  The library gives you full control using the
standard Maps components such as InfoWindows, Markers, MapTypes, and
Geocoding.  You can even use advanced features such as adding GWT widgets to
the Map, creating custom overlays, custom map types, and other components.
 The Google API Libraries for GWT
project is a collection of
libraries that provide Java language bindings and
API specific plumbing for some Google JavaScript APIs. The goal is to make
it easy for developers to use these JavaScript APIs with GWT.  This release
of the Maps  library complements the
recent release candidates for the  Gears,
Gadgets  and the Google AJAX
SearchAPIs.  With this set of
release candidates, each library is now distributed
separately so that you can
downloadonly the
specific library you are interested in.

We encourage you to try these release candidates out and give us feedback,
either through the issue
trackeron
code.google.com, or through the
Google-Web-Tolkitor
Google-Web-Toolkit-Contributorsgroup.
- The Google API Libraries for GWT Team

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



Re: Breaking up is hard to do

2008-09-23 Thread walden

Maybe also "hard to do", but I would suggest you go with the flow on
these...

> lists all the line numbers and the various libraries that GWT doesn't
> support.  It'd be nice to have some sort of ignore for this.

It's arguably better that you fully understand the limitations of a
GWT compile, and use that to keep a strict separation of classes, and
avoid misunderstandings and other mishaps later.

>
> One thing that would be swell of the GWT team to do, would be to have
> a compile to war button.  Then i could click that and it compiles all
> the stuff into a nice package for me to deploy :)

The GWT team is not George Bush ;-)  ("compile war" joke)

But serously, there is too much variation in the way different
projects put together web content for GWT to get into this, too much
opportunity to "get in the way".

Walden

>
> On Sep 22, 2:40 pm, walden <[EMAIL PROTECTED]> wrote:
>
>
>
> > Ben,
>
> > First of all, I checked with Neil Sedaka, and it's okay for you to use
> > this thread title.  Neil's a nice guy that way.
>
> > On Sep 22, 10:05 am, ben <[EMAIL PROTECTED]> wrote:
>
> > > Just following up on this, to see if anyone can lend some support.  I
> > > have this working in hosted mode.  But when I create my war, it
> > > doesn't find my Implementation class that's inside my included jar
> > > file.  It does find the one that inside of my overall application, but
> > > not the one in my core file.  I have it in my web.xml file, as well as
> > > it's included .jar file in my WEB-INF/libs.
>
> > > Tomcat is still throwing a CLASS NOT FOUNDExecption.  Any thoughts on
> > > why it doesn't want to load the servlet?
>
> > Your build/deploy is introducing some entropy into the system.  To get
> > specific, please copy and post the log exerpts here (both from Tomcat
> > failing to load your service class, and from the GWT compiler failing
> > to compile your client code.
>
> > Hosted Mode is jury rigged through com Eclipse config, so I wouldn't
> > put any stock in that.
>
> > >  When I compile it still
> > > throws errors from GWT, because my GWT is trying to say the Impl class
> > > is part of the javascript.  This isn't the case, and it's under
> > > server.utils.  But in hosted mode it all still works as it should.
>
> > > On Sep 18, 1:11 pm, ben <[EMAIL PROTECTED]> wrote:
>
> > > > I seemed to have it working now, by putting in the servlet register
> > > > code into the  core.gwt.xml and not in the main app location.
>
> > > > But the weird thing is that when it loads I get all those errors still
> > > > (the items not supported by GWT -- BufferedReader, java.net etc).
> > > > But everything still seems to work.  How do I tell it that it shouln't
> > > > be looking in my core.server package?
>
> > > > On Sep 18, 10:22 am, ben <[EMAIL PROTECTED]> wrote:
>
> > > > > So I'm starting to get fancy with my organization with our could. We
> > > > > actually have several GWT efforts going on, so we want common code
> > > > > sets. We were able to break up our Client side code into seperate .jar
> > > > > files, and include them into our overall applications just fine.  Well
> > > > > now, I've gone and blown it up.  I'm trying to work around the SOP
> > > > > issue, and just have all my requests that aren't on the server go to a
> > > > > servlet, which will return the resulting page.
>
> > > > > The logic seems fine, but my issue is that this code is in our core
> > > > > library.  The core library now bombs when I run the application.  It
> > > > > can't find java.io.BufferedReader, File, etc. java.net, etc.
>
> > > > > The other one of note, which may be causing all my problems, is that
> > > > > it cannot find the library com.google.gwt.user.server!
>
> > > > > I'm thinking this is because the core.server library, isn't actually
> > > > > being run as if it's on the server, and that may be because I haven't
> > > > > registered the library correctly.  The properties of core include the
> > > > > libraries to gwt-user and gwt-server.  Inside the main app we have a
> > > > > core.gwt.xml which inherits the User, XML, HTTP, and I18N (don't know
> > > > > if I need all those anymore, but I've been trying various stuff), plus
> > > > > points the sourch path to our corejs library.
>
> > > > > This core.gwt.xml file is inherited inside of our overall application.
>
> > > > > Note, all this worked fine, until I added the server side stuff.  I'd
> > > > > like to be able to register my IMPL class if needed no my overall app
> > > > > ( I put a servlet path reference to it, which I don't think is the
> > > > > problem, yet anyway)  I still have to get past the compile errors.
> > > > > I'm guessing I'm missing some implementation somewhere.  Any help
> > > > > would be greatly appreciated.
>
> > > > > PS. I'm using eclipse and GWT 1.4.6- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message becaus

Re: Getting continued feedback on the state of a RPC call

2008-09-23 Thread Palietta

Here is a sample. It might contain errors but displays what I
basically tried to do.


// Obviously there is an asynchronous version of this interface
public interface MyService extends RemoteService {
public String requestStatusMessage();

public void doLengthyComputation();
}

MyServiceAsync service = (MyServiceAsync) GWT.create(MyService.class);
Timer t = new MyTimer();

public void callMainService() {
t.scheduleRepeating(1000);
ServiceDefTarget endpoint = (ServiceDefTarget) service;
endpoint.setServiceEntryPoint(GWT.getModuleBaseURL() + "mymodule");
AsyncCallback callback = new AsyncCallback() {
// whatever the outcome, stop the polling timer
public void onFailure(Throwable caught) {
t.cancel();
// do something to show failure
}

public void onSuccess(String result) {
t.cancel();
// do something else
}
// start the polling timer right before calling the main service
t.run();
service.doLengthyComputation();
}

public class MyTimer extends Timer {
public void run() {
poll();
}

public void poll() {
ServiceDefTarget endpoint = (ServiceDefTarget) service;
endpoint.setServiceEntryPoint(GWT.getModuleBaseURL() + 
"mymodule");
AsyncCallback callback = new AsyncCallback() {
public void onFailure(Throwable caught) {
System.out.println("polling failed");
}

public void onSuccess(String result) {
System.out.println(result);
}
service.requestStatusMessage();
}
}

On 23 Set, 13:17, Lothar Kimmeringer <[EMAIL PROTECTED]> wrote:
> Hello,
>
> Palietta schrieb:
>
> > So I created a client-side Timer which, every second, polls another
> > remote service that simply returns this state variable. This timer is
> > started right before the main service is called, and is halted after
> > the service returns.
>
> > Being these calls asynchronous, this method didn't work. All scheduled
> > Timer calls returned after the main service altogether.
>
> > I know it might be a dumb question, but it would really be helpful for
> > me to be able to provide the user with continued feedback on the state
> > of the service they called.
>
> Can you provide some source how you call the long running task
> and create the timer? I have some ideas why this fails, but
> it's only guessing without knowing more.
>
> Independent from that you might google for "Comet GWT". This
> might be a solution for you as well.
>
> Regards, Lothar
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Poll: GWT 1.4.62 vs 1.5 -- what are you using? what are your plans?

2008-09-23 Thread walden

I just completed a "Big Bang" upgrade from 1.4.62 to 1.5.  Since I
have exactly one GWT project, I'm done with 1.4 for good.  I expect to
be using 1.5 exclusively for the next year (if I'm employed that
long).

My upgrade:

1. technical conversion (replacing libs and shaking out errors I
introduced by intrusive customization) took 2 days
and the result was usable.

2. Converting to java 1.5 features (generics, foreach loops, auto
boxing, etc) and related refactorings took about a week
including testing along the way.

3. Converting JPA classes to be GWT compileable took another couple of
days (but I'm not sending them on the wire yet;
retiring my DTO's is yet to come).

Summary: In essence, it's not a bad conversion at all.  There is lots
of language style improvement you can do, and it
can be fairly time consuming.

Also: I'm evaluating IntelliJ IDEA 8.0M1, which has some nice GWT
support, although it is still crabbing about annotations
that the GWT compiler is blithely ignoring.  One nice feature is the
way navigation works among the synchronous and async
RPC interfaces.

Walden

On Sep 22, 5:57 pm, John Gunther <[EMAIL PROTECTED]> wrote:
> Trying to get a sense of how quickly the migration to GWT 1.5 from
> 1.4.62 will (or has already) occurred by asking:
>
> 1) Are you using GWT 1.5 right now?
> 2) Are you using 1.4.62 right now?
> 3) Do you expect to be using GWT 1.5 six months from now?
> 4) Do you expect to be using GWT 1.4.62 six months from now?
> 5) Do you expect to be using GWT 1.5 one year from now?
> 6) Do you expect to be using GWT 1.4.62 one year from now?
> 7) How long before you expect to abandon 1.4.62 completely and use
> only 1.5 or higher?
>
> My answers: No, Yes, Yes, Yes,  Yes, Yes, 4 years from now.
>
> John
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: FocusPanel not allowing focus on nested text fields

2008-09-23 Thread walden

Are you listening for click events on the FP?  Are you handling any?

On Sep 23, 1:11 am, "Michael Neale" <[EMAIL PROTECTED]> wrote:
> If I have a composite, which in turn has text fields in it, when I
> wrap all that in a FocusPanel - I can't seem to *easily* click on it
> (I have to click a few times) to set the focus on the field to edit
> it.
>
> Any ideas on what this is? (tabbing seems to work - its the mouse
> clicking). Am I abusing FocusPanel?
--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Getting continued feedback on the state of a RPC call

2008-09-23 Thread Palietta

Whoops,

obviously, in the code sample, the AsyncCallback object returned by
doLengthComputation() is not an AsyncCallback ...
and I must have forgotten a closing bracket in the poll() function...

still, any ideas?

Thank You


On 23 Set, 14:38, Palietta <[EMAIL PROTECTED]> wrote:
> Here is a sample. It might contain errors but displays what I
> basically tried to do.
>
> // Obviously there is an asynchronous version of this interface
> public interface MyService extends RemoteService {
> public String requestStatusMessage();
>
> public void doLengthyComputation();
>
> }
>
> MyServiceAsync service = (MyServiceAsync) GWT.create(MyService.class);
> Timer t = new MyTimer();
>
> public void callMainService() {
> t.scheduleRepeating(1000);
> ServiceDefTarget endpoint = (ServiceDefTarget) service;
> endpoint.setServiceEntryPoint(GWT.getModuleBaseURL() + "mymodule");
> AsyncCallback callback = new AsyncCallback() {
> // whatever the outcome, stop the polling timer
> public void onFailure(Throwable caught) {
> t.cancel();
> // do something to show failure
> }
>
> public void onSuccess(String result) {
> t.cancel();
> // do something else
> }
> // start the polling timer right before calling the main 
> service
> t.run();
> service.doLengthyComputation();
>
> }
>
> public class MyTimer extends Timer {
> public void run() {
> poll();
> }
>
> public void poll() {
> ServiceDefTarget endpoint = (ServiceDefTarget) service;
> endpoint.setServiceEntryPoint(GWT.getModuleBaseURL() + 
> "mymodule");
> AsyncCallback callback = new AsyncCallback() {
> public void onFailure(Throwable caught) {
> System.out.println("polling failed");
> }
>
> public void onSuccess(String result) {
> System.out.println(result);
> }
> service.requestStatusMessage();
> }
>
> }
>
> On 23 Set, 13:17, Lothar Kimmeringer <[EMAIL PROTECTED]> wrote:
>
> > Hello,
>
> > Palietta schrieb:
>
> > > So I created a client-side Timer which, every second, polls another
> > > remote service that simply returns this state variable. This timer is
> > > started right before the main service is called, and is halted after
> > > the service returns.
>
> > > Being these calls asynchronous, this method didn't work. All scheduled
> > > Timer calls returned after the main service altogether.
>
> > > I know it might be a dumb question, but it would really be helpful for
> > > me to be able to provide the user with continued feedback on the state
> > > of the service they called.
>
> > Can you provide some source how you call the long running task
> > and create the timer? I have some ideas why this fails, but
> > it's only guessing without knowing more.
>
> > Independent from that you might google for "Comet GWT". This
> > might be a solution for you as well.
>
> > Regards, Lothar
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: call a PHP web service from gwt toollibrary

2008-09-23 Thread walden

Claude,

Wouldn't that web service be returning you a huge steaming pile of
SOAP XML?  I think that would be a nightmare to try to deal with in a
GWT client.  Why don't you build a server side proxy for talking web
services, and build a normal GWT interface on the other side to your
GWT client (like RequestBuilder/JSON or GWT RPC)?

Walden

On Sep 23, 3:50 am, cloclo <[EMAIL PROTECTED]> wrote:
> Hi everybody, I'd love to be able to call a PHP web service from gwt
> toollibrary.
>
> Ususally it's rather easy to call from java a PHP web webservice.
>
> ...import org.apache.axis.client.*;
>
> Service service = new Service();
> Call call = (Call) service.createCall(); ... etc
>
> But the gwt compiler does't accept that: the error message is:
>
> -start message--
>
> library-inclusion-in-archive:
> library-inclusion-in-manifest:
> Removing units with errors
>    [ERROR] Errors in 'file:/C:/Documents%20and%20Settings/
> claude_antidot/My%20Documents/java_project/WebApplication1/src/java/
> org/yournamehere/client/MainEntryPoint.java'
>       [ERROR] Line 59: No source code is available for type
> org.apache.axis.client.Service; did you forget to inherit a required
> module?
> Computing all possible rebind results for
> 'org.yournamehere.client.MainEntryPoint'
>    Rebinding org.yournamehere.client.MainEntryPoint
>       Checking rule  class='com.google.gwt.user.rebind.ui.ImageBundleGenerator'/>
>          [ERROR] Unable to find type
> 'org.yournamehere.client.MainEntryPoint'
>             [ERROR] Hint: Previous compiler errors may have made this
> type unavailable
>             [ERROR] Hint: Check the inheritance chain from your
> module; it may not be inheriting a required module or a module may not
> be adding its source path entries properly
> [ERROR] Build failed
>
> --stop message-
>
> Does anybody knows what the gwt is expexcted for or does anybody be
> able to show me a link to sample code doing that?
>
>    -> a call from java gwt's generated code to a php web service.
>
> Thank you for any help or suggestion.
> Claude
--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Problem with CSS and caching

2008-09-23 Thread walden

Here is how I "debug" CSS:

I start my application in Hosted Mode.  Then I invoke "compile/
browse", which starts up IE in my case.  Then I can patch CSS files
right in my project (where they are version controlled; don't forget
CM when doing important projects;-), refresh the browser, and get
immediate gratification...well, immediate feedback anyway.  There is
never a cacheing delay in this setup.

Walden

On Sep 22, 8:41 pm, p4r1tyb1t <[EMAIL PROTECTED]> wrote:
> We are currently using GWT for a medium size project. Currently we are
> facing couple of issues one issue has to deal with CSS cache, when our
> Interface developer team try to debug a certain CSS issue and they
> modify the CSS on deployed war, they don't see the result of changes
> right away rather it takes few minutes to see the result. My question
> is does GWT has some sort of cache mechanism?
--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Getting continued feedback on the state of a RPC call

2008-09-23 Thread Lothar Kimmeringer

Palietta schrieb:

> obviously, in the code sample, the AsyncCallback object returned by
> doLengthComputation() is not an AsyncCallback ...
> and I must have forgotten a closing bracket in the poll() function...
> 
> still, any ideas?

Why are you calling timer.run()? The comment doesn't fit to
that because the start of the timer already happens at the
beginning with t.scheduleRepeating(1000)

Is there some kind of synchronization happening on server-
side, blocking the retrieval of the status while the
computation is still in progress? Maybe some printlns
on the server-side help to find out.

In addition to that you might check inside the timer if
another status-request is still active to avoid the
flooding of requests.


Regards, Lothar

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



Re: Possible to split GWT application in seperate WAR files?

2008-09-23 Thread walden

Hi,

I think the answer is 'no', although there may be work in the
pipelines to address late binding among GWT modules (I don't track
that).

However, from a configuration management POV, what you are proposing
makes no sense because you will need to do integration testing of the
new configuration consisting of an unmodified module A and a modified
module B.  If you don't do that testing, then your production
environment will be in an unkown configuration (i.e., technically
broken).  If you do do that testing, then you will have had
opportunity to package the entire new configuration, which might as
well be a monolilthic build as not.

So where's the advantage?

Walden

On Sep 23, 4:27 am, cschoett <[EMAIL PROTECTED]> wrote:
> Hello,
>
> i have a question related to packaging a larger business application.
> I am building a GWT application that contains two parts, a generic
> part and a customer specific part that will be changed for every
> customer. Both parts depend on each other and shall be integrated into
> one big application.
> A major requirement is that the generic part shall be developed and
> deployable independently from the customer specific part. If we for
> example discover a bug or add features to the generic part we want to
> deliver an archive (WAR file) to the customer without touching the
> customer specific part (in some cases we even won't have access to the
> customer specific part.
>
> As far as I know so far, it is possible to create two seperate modules
> where the customer specific modules inherits the generic module. So I
> have an idependance at source level. But when I compile the customer
> specific module, both modules are compiled into one folder. Is it
> possible to separate the two modules and package them into separate
> WAR files? Is there any other way to integrate two modules so that the
> can be developed and deployed independently?
>
> Many thanks in advance.
>
> Kind regards,
> Christoph
--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Opening and Loading a GWT Module from another module

2008-09-23 Thread walden

GWT is not Java; it doesn't have dynamic class loading.  Maybe
someday.

In the interim, is there a way to describe your goal without making
technology assumptions like this?  Maybe there is a way to get the
behavior you want using GWT in its current form, but you'll need to
say more.  Also, the "in a new Window" is not usually the best way to
design with GWT.

Walden

On Sep 23, 6:11 am, Halabe <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> Does anyone know how can I open and reload a GWT module from another
> module in a new Window??
>
> Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



getBoundsZoomLevel using bounds is not working

2008-09-23 Thread neversaydie

Hello,

I have a set of lat longs say 200.
I construct a polygon out of these points. When i render this polygon
the, zoom level is not set correctly set for some reasons.

Can anybody help me why this is happeneing?

Here is my code

   LatLng[] points = new LatLng[coordinates.size()];
LatLngBounds bounds = new LatLngBounds();

int index = 0;
for ( Coordinate coordinate : coordinates ) {
points[index] = new LatLng( coordinate.getLatitude(),
coordinate.getLogitude() );
bounds = bounds.extend( points[index] );
index++;
}
Polygon polygon = new Polygon( points, color, 10, 0.0, color,
0.7 );

mapWidget.clearOverlays();
mapWidget.addOverlay( polygon );
 
mapWidget.setCenter( bounds.getCenter(),mapWidget.getBoundsZoomLevel( bounds ));


--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



url parameters

2008-09-23 Thread Dirtybit

Hi,
I am building a gwt web app in which users can ask for a navigation
route between two points.
The coordinates of the points are stored in a database so the user
only has to provide two names.
The names of the points are also available from a portal that we
developed and contains information about
these geopoints
I was wondering if it is possible to pass the departure and
destination names as url parameters to my gwt app, so as to show the
route immediately without having to provide them throught the
appplication ui.
How can I read these parameters in gwt?

Thanks in advance
  giannis
--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Opening and Loading a GWT Module from another module

2008-09-23 Thread Halabe

Hi Walden,

My purpose is to view an image that is uploaded in the same session
without having to refresh the whole page.

I was searching for a way to view the image but I could not view any
image that is uploaded in the session that I am trying to view it in.

I am getting the error file not found.

If you have any idea how I can solve this issue, I will appreciate it.

Thank you.

On Sep 23, 4:15 pm, walden <[EMAIL PROTECTED]> wrote:
> GWT is not Java; it doesn't have dynamic class loading.  Maybe
> someday.
>
> In the interim, is there a way to describe your goal without making
> technology assumptions like this?  Maybe there is a way to get the
> behavior you want using GWT in its current form, but you'll need to
> say more.  Also, the "in a new Window" is not usually the best way to
> design with GWT.
>
> Walden
>
> On Sep 23, 6:11 am, Halabe <[EMAIL PROTECTED]> wrote:
>
> > Hi All,
>
> > Does anyone know how can I open and reload a GWT module from another
> > module in a new Window??
>
> > Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: url parameters

2008-09-23 Thread Greg

The GWT widget library (http://gwt-widget.sourceforge.net) provides
this functionality.  You simply say:

String departure =
WindowUtils.getLocation().getParameter("departure");

If you don't want to use the GWTWL, then you can parse the URL
yourself.  First create a native method to get access to the page's
URL and parse out the parameters you need.  Here's an example of a
native method that can do that for you:

public static native String getURL() /*-{
return $wnd.location.href;
}-*/;

The just use indexOf() and substring() to do the parsing...

-Greg

On Sep 23, 9:36 am, Dirtybit <[EMAIL PROTECTED]> wrote:
> Hi,
> I am building a gwt web app in which users can ask for a navigation
> route between two points.
> The coordinates of the points are stored in a database so the user
> only has to provide two names.
> The names of the points are also available from a portal that we
> developed and contains information about
> these geopoints
> I was wondering if it is possible to pass the departure and
> destination names as url parameters to my gwt app, so as to show the
> route immediately without having to provide them throught the
> appplication ui.
> How can I read these parameters in gwt?
>
> Thanks in advance
>   giannis
--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: url parameters

2008-09-23 Thread Ian Bambury
Or you could use

String departure = Window.Location.getParameter("departure");

Ian

http://examples.roughian.com


2008/9/23 Greg <[EMAIL PROTECTED]>

>
> The GWT widget library (http://gwt-widget.sourceforge.net) provides
> this functionality.  You simply say:
>
> String departure =
> WindowUtils.getLocation().getParameter("departure");
>
> If you don't want to use the GWTWL, then you can parse the URL
> yourself.  First create a native method to get access to the page's
> URL and parse out the parameters you need.  Here's an example of a
> native method that can do that for you:
>
> public static native String getURL() /*-{
>return $wnd.location.href;
> }-*/;
>
> The just use indexOf() and substring() to do the parsing...
>
> -Greg
>
> On Sep 23, 9:36 am, Dirtybit <[EMAIL PROTECTED]> wrote:
> > Hi,
> > I am building a gwt web app in which users can ask for a navigation
> > route between two points.
> > The coordinates of the points are stored in a database so the user
> > only has to provide two names.
> > The names of the points are also available from a portal that we
> > developed and contains information about
> > these geopoints
> > I was wondering if it is possible to pass the departure and
> > destination names as url parameters to my gwt app, so as to show the
> > route immediately without having to provide them throught the
> > appplication ui.
> > How can I read these parameters in gwt?
> >
> > Thanks in advance
> >   giannis
> >

--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Poll: GWT 1.4.62 vs 1.5 -- what are you using? what are your plans?

2008-09-23 Thread kozura

Concur with Thomas, the ROI of generics and annotations with 1.5 made
switching a no-brainer even at M1, even for a fairly large project.
With a good IDE, coding productivity and bug rates are *vastly*
improved.  1.5 is quite stable now, but even when it wasn't, most
problems were point issues for particular applications that could be
temporarily worked around.

I'm sure you have your reasons, but the web moves quickly, sticking
with older technology for a year much less 4 seems the bigger risk, by
falling behind in capabilities and support.

On Sep 22, 3:57 pm, John Gunther <[EMAIL PROTECTED]> wrote:
> Trying to get a sense of how quickly the migration to GWT 1.5 from
> 1.4.62 will (or has already) occurred by asking:
>
> 1) Are you using GWT 1.5 right now?
> 2) Are you using 1.4.62 right now?
> 3) Do you expect to be using GWT 1.5 six months from now?
> 4) Do you expect to be using GWT 1.4.62 six months from now?
> 5) Do you expect to be using GWT 1.5 one year from now?
> 6) Do you expect to be using GWT 1.4.62 one year from now?
> 7) How long before you expect to abandon 1.4.62 completely and use
> only 1.5 or higher?
>
> My answers: No, Yes, Yes, Yes,  Yes, Yes, 4 years from now.
>
> John
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: getBoundsZoomLevel using bounds is not working

2008-09-23 Thread neversaydie

Hello,

 Can anybody sugest something please ?

On Sep 23, 2:29 pm, neversaydie <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I have a set of lat longs say 200.
> I construct a polygon out of these points. When i render this polygon
> the, zoom level is not set correctly set for some reasons.
>
> Can anybody help me why this is happeneing?
>
> Here is my code
>
>LatLng[] points = new LatLng[coordinates.size()];
> LatLngBounds bounds = new LatLngBounds();
>
> int index = 0;
> for ( Coordinate coordinate : coordinates ) {
> points[index] = new LatLng( coordinate.getLatitude(),
> coordinate.getLogitude() );
> bounds = bounds.extend( points[index] );
> index++;
> }
> Polygon polygon = new Polygon( points, color, 10, 0.0, color,
> 0.7 );
>
> mapWidget.clearOverlays();
> mapWidget.addOverlay( polygon );
>
> mapWidget.setCenter( bounds.getCenter(),mapWidget.getBoundsZoomLevel( bounds 
> ));
--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Problem with CSS and caching

2008-09-23 Thread Thomas Broyer


On 23 sep, 02:41, p4r1tyb1t <[EMAIL PROTECTED]> wrote:
> We are currently using GWT for a medium size project. Currently we are
> facing couple of issues one issue has to deal with CSS cache, when our
> Interface developer team try to debug a certain CSS issue and they
> modify the CSS on deployed war, they don't see the result of changes
> right away rather it takes few minutes to see the result. My question
> is does GWT has some sort of cache mechanism?

GWT doesn't do anything with CSS stylesheets (apart from injecting
them in the host page when they're declared in your module's
*.gwt.xml), let alone any kind of caching.
(not talking about CssResource from GWT-Incubator here, just "plain
old GWT")

There must be some caching directive on your server (Expires, max-age,
etc.).

When doing such "testings", if I were you, I'd configure my browser to
always consider its own cache stale ("always check for newer versions"
in IE's parlance, switch network.http.use-cache to false in
about:config in Firefox, etc.) and/or use Ctrl+F5 to refresh the page.
Or change the configuration on your server, but it has an impact on
performances (so if you're using your server to test the app and
"appreciate" the user experience...)
--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



GWT 1.5.2 ant switch

2008-09-23 Thread Alejandro D. Garin
Hello,

I have created a new project using the following command with
gwt-windows-1.5.2

*projectCreator.cmd -ant build -out Test
applicationCreator.cmd -out myproject com.myproject.client.Test*

I have noted that build.ant.xml file has a target like this:

  


  

  

Please note the option source="1.4" , should be "1.5" , anyone reported
this?

Thanks
Alejandro

--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



problem with multiple fileupload in GWT 1.5

2008-09-23 Thread Erik van Ingen

In GWT 1.5 I have an implementation like:
http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/ui/FileUpload.html

The difference is that I have 2 FileUpload entries, instead of 1:
final FileUpload fileUploadDataset = new FileUpload();
fileUploadDataset.setName("fileUploadDataset");
verticalPanel.add(fileUploadDataset);

final FileUpload fileUploadMetadata = new FileUpload();
fileUploadDataset.setName("fileUploadMetadata");
verticalPanel.add(fileUploadMetadata);

On the server I only receive 1 file (the first). This was working fine
in GWT 1.4 but not in GWT 1.5.

Any idea what could be my mistake? Or is this simply just a bug in GWT
1.5?



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



Re: gwt call from ,java to php web service

2008-09-23 Thread Amit Dhingra
Call php from GWT...hey I am working on the same thing...
here are two options...
1.

RequestBuilder builder = new RequestBuilder(RequestBuilder.GET,
"http://localhost/JSONTEST/index3.php?id="; + data.getIdentifier());

try {
  Request response = builder.sendRequest(null, new
RequestCallback() {
public void onError(Request request, Throwable exception) {
  // Code omitted for clarity
}

public void onResponseReceived(Request request, Response
response) {
  // Code omitted for clarity
}
  });
} catch (RequestException e) {
  // Code omitted for clarity
}


2.
if(!HTTPRequest.asyncGet("
http://localhost/JSONTEST/index1.php?tosearch=3&id="; + new Date().getTime(),
new JSONResponseTextHandler())) {
Window.alert("Error accessing index1.php");
}

private class JSONResponseTextHandler implements ResponseTextHandler {
/*
 *  (non-Javadoc)
 * @see
com.google.gwt.user.client.ResponseTextHandler#onCompletion(java.lang.String)
 */

public void onCompletion(String responseText) {
/*
 *  When the fetch has been completed we parse the JSON response
and
 *  display the result
 */
..
.
.
.
. write your code here...
} catch (JSONException e) {
System.out.println("Exception" + e.toString());
}

}


Lemme know if you face any problem in this...

Cheers,
Amit Dhingra

On Mon, Sep 22, 2008 at 9:55 PM, cloclo <[EMAIL PROTECTED]> wrote:

>
> Hi everybody,
>
>   I'd love to be able to call a PHP web service from gwt tool
> library.
>
>   Ususally it's rather easy to call  from java a PHP web webservice.
>
>  ...
> import org.apache.axis.client.*;
>
>Service service = new Service();
>Call call = (Call) service.createCall();
>
> ... etc
>
>
> But the gwt compiler don't accept that: the error message  is:
>
> -start message--
>
> Removing units with errors
>   [ERROR] Errors in 'file:/C:/Documents%20and%20Settings/
> claude_antidot/My%20Documents/java_project/WebApplication1/src/java/
> org/yournamehere/client/MainEntryPoint.java'
>  [ERROR] Line 59: No source code is available for type
> org.apache.axis.client.Service; did you forget to inherit a required
> module?
> Computing all possible rebind results for
> 'org.yournamehere.client.MainEntryPoint'
>   Rebinding org.yournamehere.client.MainEntryPoint
>  Checking rule  class='com.google.gwt.user.rebind.ui.ImageBundleGenerator'/>
> [ERROR] Unable to find type
> 'org.yournamehere.client.MainEntryPoint'
>[ERROR] Hint: Previous compiler errors may have made this
> type unavailable
>[ERROR] Hint: Check the inheritance chain from your
> module; it may not be inheriting a required module or a module may not
> be adding its source path entries properly
> [ERROR] Build failed
>
> --stop message-
>
> Does anybody now what the gwt is expexcted for or does anybody be able
> to show me a link to sample code doing that?
>
>   a call from java gwt's generated code to a php web service.
>
> Thank you for any help or suggestion.
>
> Claude.
> [EMAIL PROTECTED]
>
>
>
>
> >
>


-- 
Warm Regards,
Amit Dhingra

--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Problem with CSS and caching

2008-09-23 Thread p4r1tyb1t

Thanks every body,

I reckon that was the case but was not sure since i am new to GWT and
this is our first application. GWT does not lend it self very well to
separation of form from function on client side and when it comes to
division of labor, java is not the first pre-requisite for Interface
people and I guess reverse is true in regards to CSS for java
developers. Thanks though!


On Sep 23, 11:52 am, Thomas Broyer <[EMAIL PROTECTED]> wrote:
> On 23 sep, 02:41, p4r1tyb1t <[EMAIL PROTECTED]> wrote:
>
> > We are currently using GWT for a medium size project. Currently we are
> > facing couple of issues one issue has to deal with CSS cache, when our
> > Interface developer team try to debug a certain CSS issue and they
> > modify the CSS on deployed war, they don't see the result of changes
> > right away rather it takes few minutes to see the result. My question
> > is does GWT has some sort of cache mechanism?
>
> GWT doesn't do anything with CSS stylesheets (apart from injecting
> them in the host page when they're declared in your module's
> *.gwt.xml), let alone any kind of caching.
> (not talking about CssResource from GWT-Incubator here, just "plain
> old GWT")
>
> There must be some caching directive on your server (Expires, max-age,
> etc.).
>
> When doing such "testings", if I were you, I'd configure my browser to
> always consider its own cache stale ("always check for newer versions"
> in IE's parlance, switch network.http.use-cache to false in
> about:config in Firefox, etc.) and/or use Ctrl+F5 to refresh the page.
> Or change the configuration on your server, but it has an impact on
> performances (so if you're using your server to test the app and
> "appreciate" the user experience...)
--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Problem with CSS and caching

2008-09-23 Thread p4r1tyb1t

Thanks every body,

I reckon that was the case but was not sure since i am new to GWT and
this is our first application. GWT does not lend it self very well to
separation of form from function on client side and when it comes to
division of labor, java is not the first pre-requisite for Interface
people and I guess reverse is true in regards to CSS for java
developers. Thanks though!


On Sep 23, 11:52 am, Thomas Broyer <[EMAIL PROTECTED]> wrote:
> On 23 sep, 02:41, p4r1tyb1t <[EMAIL PROTECTED]> wrote:
>
> > We are currently using GWT for a medium size project. Currently we are
> > facing couple of issues one issue has to deal with CSS cache, when our
> > Interface developer team try to debug a certain CSS issue and they
> > modify the CSS on deployed war, they don't see the result of changes
> > right away rather it takes few minutes to see the result. My question
> > is does GWT has some sort of cache mechanism?
>
> GWT doesn't do anything with CSS stylesheets (apart from injecting
> them in the host page when they're declared in your module's
> *.gwt.xml), let alone any kind of caching.
> (not talking about CssResource from GWT-Incubator here, just "plain
> old GWT")
>
> There must be some caching directive on your server (Expires, max-age,
> etc.).
>
> When doing such "testings", if I were you, I'd configure my browser to
> always consider its own cache stale ("always check for newer versions"
> in IE's parlance, switch network.http.use-cache to false in
> about:config in Firefox, etc.) and/or use Ctrl+F5 to refresh the page.
> Or change the configuration on your server, but it has an impact on
> performances (so if you're using your server to test the app and
> "appreciate" the user experience...)
--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



how to clear cache on windows hosted mode

2008-09-23 Thread mooreds

Hi folks,

I am looking for how to clear the hosted mode browsers cache.  In
particular, I'm interested in clearing out the CSS and script tag
content--I'm using some dynamic JSON that I want to make sure is not
cached.

I found one post a month ago that was asking how to do the same thing
for Linux: 
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/9e3a64304d2a01cd

I searched the documentation on the GWT website and didn't see
anything.

I also tried deleting the cache of the IE browser on the machine, but
wasn't sure if that did anything.

Thanks,
Dan
--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Possible to split GWT application in seperate WAR files?

2008-09-23 Thread gregor

Hi Christoph,

To add a little to walden's comments, Tomcat (or JBoss/a.n.other app
server) will allocate a separate class loader to each web application
(WAR) deployed. So if you deploy two WAR's they can both access
classes declared in their parent's class loader (normally this is the
container's own class loader), but they canot see each others classes.

You can call a servlet in web app A from a servlet web app B, but that
invokes the whole HTTP/TCP/IP stack: your server is effectively
calling itself, so this may work fine in development but in the field
it will bring your servers to their knees.

What you may be able to do (depending on your use case) is to deploy
your back end as a RAR (Resource ARchive, the idea being the services,
and their classes/interfaces, are available to all WAR's and EAR's
running on the app server, i.e. the classes are loaded by the app
server's main class loader ): this would mean your GWT web apps would
deployable independently from your back end (potentially).

regards
gregor





On Sep 23, 2:07 pm, walden <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I think the answer is 'no', although there may be work in the
> pipelines to address late binding among GWT modules (I don't track
> that).
>
> However, from a configuration management POV, what you are proposing
> makes no sense because you will need to do integration testing of the
> new configuration consisting of an unmodified module A and a modified
> module B.  If you don't do that testing, then your production
> environment will be in an unkown configuration (i.e., technically
> broken).  If you do do that testing, then you will have had
> opportunity to package the entire new configuration, which might as
> well be a monolilthic build as not.
>
> So where's the advantage?
>
> Walden
>
> On Sep 23, 4:27 am, cschoett <[EMAIL PROTECTED]> wrote:
>
> > Hello,
>
> > i have a question related to packaging a larger business application.
> > I am building a GWT application that contains two parts, a generic
> > part and a customer specific part that will be changed for every
> > customer. Both parts depend on each other and shall be integrated into
> > one big application.
> > A major requirement is that the generic part shall be developed and
> > deployable independently from the customer specific part. If we for
> > example discover a bug or add features to the generic part we want to
> > deliver an archive (WAR file) to the customer without touching the
> > customer specific part (in some cases we even won't have access to the
> > customer specific part.
>
> > As far as I know so far, it is possible to create two seperate modules
> > where the customer specific modules inherits the generic module. So I
> > have an idependance at source level. But when I compile the customer
> > specific module, both modules are compiled into one folder. Is it
> > possible to separate the two modules and package them into separate
> > WAR files? Is there any other way to integrate two modules so that the
> > can be developed and deployed independently?
>
> > Many thanks in advance.
>
> > Kind regards,
> > Christoph
--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Opening and Loading a GWT Module from another module

2008-09-23 Thread walden

You have a successful image upload, and then the server can't find
it?  Or is it some other kind of "file not found"?

On Sep 23, 9:46 am, Halabe <[EMAIL PROTECTED]> wrote:
> Hi Walden,
>
> My purpose is to view an image that is uploaded in the same session
> without having to refresh the whole page.
>
> I was searching for a way to view the image but I could not view any
> image that is uploaded in the session that I am trying to view it in.
>
> I am getting the error file not found.
>
> If you have any idea how I can solve this issue, I will appreciate it.
>
> Thank you.
>
> On Sep 23, 4:15 pm, walden <[EMAIL PROTECTED]> wrote:
>
>
>
> > GWT is not Java; it doesn't have dynamic class loading.  Maybe
> > someday.
>
> > In the interim, is there a way to describe your goal without making
> > technology assumptions like this?  Maybe there is a way to get the
> > behavior you want using GWT in its current form, but you'll need to
> > say more.  Also, the "in a new Window" is not usually the best way to
> > design with GWT.
>
> > Walden
>
> > On Sep 23, 6:11 am, Halabe <[EMAIL PROTECTED]> wrote:
>
> > > Hi All,
>
> > > Does anyone know how can I open and reload a GWT module from another
> > > module in a new Window??
>
> > > Thanks- 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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: how to clear cache on windows hosted mode

2008-09-23 Thread Ian Bambury
It does rather depend what you think is being cached and why. For exanple,
if you are changing a file to UTF-8, you need to make a change in that file
so GWT will know to recompile that class, but, you can try all or any of
these (I'm assuming because of the IE reference, you are on Windows):

1) Highlight the project in Eclipse and hit F5 to ensure that Eclipse is in
sync with the file system

2) Project | Clean to rebuild the project (useful if you have flagged errors
you know aren't errors)

3) Delete the IE cache

4) Delete the bin/tomcat/www directories in the project (and also any other
project which uses the same package names)

5) In the problem class, add a space somewhere (or take the space away -
anything to flag the file as changed).

6) Restart Eclipse (this is a 'what the hell else is there to try' measure
for me, as is a reboot)

7) Sacrifice something to the gods of the cache. A can of lager is my
preferred offering. If the god in question doesn't drink it, don't waste it.
Coffee and a doughnut is a second rate substitute if your company frowns on
the consumption of alcohol before 9.30am.

Ian

http://examples.roughian.com


2008/9/23 mooreds <[EMAIL PROTECTED]>

>
> Hi folks,
>
> I am looking for how to clear the hosted mode browsers cache.  In
> particular, I'm interested in clearing out the CSS and script tag
> content--I'm using some dynamic JSON that I want to make sure is not
> cached.
>
> I found one post a month ago that was asking how to do the same thing
> for Linux:
> http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/9e3a64304d2a01cd
>
> I searched the documentation on the GWT website and didn't see
> anything.
>
> I also tried deleting the cache of the IE browser on the machine, but
> wasn't sure if that did anything.
>
> Thanks,
> Dan
> >

--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



"logLevel should be followed by one of"

2008-09-23 Thread seven.reeds

Hi,

Something screwy is going on and I'm not seeing the problem.  I have
been away from GWT for a couple months on other projects.  In the
meantime my linux box was upgraded to a different distribution than I
have used before.  Now, I try to run the GWT compile script and get:

-logLevel should be followed by one of
  ERROR, WARN, INFO, TRACE, DEBUG, SPAM, or ALL

This is extra odd since I am not using logLevel in the -
compile script.  My script looks like:

#!/bin/sh
APPDIR=`dirname $0`;
java  -cp "$APPDIR/src:$APPDIR/bin:/path/to/gwt-linux-1.5.0/gwt-
user.jar:/path/to/gwt-linux-1.5.0/gwt-dev-linux.jar"
com.google.gwt.dev.GWTCompiler -out "$APPDIR/www" "$@"
com.xyz.foo.myProject;


I am running: Red Hat Enterprise Linux Server release 5.2
Java: version "1.4.2"
GWT 1.5.0

This also happens with GWT 1.5.2

This has got to be something trivial, right?

--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Opening and Loading a GWT Module from another module

2008-09-23 Thread Halabe

The image upload is successful since I can see the images in the
server folder and when I refresh the page I can also see it on the
client.

IThe error I am getting is:
Resource not found: images/imagePath/Image1.jpg could a file be
missing from the public path or a  tag misconfigured in
module

The images folder is in the public folder of the Module that display
the images. I upload images from another module and sometimes from the
same module.


On Sep 23, 8:56 pm, walden <[EMAIL PROTECTED]> wrote:
> You have a successful image upload, and then the server can't find
> it?  Or is it some other kind of "file not found"?
>
> On Sep 23, 9:46 am, Halabe <[EMAIL PROTECTED]> wrote:
>
> > Hi Walden,
>
> > My purpose is to view an image that is uploaded in the same session
> > without having to refresh the whole page.
>
> > I was searching for a way to view the image but I could not view any
> > image that is uploaded in the session that I am trying to view it in.
>
> > I am getting the error file not found.
>
> > If you have any idea how I can solve this issue, I will appreciate it.
>
> > Thank you.
>
> > On Sep 23, 4:15 pm, walden <[EMAIL PROTECTED]> wrote:
>
> > > GWT is not Java; it doesn't have dynamic class loading.  Maybe
> > > someday.
>
> > > In the interim, is there a way to describe your goal without making
> > > technology assumptions like this?  Maybe there is a way to get the
> > > behavior you want using GWT in its current form, but you'll need to
> > > say more.  Also, the "in a new Window" is not usually the best way to
> > > design with GWT.
>
> > > Walden
>
> > > On Sep 23, 6:11 am, Halabe <[EMAIL PROTECTED]> wrote:
>
> > > > Hi All,
>
> > > > Does anyone know how can I open and reload a GWT module from another
> > > > module in a new Window??
>
> > > > Thanks- 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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Sharing the localization code between client and server

2008-09-23 Thread Dobes

It seems like it should be possible to implement a kind of server-side
GWT.create() that generates an subclass using cglib or one of the
other bytecode generators.  Maybe it would only work for the Constants
and Messages interfaces, and a minor selection of others, but it would
be quite useful.  Unfortunately, it would be difficult to implement
this outside of GWT because the client code a) can't use any classes
not supported by GWT and b) must use GWT.create with a literal class
(not a variable) as the parameter.

On Sep 23, 5:21 am, Lothar Kimmeringer <[EMAIL PROTECTED]> wrote:
> Martin Trummer schrieb:
>
> > Maybe another approach would be to extend the GWT-i18n tool, which
> > already does the properties file parsing and creates the interface
> > file.
> > I have not looked at this tool yet, but maybe it can be extended to
> > generate another file for the backend, that implements the interface
> > methods and builds the messages from the ResourceBundle.
>
> That would make force everybody to actually use the tool regularily
> to create the interface-file. I - for example - doesn't use the tool
> but add methods to the interface-file by hand while developing the
> GUI. In the long run, I realized that I'm faster and I'm also adding
> Javadoc-comments describing the meaning behind the entry.
>
> Regards, Lothar
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT spring integration

2008-09-23 Thread olivier nouguier
hi all,

http://code.google.com/p/net-orcades-spring/

Host my GWT Spring integration servlet with a sample project.

Working under Spring, WTP, Cypal, Maven.


On Mon, Sep 22, 2008 at 9:43 AM, olivier nouguier <
[EMAIL PROTECTED]> wrote:

> Hi,
>  I'm using a simple dispatch servlet to dispatch the RPC request to a
> spring managed bean:
>
> http://code.google.com/p/gwt-spring-dispatcher/
>
> IMHO, it's quite simple and not intrusive.
>
>
>
> On Sun, Sep 21, 2008 at 8:24 AM, razo <[EMAIL PROTECTED]> wrote:
>
>>
>> Dear All,
>>
>> am trying to integrate gwt with springframwork i search the web and i
>> found many articles like
>>
>>
>> http://technophiliac.wordpress.com/2008/08/24/giving-gwt-a-spring-in-its-step/
>>
>> and
>> http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/40d2de34a06a17c9/3872814bc0197b16
>>
>> it work great with me until i tried to run the application in the host
>> mode so i can debug my entire tiers (server and client side) but
>> unfortunately the GWT shell do not give me the ability to play with
>> web.xml so i cant configure my spring context using the
>> DispatcherServlet..
>>
>> so do anyone have any idea on how to integrate spring with GWT or how
>> can i update the generated web.xml in the host mode so i can configure
>> the spring  DispatcherServlet??
>>
>> thanks,
>>
>> >>
>>
>
>
> --
> "Quand le dernier arbre sera abattu, la dernière rivière asséchée, le
> dernier poisson péché, l'homme va s'apercevoir que l'argent n'est pas
> comestible"
> - proverbe indien Cri
>



-- 
"Quand le dernier arbre sera abattu, la dernière rivière asséchée, le
dernier poisson péché, l'homme va s'apercevoir que l'argent n'est pas
comestible"
- proverbe indien Cri

--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: how to clear cache on windows hosted mode

2008-09-23 Thread mooreds

Hi Ian,

Thanks for the response; I am on Windows.

To be more specific, I'm pulling data in from another server via JSONP
in the manner described in this article:

http://code.google.com/support/bin/answer.py?answer=65632&topic=11368

I've found that the 

GWT TestCase Erreur

2008-09-23 Thread [EMAIL PROTECTED]

Hello, i have create a GwtTestCase class.


package com.zoltar.rol.gwt.client.ui;

import com.google.gwt.junit.client.GWTTestCase;

public class ROLEditorTest extends GWTTestCase {

@Override
public String getModuleName() {
// TODO Auto-generated method stub
return "com.zoltar.rol.gwt.Start";
}
public void testSimple() {
assertTrue(true);
}
}

When I try to launch it, I have this error message :

com.google.gwt.junit.JUnitFatalLaunchException: The test class
'com.zoltar.rol.gwt.client.ui.Test' was not found in module
'com.zoltar.rol.gwt.StartTest'; no compilation unit for that type was
seen
at
com.google.gwt.junit.JUnitShell.checkTestClassInCurrentModule(JUnitShell.java:
193)
at com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:628)
at com.google.gwt.junit.JUnitShell.runTest(JUnitShell.java:150)
at com.google.gwt.junit.client.GWTTestCase.runTest(GWTTestCase.java:
219)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at com.google.gwt.junit.client.GWTTestCase.run(GWTTestCase.java:132)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:
130)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:
38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:
460)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:
673)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:
386)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:
196)


I check my .classpath file and I think that there are all the jars I
need.


















--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: gwittir with gwt1.5

2008-09-23 Thread gwtdude

I'm having the same problem.

Has anyone found a fix yet?



--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Regarding MenuBar

2008-09-23 Thread nishant (bhai)

Can i select menu item by using hot key(like combination of alt+f
etc.).If yes so please guide me .I have another problem with
setAccesskey(char ) method of HasFocus Interface  .It is working fine
with Button ,but not working with PushButton and ToggleButton.while it
implemented in all class(button,pushbutton etc).Please guide me as
soon as possible.

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



Re: gwittir with gwt1.5

2008-09-23 Thread gwtdude

I just ran into the same issue.

Has anyone found a fix yet?


--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Getting continued feedback on the state of a RPC call

2008-09-23 Thread Deba

May be you would like to try polling a servlet using HttpRequest class
for your timer calls.

Lets know if you succeed.

cheers,


On Sep 23, 4:09 pm, "Amit Dhingra" <[EMAIL PROTECTED]> wrote:
> Hi,
> Event I am a newbie in java and GWt, though how about partitioning your long
> job, as in...
> e.g.  For a http call which needs to access names say 100,000 in number. I
> might actually partition this call in say 26 calls with each call querying
> names starting with each of the 26 alphabets... and on the callback of the
> first function I might update the user and make the second call and so on.
> Actually do a chaining... :)
>
> Thats just a guess... may be that I might be totally wrong on this... :)
>
> Cheers,
> Amit Dhingra
>
>
>
> On Tue, Sep 23, 2008 at 3:19 PM, Palietta <[EMAIL PROTECTED]> wrote:
>
> > Hi all,
>
> > I have a GWT application which uses a remote service that does some
> > complex, and potentially long work. However, I don't want to hold the
> > user unaware of the status of their request for too long. So I would
> > like a way for the client app to receive frequent information on the
> > service status, which would be posted to the UI in real time.
>
> > I've unsuccessfully tried the following way:
>
> > The client makes a call to the remote service, which starts doing its
> > job.
> > The service itself, in turn, modifies some state variable during the
> > course of its computation.
> > So I created a client-side Timer which, every second, polls another
> > remote service that simply returns this state variable. This timer is
> > started right before the main service is called, and is halted after
> > the service returns.
>
> > Being these calls asynchronous, this method didn't work. All scheduled
> > Timer calls returned after the main service altogether.
>
> > I know it might be a dumb question, but it would really be helpful for
> > me to be able to provide the user with continued feedback on the state
> > of the service they called.
>
> > Thank You
>
> --
> Warm Regards,
> Amit Dhingra

--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Client-side GChart 2.2: Sparklines and better/faster solidly filled line charts.

2008-09-23 Thread amadeus

Hi,
I'm using your software and I would add a simple zoom tool with mouse
selection
I need to know the exact position of axis origin (left bottom) to
transform x,y mouse in chart's coordinates

here my code
after
   sinkEvents(Event.ONMOUSEMOVE|Event.ONMOUSEDOWN|
Event.ONMOUSEUP);
I tried to calculate the origin
public void onBrowserEvent(Event event) {
double x;
double y;
double mouseX=event.getClientX()-getAbsoluteLeft();
double 
mouseY=getAbsoluteTop()+getOffsetHeight()-event.getClientY();
Axis xAxis = getXAxis();
Axis yAxis = getYAxis();
double dx=xAxis.getAxisLabelThickness() +
xAxis.getTickLabelThickness() + xAxis.getTickLength();
double dy=yAxis.getAxisLabelThickness() +
yAxis.getTickLabelThickness() + yAxis.getTickLength();
x=mouseX-dx;
y=mouseY-dy;
// transform in chart coordinates
x=xmin+x*(xmax-xmin)/getXChartSize();
y=ymin+y*(ymax-ymin)/getYChartSize();
I'm on the right way or there is a simpler method?
thanks
Albert
ps Excuse me for my english

On 22 Set, 23:12, John Gunther <[EMAIL PROTECTED]> wrote:
> Client-sideGChartis an open source GWT library that supports bar,
> line, and pie charts, and yet adds nothing but its ~2,000 lines of
> Java to your application's list of dependencies:
>
> http://gchart.googlecode.com
>
> This 2.2 release adds:
>
> * A new LINE symbol type for faster/better solidly connected line
> charts
> * A new layout algorithm that centers title, footnotes, axis labels
> and legend within explicitly-sizable bands around the plot area. In
> particular, since these bands have default thicknesses of 0px when
> empty, Sparkline charts are now straightforward.
>
> For full details, including links to example charts illustrating the
> new features, see theGChart2.2 release notes:
>
> http://gchart.googlecode.com/svn/trunk/doc/com/googlecode/gchart/clie...
>
> Related posts/acknowledgments:
>
> 1) This post by Niall Haslam motivated the much-needed switch to a new
> chart decoration layout algorithm:
>
> http://groups.google.com/group/Google-Web-Toolkit/msg/5be9867eb81c9ca4
>
> 2) I used the technique explained in this post by Ian Bambury
> (http://examples.roughian.com) to workaround a perplexing IE7-only
> screen-not-repainting problem that the revisions of this release
> inadvertently exposed:
>
> http://groups.google.com/group/Google-Web-Toolkit/msg/31b2d8e0eace6f3c
>
> 3) The improved line chart capabilities were motivated by the far-too-
> slowly-updating solidly connected line chart code that Malcolm Gorman
> sent me. A new live demo chart, deliberately (HTML-element) sized
> similarly to Malcolm's chart, illustrates various ways (smaller
> charts, lower resolution connecting lines) you can use the new LINE
> symbol type to workaround the significant performance limitations that
> still remain for this kind of "non-rectangle-friendly" chart.
>
> Your ideas for improving Client-sideGChartand help in solving its
> implementation problems were essential to this 2.2 release. Thank-you.
>
> John C. Guntherhttp://gchart.googlecode.com

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



Re: url parameters

2008-09-23 Thread sutarsa giri
Hi Dirtybit,
i thought you could access Window.Location to access required information
from url

regards,
Sutarsa

On Tue, Sep 23, 2008 at 8:36 PM, Dirtybit <[EMAIL PROTECTED]> wrote:

>
> Hi,
> I am building a gwt web app in which users can ask for a navigation
> route between two points.
> The coordinates of the points are stored in a database so the user
> only has to provide two names.
> The names of the points are also available from a portal that we
> developed and contains information about
> these geopoints
> I was wondering if it is possible to pass the departure and
> destination names as url parameters to my gwt app, so as to show the
> route immediately without having to provide them throught the
> appplication ui.
> How can I read these parameters in gwt?
>
> Thanks in advance
>  giannis
> >
>

--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Memory Leak in IE 7 using GWT

2008-09-23 Thread Chuck

We have an app that uses GWT with large HTML content (60-70 K) that
produces large memory leaks (2-3 M) in IE 7.  It does not exhibit the
same behavior in Firefox (memory goes up with multiple document loads,
but goes back down after a few seconds of inactivity).

We have looked at the app with the JS memory leak detector which is
reporting many memory leaks.  This tool reports similar memory leaks
for the "kitchen sink" example.

Are these "real" or is there something about the GWT code that JS
doesn't understand?  We know that we are leaking memory that requires
browser shutdown to reclaim, but the bulk of the leaks reported by JS
seem to be gui components that don't result in significant memory
usage.

Has anyone else experienced this?  How did you solve the problem?

Thanks in advance,
Chuck

--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: "logLevel should be followed by one of"

2008-09-23 Thread seven.reeds

nevermind, the latest SDK was installed in an unusual location and so
was not in my path.  I should have clued in on the java version I
reported.


--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Sharing the localization code between client and server

2008-09-23 Thread Lothar Kimmeringer

Dobes schrieb:
> It seems like it should be possible to implement a kind of server-side
> GWT.create() that generates an subclass using cglib or one of the
> other bytecode generators.

Actually I think you can do that with the functionality of
the JVM itself using Proxies:

--
public interface MyConstants implements Messages{
public String LocalizedMessage(String argument);
}
--
public class MyConstantsProxy implements java.lang.reflect.InvocationHandler{
private ResourceBundle rb;
public MyConstantsProxy(ResourceBundle rb){
this.rb = rb;
}
public Object invoke(Object proxy, Method method, Object[] args) throws 
Throwable {
String value = rb.getString(method.getName());
for (int i = 0; args != null && i < args.length; i++){
if (args[i] == null) continue;
value = value.replaceAll("\\{" + i + "\\}", args[i].toString());
}
return value;
}
}
--

To use the proxy you have to get the resource-bundle and create the
proxy, so an imaginary GWT.create-method might look like the following:

--
public static Object create(Class clazz, Locale loc){
ResourceBundle rb = ResourceBundle.getBundle(clazz.getName(), loc);
MyConstants constants = (MyConstants) Proxy.newProxyInstance(
getClass().getClassLoader(), new Class[]{MyConstants.class},
new MyConstantsProxy(rb));
}
--

And use the method normally:

MyConstants constants = (MyConstants) GWT.create(MyConstants.class,
new Locale("de", "DE"));
System.out.println(constants.LocalizedMessage("this is the message"));

> Maybe it would only work for the Constants
> and Messages interfaces, and a minor selection of others, but it would
> be quite useful.

I think restricting it to Messages and Constants is OK because
these two are the only ones anyway where the special behavior
of GWT.create is used.

> Unfortunately, it would be difficult to implement
> this outside of GWT because the client code a) can't use any classes
> not supported by GWT and b) must use GWT.create with a literal class
> (not a variable) as the parameter.

The skeleton above should work and is not in conflict with the
current concept of GWT. You need the second parameter because
you must be able to get different "classes" in dependence from
the Locale being set on the client.

The "only" thing missing is implementing your own version of
ResourceBundle with the same algorithm for deciding which
property-file to be used in dependence to the requested Locale
(no use of System-Locale but directly fall back to the main
property-file, wrong default Locales for EN and ES, etc.)
and UTF-8 to be used as encoding. The latter can be done
by using Properties.load(Reader) implementing all the methods
of ResourceBundle or write an InputStream that is reading in
the data as UTF-8 and converts all non-8859_1-characters to
the escaped sequence being accepted by Properties. Other
things like caching of created proxies, support of the
annotations that came with GWT 1.5 etc. IMHO can be added later.

And that's the part where I don't have the time at the moment. ;-)


Regards, Lothar

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



Re: GWT Maps API fails on host mode

2008-09-23 Thread Eric Ayers

Today I took a fresh install of Ubuntu 8 64 bit and  reproduced the
problem.  I added issue 178 to the Issue tracker:

http://code.google.com/p/gwt-google-apis/issues/detail?id=178


On Sep 22, 8:10 am, "Eric Ayers" <[EMAIL PROTECTED]> wrote:
> Here's a followup suggestion that might help on Ubuntu Hardy:
>
> unziphttp://google-web-toolkit.googlecode.com/svn/tools/redist/mozilla/moz...
> at /usr/lib/mozilla-1.7.13 and set
> export MOZILLA_FIVE_HOME=/usr/lib/mozilla-1.7.13
>
> 2008/9/20 Eric Ayers <[EMAIL PROTECTED]>:
>
> > I admit that the version of Hardy I tested with is not a stock
> > version.   I'm sorry, but I don't know the details of how it differs.
> > I did check to see that the binaries were 64 bit, and that the JVM was
> > 32 bit.
>
> > -Eric.
>
> > On Sat, Sep 20, 2008 at 8:43 AM, Einstein0970 <[EMAIL PROTECTED]> wrote:
>
> >> Hi,
>
> >> I have found a workaround. It seems like Google team tested the 64bit
> >> Ubuntu Hardy and they say it works. I just don't know how this can be.
> >> Anyway, I have installed Sun VirtualBox with a Ubuntu Hardy 32bit and
> >> with the *SAME* setup Eclipse34, gwtmaps 290, JDK1.6, GWT 1.5 and
> >> HelloMaps, MAGIC!!  Averything works like a charm. So I conclude by
> >> writing that one of those components is just not working properly
> >> under Ubuntu 8.04 64bit. I would say it is the hosted mode component
> >> since HelloMaps works fine when deployed on tomcat.
>
> >> This is a bug!
>
> >> - Erick
>
> >> On Sep 18, 9:07 am, Niko <[EMAIL PROTECTED]> wrote:
> >>> Hi
>
> >>> Same problem here : identical stack trace and warning messages.
>
> >>> I was working on several little testing projects in gwt/gwt-ext/
> >>> gwtmaps a month ago.
> >>> Now I'm unable to launch any of them using gwtmaps in the host mode.
> >>> The platform environment (OS/eclipse/jars)  didn't change - same PC,
> >>> none used it.
>
> >>> Thus, if I compile and deploy these projects under my Tomcat, all is
> >>> working fine.
>
> >>> One hour ago, I tried to launch the HelloMaps from the 290 release,
> >>> with the inner launch-scripts.
> >>> Same results : the shell command aborts with Einstein's trace, the
> >>> compile&deploy test is OK
>
> >>> Any kind of idea would be appreciated :o)
>
> >>> ps : I've check that my IE network/proxy settings were still good
>
> >>> On 18 sep, 02:16, "Eric Ayers" <[EMAIL PROTECTED]> wrote:
>
> >>> > I didn't use eclipse at all.  I ran "HelloMaps-shell" from the command
> line.
>
> >>> > On Wed, Sep 17, 2008 at 5:23 PM, Einstein0970 <[EMAIL PROTECTED]>
> wrote:
>
> >>> > > What version of eclipse did you use?
>
> >>> > > On Sep 17, 2:20 pm, "Eric Ayers" <[EMAIL PROTECTED]> wrote:
> >>> > > > I just loaded gwt 1.5.2 and gwt-mapsmilestone r290 onto a machine
> whose
> >>> > > > /etc/issue reports Ubuntu 8.04.1 (64 bit)
>
> >>> > > > JVM is: /usr/lib/jvm/ia32-java-6-sun/jre/bin/java
>
> >>> > > > I ran the stock HelloMaps demo without a problem.
>
> >>> > > > Again, you might try the 'wireshark' tool to make sure that
> requests from
> >>> > > > hosted mode are actually making it off the machine.
>
> >>> > > > On Wed, Sep 17, 2008 at 2:03 PM, Einstein0970 <[EMAIL PROTECTED]>
> wrote:
>
> >>> > > > > Yeah it gets tohttp://maps.google.com/maps?gwt=1&file=api&v=2.x
> >>> > > > > from my machine using firefox 3. No proxies in my way either.
>
> >>> > > > > On Sep 17, 1:58 pm, "Eric Ayers" <[EMAIL PROTECTED]> wrote:
> >>> > > > > > Could it be that you have some sort of proxy setup to get to
> the
> >>> > > > > Internet?
> >>> > > > > > If so, the hosted mode browser probably isn't aware of it.
>
> >>> > > > > > John T. on the GWT team suggested you try 'wireshark' to see
> if the
> >>> > > > > requests
> >>> > > > > > to fetch the GoogleMapsAPI were getting off of the machine.
>
> >>> > > > > > -Eric.
>
> >>> > > > > > On Wed, Sep 17, 2008 at 1:24 PM, Eric Ayers <[EMAIL PROTECTED]
>
> >>> > > wrote:
> >>> > > > > > > I'm wondering if it is some sort of network issue -
> theMapsAPI
> >>> > > has to
> >>> > > > > > > load from a server at google.
>
> >>> > > > > > > Also, even though you shouldn't need a key, you could go to
> >>> > > > > > >http://code.google.com/apis/mapsandgetoneforlocalhost.
>  IIRC,
> >>> > > some
> >>> > > > > > > parts of the API (Geocoding maybe?) do need a key, even if
> its
> >>> > > > > localhost.
>
> >>> > > > > > > On Wed, Sep 17, 2008 at 1:17 PM, Einstein0970 <
>
> [EMAIL PROTECTED]>
>
> >>> > > > > wrote:
>
> >>> > > > > > >> Hi Eric,
>
> >>> > > > > > >> I have installed the latest and greatest JVM32bit and
> stillfails
> >>> > > on
> >>> > > > > > >> the same error.
> >>> > > > > > >> Any other ideas?
>
> >>> > > > > > >> - Erick
>
> >>> > > > > > >> On Sep 15, 8:46 pm, "Eric Ayers" <[EMAIL PROTECTED]> wrote:
> >>> > > > > > >> > We have had reports of GWT being used sucessfully on
> Ubuntu 8
> >>> > > and 9.
> >>> > > > > > >>  One
> >>> > > > > > >> > more thing - I think you must be using the 32 bit JVM or
> you
> >>> > > > > pr

need help to refresh frame using javascript function

2008-09-23 Thread AyeAyeAung

Hi,
I have 3 frames added on one panel, again that panel is added on
Viewport(GWT-Ext). I want to refresh frame using JSNI or javascript
function. Normally, we use
"top.headerFrame.location.href=top.headerFrame.location;" for frame
(ie. named "headerFrame" in this code) that is directly added to html
page. But this is not working on GWT. cos, in GWT we need panel as one
media to add widget. Is it? So, please teach me how to access frame
inside panel to refresh using javascript code. Thanks in advance.

I already tried with this code. It's working.
Frame tFrame = new Frame();
String frameUrl = tFrame.getUrl();
tFrame.setUrl(frameUrl);
I want the javascript funtion to refresh GWT frame similar to
"top.headerFrame.location.href=top.headerFrame.location;" . Hope reply
as soon as possible. I tried to search the solution over 1 week :-(.

Thanks and Regards,
Aye

--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: RPC host mode fine --- RPC deployed web mode fails

2008-09-23 Thread Barry

OK, then ... for the record, the Security Manager settings that
control this in Tomcat 5.5 are:

// These permissions should be inserted into the catalina.policy file
in the conf directory
grant codeBase "file:${catalina.home}/webapps/-" {
permission java.lang.reflect.ReflectPermission
"suppressAccessChecks";
};

Note that the way this is written, the permission is granted for all
webapps. To refine it further, change the codeBase clause.

Whew!


On Sep 19, 1:38 pm, Jason Essington <[EMAIL PROTECTED]> wrote:
> I thought there was some talk previously about the serializers using  
> the getters/setters rather than directly molesting the fields to get  
> around the security policy issues like you were having ... though that  
> discussion was quite a while ago, and I don't remember the details now.
>
> -jason
>
> On Sep 19, 2008, at 2:25 PM,Barrywrote:
>
>
>
> > Yes, it does, Jason.
>
> > The public getters and setters are there to protect the private member
> > variables. Since I made the member variables public (see reply to
> > Lothar above), I'm having no trouble serializing.
>
> > Why do you ask about the getters and setters???
>
> > Thanks!
>
> > On Sep 19, 8:10 am, Jason Essington <[EMAIL PROTECTED]> wrote:
> >> does your object have public getters and setters?
>
> >> -jason
> >> On Sep 19, 2008, at 12:27 AM,Barrywrote:
>
> >>> Hi ...
>
> >>> I have a (relatively) simple project that demonstrates an RPC  
> >>> failure
> >>> that I don't know how to fix. There are two remote calls. SimpleCall
> >>> returns an integer and succeeds both in host mode and in deployed  
> >>> web
> >>> mode. ClassReturnCall returns a class instance and succeeds in host
> >>> mode but _fails_ in deployed web mode.
>
> >>> The failure message is: Class Return Call Failure:
> >>> com.google.gwt.user.client.rpc.StatusCodeException: The call  
> >>> failed on
> >>> the server; see server log for details.
>
> >>> I built this project from scratch to show this, and haven't used or
> >>> done anything exotic. I created the SimpleService and
> >>> ClassReturnService using the wizards, created the .WAR file using a
> >>> menu item, and deployed with a straight copy into Tomcat 5.5's
> >>> application directory.
>
> >>> The return class is defined in its own class file, is a simple bean,
> >>> and implements IsSerializable.
>
> >>> Can someone take a look at this and give some suggestions/
> >>> reasons?? I
> >>> don't know what to do from here. Could this be some sort of security
> >>> manager problem???
>
> >>> Below are the log details, but the project (as simple as it is) is  
> >>> too
> >>> much to post, so I have put it on the 
> >>> web:http://www.tpsoft.com/RemoteServiceTest.zip
>
> >>> The server log says:
>
> >>> Sep 19, 2008 6:15:31 AM org.apache.catalina.core.ApplicationContext
> >>> log
> >>> INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain:
> >>> [org.apache.webapp.balancer.RuleChain:
> >>> [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string:
> >>> News / Redirect URL:http://www.cnn.com],
> >>> [org.apache.webapp.balancer.rules.RequestParameterRule: Target param
> >>> name: paramName / Target param value: paramValue / Redirect URL:
> >>>http://www.yahoo.com],
> >>> [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect  
> >>> URL:
> >>>http://jakarta.apache.org]]
> >>> Sep 19, 2008 6:16:11 AM org.apache.catalina.core.ApplicationContext
> >>> log
> >>> SEVERE: Exception while dispatching incoming RPC call
> >>> java.security.AccessControlException: access denied
> >>> (java.lang.reflect.ReflectPermission suppressAccessChecks)
> >>>    at
> >>> java
> >>> .security
> >>> .AccessControlContext.checkPermission(AccessControlContext.java:
> >>> 323)
> >>>    at
> >>> java
> >>> .security.AccessController.checkPermission(AccessController.java:
> >>> 546)
> >>>    at  
> >>> java.lang.SecurityManager.checkPermission(SecurityManager.java:
> >>> 532)
> >>>    at
> >>> java
> >>> .lang.reflect.AccessibleObject.setAccessible(AccessibleObject.java:
> >>> 107)
> >>>    at
> >>> com
> >>> .google
> >>> .gwt
> >>> .user
> >>> .server
> >>> .rpc
> >>> .impl
> >>> .ServerSerializationStreamWriter
> >>> .serializeClass(ServerSerializationStreamWriter.java:
> >>> 619)
> >>>    at
> >>> com
> >>> .google
> >>> .gwt
> >>> .user
> >>> .server
> >>> .rpc
> >>> .impl
> >>> .ServerSerializationStreamWriter
> >>> .serializeImpl(ServerSerializationStreamWriter.java:
> >>> 655)
> >>>    at
> >>> com
> >>> .google
> >>> .gwt
> >>> .user
> >>> .server
> >>> .rpc
> >>> .impl
> >>> .ServerSerializationStreamWriter
> >>> .serialize(ServerSerializationStreamWriter.java:
> >>> 582)
> >>>    at
> >>> com
> >>> .google
> >>> .gwt
> >>> .user
> >>> .client
> >>> .rpc
> >>> .impl
> >>> .AbstractSerializationStreamWriter
> >>> .writeObject(AbstractSerializationStreamWriter.java:
> >>> 105)
> >>>    at
> >>> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter
> >>> $ValueWriter$8.write(ServerS

Re: GWT Google Maps InfoWindow Resizing

2008-09-23 Thread Pavel Byles
bump again?
I would really appreciate some help here.

On Wed, Sep 17, 2008 at 2:51 PM, Pavel Byles <[EMAIL PROTECTED]> wrote:

> bump.
> anyone else?
>
>
> On Tue, Sep 16, 2008 at 10:09 PM, Pavel Byles <[EMAIL PROTECTED]>wrote:
>
>> Yes... reset is what I was referring to
>>
>>
>> On Tue, Sep 16, 2008 at 4:43 PM, Eric Ayers <[EMAIL PROTECTED]> wrote:
>>
>>> I didn't see a resize() function other than reset()
>>>
>>>
>>> On Tue, Sep 16, 2008 at 4:25 PM, Pavel Byles <[EMAIL PROTECTED]>wrote:
>>>
 I know the JS api has a resize function.. but GWT doesn't.
 Also I've seen others do it but have no idea how it's done.

 -Pavel

 On Tue, Sep 16, 2008 at 3:11 PM, Eric Ayers <[EMAIL PROTECTED]> wrote:

> I just added a patch for the GInfoWindow.reset() method in the issue
> tracker, but I was unable to get it to work reliably.  I have a question
> into the Maps folks.
>
> -Eric.
>
> On Tue, Sep 16, 2008 at 1:39 PM, Pavel Byles <[EMAIL PROTECTED]>wrote:
>
>> Does anyone know how to make the InfoWindow resize once the content
>> has been loaded within it?
>>
>> -Pavel
>>
>>
>>
>
>
> --
> Eric Z. Ayers - GWT Team - Atlanta, GA USA
> http://code.google.com/webtoolkit/
>
>
>



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

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



Menu Bar and Hot Key

2008-09-23 Thread nishant (bhai)

Hi,
 can i used hot key in menu bar(like combination of alt+f).Please
guide me as soon as posssible.i have posted this query yesterday
also,but i haven't received any mail regarding this query.
--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



How to use GWT-EXT in Mozila

2008-09-23 Thread rsund

Hi

 I  Change Browser internet Explorer to Mozilla Firefox in My GWT -
Ext Application.


i used Form panel in  GWT-Ext in Internet Explorer.
Now i change Browser Setting to Mozilla.

i have Problem in

1) Alignmnet in UI is changed.(Particulary in Dockpanel)
2 )i used Multiple Column Layout in Previous Browser Now it will not
appear on Multiple column.


i need how to rectify this problem.

i need Quick Reply.
--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---