Re: How to use one service from several GWT-Apps

2010-06-24 Thread newnoise
just a simple dijkstra ...

On 23 Jun., 22:55, giuseppe la scaleia glascal...@gmail.com wrote:
 A question what do you use for route on map?? Regards giuseppe

 Inviato da iPhone di Giuseppe La  Scaleia

 Il giorno 23/giu/2010, alle ore 22.13, newnoise tommmuel...@googlemail.com
   ha scritto:

  and when i wrote service again, i totally meant servlet. its been a
  looong day ...

  On 23 Jun., 22:11, newnoise tommmuel...@googlemail.com wrote:
  sorry i meant service.

  i try to explain the problem more precisely:
  i got a map. users can, for example, use the app to calculate a  
  route-
  advise. if the user did so he may want to print the route. but the  
  map
  is nearly fullscreen, so if he justs prints it like that it looks
  pretty bad. so what i do is to open a new browser window with a
  smaller map. and now in this new window the route must be newly
  calculated, because you cant give a java object to the new window,
  right?

  what i want now is that the print page uses the routing servlet of  
  the
  main app. what i dont want is that the print page needs all the same
  server code again. but i dont get it working. because if i merge the
  projects the web.xmls clash.

  thanks a lot!
  tom

  On 23 Jun., 21:47, Blessed Geek blessedg...@gmail.com wrote:

  service?

  Printing thro web service that all/any window could call with a  
  single
  url? Why would you need to duplicate code when you can call it  
  with a
  single url?

  Or did you mean you have a specialised GWT window written to handle
  printing and you wish to route all printing to that GWT window? And
  you wish to deal with the occasionally asked question of how to
  perform inter-frame communication for GWT? I don't remember now, but
  there is a google code project to expose GWT objects to javascript.
  Coupled with GWT Dictionary API, I wonder if that will help.

  Of course, you do realise that for two frames to communicate, they
  should have the same root Window parentage so that one frame could
  refer to another thro the frame hierarchy.

  GWT team should seriously look at providing a comprehensive facility
  for interframe communication, rather than having us perform
  algorithmic contortions and acrobatics - like having to scratch your
  own nose thro the route of bending your hand behind your head.

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

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



How to use one service from several GWT-Apps

2010-06-23 Thread newnoise
Hi,

I'm currently trying to add some printing functions to a map-software.
If the user hits the print-button a new browser-window, which's
dimensions fit to a normal sheet of paper, is opened. As the user
usually wants to print stuff like a route or so the new window needs
to use the same services the main-app does.

What I already tried:
First I did the printing stuff on its own and tried to merge the
projects (map and print). There where some problems because of the
web.xml.
Then I added another print.html to the map-root-dir and tried to merge
the source directly in one project. In this scenario the
onModuleLoad()-method of the print.html wasnt fired.

Is there a way to let the print-app use its parents-apps services? I'd
really like to avoid to have the code twice on my server ...

thanks for any advise!
tom

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



Re: How to use one service from several GWT-Apps

2010-06-23 Thread Blessed Geek
service?

Printing thro web service that all/any window could call with a single
url? Why would you need to duplicate code when you can call it with a
single url?

Or did you mean you have a specialised GWT window written to handle
printing and you wish to route all printing to that GWT window? And
you wish to deal with the occasionally asked question of how to
perform inter-frame communication for GWT? I don't remember now, but
there is a google code project to expose GWT objects to javascript.
Coupled with GWT Dictionary API, I wonder if that will help.

Of course, you do realise that for two frames to communicate, they
should have the same root Window parentage so that one frame could
refer to another thro the frame hierarchy.

GWT team should seriously look at providing a comprehensive facility
for interframe communication, rather than having us perform
algorithmic contortions and acrobatics - like having to scratch your
own nose thro the route of bending your hand behind your head.

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



Re: How to use one service from several GWT-Apps

2010-06-23 Thread newnoise
sorry i meant service.

i try to explain the problem more precisely:
i got a map. users can, for example, use the app to calculate a route-
advise. if the user did so he may want to print the route. but the map
is nearly fullscreen, so if he justs prints it like that it looks
pretty bad. so what i do is to open a new browser window with a
smaller map. and now in this new window the route must be newly
calculated, because you cant give a java object to the new window,
right?

what i want now is that the print page uses the routing servlet of the
main app. what i dont want is that the print page needs all the same
server code again. but i dont get it working. because if i merge the
projects the web.xmls clash.

thanks a lot!
tom


On 23 Jun., 21:47, Blessed Geek blessedg...@gmail.com wrote:
 service?

 Printing thro web service that all/any window could call with a single
 url? Why would you need to duplicate code when you can call it with a
 single url?

 Or did you mean you have a specialised GWT window written to handle
 printing and you wish to route all printing to that GWT window? And
 you wish to deal with the occasionally asked question of how to
 perform inter-frame communication for GWT? I don't remember now, but
 there is a google code project to expose GWT objects to javascript.
 Coupled with GWT Dictionary API, I wonder if that will help.

 Of course, you do realise that for two frames to communicate, they
 should have the same root Window parentage so that one frame could
 refer to another thro the frame hierarchy.

 GWT team should seriously look at providing a comprehensive facility
 for interframe communication, rather than having us perform
 algorithmic contortions and acrobatics - like having to scratch your
 own nose thro the route of bending your hand behind your head.

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



Re: How to use one service from several GWT-Apps

2010-06-23 Thread newnoise
and when i wrote service again, i totally meant servlet. its been a
looong day ...

On 23 Jun., 22:11, newnoise tommmuel...@googlemail.com wrote:
 sorry i meant service.

 i try to explain the problem more precisely:
 i got a map. users can, for example, use the app to calculate a route-
 advise. if the user did so he may want to print the route. but the map
 is nearly fullscreen, so if he justs prints it like that it looks
 pretty bad. so what i do is to open a new browser window with a
 smaller map. and now in this new window the route must be newly
 calculated, because you cant give a java object to the new window,
 right?

 what i want now is that the print page uses the routing servlet of the
 main app. what i dont want is that the print page needs all the same
 server code again. but i dont get it working. because if i merge the
 projects the web.xmls clash.

 thanks a lot!
 tom

 On 23 Jun., 21:47, Blessed Geek blessedg...@gmail.com wrote:

  service?

  Printing thro web service that all/any window could call with a single
  url? Why would you need to duplicate code when you can call it with a
  single url?

  Or did you mean you have a specialised GWT window written to handle
  printing and you wish to route all printing to that GWT window? And
  you wish to deal with the occasionally asked question of how to
  perform inter-frame communication for GWT? I don't remember now, but
  there is a google code project to expose GWT objects to javascript.
  Coupled with GWT Dictionary API, I wonder if that will help.

  Of course, you do realise that for two frames to communicate, they
  should have the same root Window parentage so that one frame could
  refer to another thro the frame hierarchy.

  GWT team should seriously look at providing a comprehensive facility
  for interframe communication, rather than having us perform
  algorithmic contortions and acrobatics - like having to scratch your
  own nose thro the route of bending your hand behind your head.

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



Re: How to use one service from several GWT-Apps

2010-06-23 Thread giuseppe la scaleia

A question what do you use for route on map?? Regards giuseppe

Inviato da iPhone di Giuseppe La  Scaleia

Il giorno 23/giu/2010, alle ore 22.13, newnoise tommmuel...@googlemail.com 
 ha scritto:



and when i wrote service again, i totally meant servlet. its been a
looong day ...

On 23 Jun., 22:11, newnoise tommmuel...@googlemail.com wrote:

sorry i meant service.

i try to explain the problem more precisely:
i got a map. users can, for example, use the app to calculate a  
route-
advise. if the user did so he may want to print the route. but the  
map

is nearly fullscreen, so if he justs prints it like that it looks
pretty bad. so what i do is to open a new browser window with a
smaller map. and now in this new window the route must be newly
calculated, because you cant give a java object to the new window,
right?

what i want now is that the print page uses the routing servlet of  
the

main app. what i dont want is that the print page needs all the same
server code again. but i dont get it working. because if i merge the
projects the web.xmls clash.

thanks a lot!
tom

On 23 Jun., 21:47, Blessed Geek blessedg...@gmail.com wrote:


service?


Printing thro web service that all/any window could call with a  
single
url? Why would you need to duplicate code when you can call it  
with a

single url?



Or did you mean you have a specialised GWT window written to handle
printing and you wish to route all printing to that GWT window? And
you wish to deal with the occasionally asked question of how to
perform inter-frame communication for GWT? I don't remember now, but
there is a google code project to expose GWT objects to javascript.
Coupled with GWT Dictionary API, I wonder if that will help.



Of course, you do realise that for two frames to communicate, they
should have the same root Window parentage so that one frame could
refer to another thro the frame hierarchy.



GWT team should seriously look at providing a comprehensive facility
for interframe communication, rather than having us perform
algorithmic contortions and acrobatics - like having to scratch your
own nose thro the route of bending your hand behind your head.


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




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