Re: How to clear History

2008-12-24 Thread Charan

I don't think such method in History class

=Charan

On Dec 24, 12:59 pm, kiran raj kiranraj@gmail.com wrote:
 did you try history.clear();

 On Wed, Dec 24, 2008 at 12:45 PM, Charan s.chara...@gmail.com wrote:

  Hi,

  After a long time after giving a message with similar question in
  diffferent way to acheive

  Is there any way to delete tokens which are added to HIstory using
  History.newItem(), now i need to delete some tokens which i don't
  need

  can you give me any suggestion to acheive this, by overding
  javascript , or JSON any suggestion will do

  Thanks  regards
  Charan

  On Oct 30, 5:11 pm, Ian Bambury ianbamb...@gmail.com wrote:
  OK,
  Well, that might indicate that you should redesign slightly so that you 
  only
  set it once :-) Re-initialising a number of times would suggest that there
  is a better design somewhere - not always possible or practicable, I know 
  if
  you have an existing system.

  Or maybe you could save the token somewhere and only write it out when the
  page is set up.

  *But*... if you write *exactly* the same token multiple times one after the
  other, you should only get one history entry

  Ian

 http://examples.roughian.com

  2008/10/30 Charan s.charanku...@gmail.com

   hi Ian,
   Thanks for your quick reply.
   Actually what i need is i am  storing the History tokens using
   newItem(token) ,sometimes i am re intializing some part of code
   several times where i am adding same token multiple times.
   when i go back to that page it is having four tokens with the same
   which i don't want.

   On Oct 30, 4:33 pm, Ian Bambury ianbamb...@gmail.com wrote:
History is a function of the browser.
If you could clear the history, you could stop people going back to the
   page
they came from.

Browsers tend to view this as not desirable.

Ian

   http://examples.roughian.com

2008/10/30 Charan s.charanku...@gmail.com

 How to clear the tokens in History class , i didn't find any
 removeToken/tokens methods in History class

 can i know is there is any way to clear tokens  in history
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to clear History

2008-12-24 Thread kiran raj

sorry then i think its not possible to do so.

On Wed, Dec 24, 2008 at 2:44 PM, Charan s.chara...@gmail.com wrote:

 I don't think such method in History class

 =Charan

 On Dec 24, 12:59 pm, kiran raj kiranraj@gmail.com wrote:
 did you try history.clear();

 On Wed, Dec 24, 2008 at 12:45 PM, Charan s.chara...@gmail.com wrote:

  Hi,

  After a long time after giving a message with similar question in
  diffferent way to acheive

  Is there any way to delete tokens which are added to HIstory using
  History.newItem(), now i need to delete some tokens which i don't
  need

  can you give me any suggestion to acheive this, by overding
  javascript , or JSON any suggestion will do

  Thanks  regards
  Charan

  On Oct 30, 5:11 pm, Ian Bambury ianbamb...@gmail.com wrote:
  OK,
  Well, that might indicate that you should redesign slightly so that you 
  only
  set it once :-) Re-initialising a number of times would suggest that there
  is a better design somewhere - not always possible or practicable, I know 
  if
  you have an existing system.

  Or maybe you could save the token somewhere and only write it out when the
  page is set up.

  *But*... if you write *exactly* the same token multiple times one after 
  the
  other, you should only get one history entry

  Ian

 http://examples.roughian.com

  2008/10/30 Charan s.charanku...@gmail.com

   hi Ian,
   Thanks for your quick reply.
   Actually what i need is i am  storing the History tokens using
   newItem(token) ,sometimes i am re intializing some part of code
   several times where i am adding same token multiple times.
   when i go back to that page it is having four tokens with the same
   which i don't want.

   On Oct 30, 4:33 pm, Ian Bambury ianbamb...@gmail.com wrote:
History is a function of the browser.
If you could clear the history, you could stop people going back to 
the
   page
they came from.

Browsers tend to view this as not desirable.

Ian

   http://examples.roughian.com

2008/10/30 Charan s.charanku...@gmail.com

 How to clear the tokens in History class , i didn't find any
 removeToken/tokens methods in History class

 can i know is there is any way to clear tokens  in history
 


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



Re: How can do mapping for another servlet

2008-12-24 Thread Kevin Tarn
There is no difference of mapping servlet or GWT-RPC. You can do the same
way to map your servlet in gwt.xml.

Kevin

On Wed, Dec 24, 2008 at 1:44 PM, avd avdheshgupta...@gmail.com wrote:


 Hello sir,
 Thanks to GWT froups to solve my privious problems,really its very
 helpful to develop my project.
 now i have an another problem-I have two programs First is applet and
 Second is a servlet i using it for upload a image to server side.i had
 intregate applet in gwt by using Applet Intregration module but how
 can i use my servlet because in gwt.xml file i can only mapping for
 serviceImpl file.so please help me for mapping another servlet in gwt.


 with regards
 avdhesh
 


--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



i can't see the bottom component of VerticalPanel when it's minimized

2008-12-24 Thread arnaud

Hello every one,
i have a verticalPanel in which i put a  lot of component.When my
panel is minimize i don't see all of the components but when it's
maximize i can see all of them;So what can i do to see the bottom
components when it's minimized?
Thanks you
Arnaud
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Suggestions for improving GWT group

2008-12-24 Thread Lothar Kimmeringer

Isaac Truett schrieb:
 If you want a newsgroup, why don't you go start a newsgroup?

Actually there is no need to. There is already a hierarchy
present that covers GWT: comp.lang.java.*
Also there are other groups available e.g. in Germany
(de.comp.lang.java) where GWT-questions could be answered.

 There are
 plenty of mediums for information about GWT that aren't maintained by
 Google. No reason you can't create another one.

If there is enough traffic in one or more of the above mentioned
groups, it shouldn't be a problem asking for the creation
of another group e.g. comp.lang.java.gwt. The advantage of
moving to a newsgroup would be that discussions about e.g.
GWT-ext or how do I create a servlet are not automatically
off topic or can be redirected into another newsgroup that
covers that topic.

Personally I don't have a problem with this group I just don't
see a way to improve the group by introducing tags, experience-
level-informations or votes to the system because the advanced
users I assume are using the group as maillist anyway (where
you will never see the last two informations) and tags don't
work for most of the posts you see in this group asked by
people who are new to the group (it has been tried in enough
newsgroups I'm subscribed to without helping anything).

Maybe it would be start to actively redirect questions to one
of the beforementioned groups instead of answering them here.


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 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Need for a great GWT GUI library

2008-12-24 Thread flash

GWT-Ext (http://code.google.com/p/gwt-ext/) looked very promising. I
downloaded it to try it out. However it needs ExtJS and thats where
all the licensing troubles came to light. In the end, it looks like
you can get a version of the dependent javascript library somehow. But
with all the issues surrounding it, I wasn't sure what the future of
it was.

I finally gave up with these libraries and am sticking to core GWT
widgets for now. Unless I absolutely have to have a component from one
of these libraries, I won't be looking for one. They all have their
quirks or programming models that you need to understand to use them
effectively.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: What am I misunderstanding about the event model?

2008-12-24 Thread David H. Cook

Reinier -

Thank you, thank you, for the EXCELLENT explanation in
your posts to this thread.  I totally get it now.

I like especially that you point out that, given GWT objectives
and constraints, it is NOT necessarily the right tool for
all webapps.

I guess I made the correct decision, back when I finally just
changed my design to use the GWT APIs in a straight-forward
way (rather than 'hack' down in and expose leaks.
Now I get your earlier reference to 'LEAKY'.

One last thing someone could do is to PUBLISH this sort of
perspective...i.e. put it in overview docs where new prospective
developers are apt to find it.

Cheers...

Dave [the base-noter]

On Dec 23, 8:45 pm, Reinier Zwitserloot reini...@gmail.com wrote:
 As I said, Event is a low level class. You don't use it from java
 code, you use it from JSNI code. Another low level 'class' is the DOM
 class. It is a repository of loads of static utility methods (you
 don't ever do 'new DOM()', you just call DOM.someMethod()). Anything
 you can do with Event objects without resorting to JSNI is done with
 the various methods in the DOM class that start with 'event'. For
 example, to get the thing that the event happened for, you use
 DOM.eventGetTarget(Event e). However, this returns an Element, which
 is another low level class. Elements, just like Events and
 JavaScriptObjects, don't have any useful methods for java GWT code.
 They are plenty useful when transported to JSNI methods, and there are
 plenty of methods in the DOM class that work on Elements. Generally,
 widgets CONTAIN an Element, so its not easy to go from Element to the
 widget it belongs to, which is why you're having so much trouble.

 Screwing about with DOM and Element will result in GWT projects that
 leak memory, especially on IE, unless you -really- know what you are
 doing. For example, if you add a listener yourself, you have to be
 very careful in removing it at the right time or the listener, and in
 turn every object it points at (and every object those objects point
 at, etcetera) are stuck in the browser forever (well, until the user
 closes the browser or the window with your app in it, but for a
 webapp, that's what 'forever' means, really).

 On Dec 24, 1:57 am, David Hoffer dhoff...@gmail.com wrote:

  In my case I need to support right click in Tree widgets so the global
  option doesn't help.  I'm willing to live with limited browser support if I
  can convert the Event returned via onBrowserEvent() to a TreeItem.

  -Dave

  On Tue, Dec 23, 2008 at 3:49 PM, lukehashj bobwazn...@gmail.com wrote:

   Those lego pieces are the special get a box of em for 20 bucks pieces
   -

   To implement this functionality I would use a little bit of JSNI and
   the onContextMenu functionality.

   Open up your module's main .html file and locate your body element.
   Add onContextMenu='someJavaScriptFunction()' to it.

   Next, add a script type='text/javascript'function
   someJavaScriptFunction(){ execute JSNI here }/script to the inner
   HTML of the head element and you are set!

   If you've not read about JSNI, here is a good resource:
  http://code.google.com/support/bin/answer.py?answer=75695topic=10213

   Obviously, this is a global solution - usually used to display an
   alternate context menu. If you're trying to implement right-click for
   a particular element that's a little bit more tricky and less reliable
   across browsers.

   On Dec 23, 3:23 pm, David Hoffer dhoff...@gmail.com wrote:
Sounds good, I'll try that for DoubleClickEventListener.

What lego pieces would you use to implement RightClickEventListener?

-Dave

On Tue, Dec 23, 2008 at 2:59 PM, lukehashj bobwazn...@gmail.com wrote:

 If you want the double-click event, create a DoubleClickEventListener
 that extends ClickListener. When the click event is fired a timer is
 started - if they click again before the timer executes, the
 onDoubleClick event fires. Otherwise, it's just treated as a single
 click. Using this mechanism, you can adjust the speed at which the
 user must double-click for you to get the event. This can be helpful
 in improving your websites accessibility (ease of navigation, etc).
 This also allows you to add a DoubleClickListener to any class that
 implements the SourcesClickEvents class.

 If you are rolling your own horizontal/vertical panels you're
 approaching composition from the completely wrong direction.
 You should probably create a class that extends Composite but includes
 all the functionality that you would have added to the base GWT class
 (es) and calls initWidget(on a horizontalPanel). Or, simply extend the
 GWT class and add the missing/desired functionality to it.

 The GWT widget/event classes are like legos - use the small parts to
 build a greater cohesive structure. Don't plan on the legos coming out
 of the box preassembled!

IllegalStateException (onDetach) in Internet Explorer 6 and 7

2008-12-24 Thread Óscar Frías

Hello.

We have detected that our web application throws this Exception
sometimes:

java.lang.IllegalStateException: Should only call onDetach when the
widget is attached to the browser's document

We detect these exceptions because we have implemented a custom
exception handler that reports exceptions from the browser to our
server (code at the end).
The problem is that although this happens quite frequently (we see
this in our logs), we do not know how to reproduce it.  According to
the logs timing it seems to happen (at least some of the times) when
leaving the page that contains the GWT app.  But we are not completely
sure about this.

Any idea about what could be happening, about the possible root cause,
or how to try to debug/fix it, etc. ?
Any help is appreciated.

More information:
- Exception is only thrown from IE6 and IE7 browsers
- This did not happen with GWT version 1.4.62.  It started happening
the same day we migrated to 1.5.3
- The widget that throws the exception is an HTMLPanel.  Its parent is
a Composite.

In case you are interested, this is the site with the error (the GWT
app is the flight results page):
http://www.trabber.com


/* Code to report exceptions to the server */
if (GWT.isScript()) {
GWT.setUncaughtExceptionHandler(new
GWT.UncaughtExceptionHandler() {
public void onUncaughtException(Throwable th) {
CommonService.App.getInstance().reportException
(th, myCallback);
}
});
}

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



Re: Exception handling in GWT Service

2008-12-24 Thread Suri

Correction - This line
 public void load(AsyncCallbackArrayListSomeType)

Is meant to be
 public void load(AsyncCallbackArrayListSomeType callback)

Thanks

On Dec 24, 11:23 am, Suri sviswanad...@gmail.com wrote:
 Hey all,
 I was looking for a solution to theexceptionhandlingdescribed above
 and tried the technique suggested. However, when I implement theexceptionin 
 the onFailure method as shown, eclipse barfs and shows a
 unhandledexceptiontype throwable error at me. Same thing happens
 when I try to compile anyway.

 - I'm using GWT 1.5 and tried extending theexceptionwith bothExceptionas well 
 as SerializationException
 - Also, I'm implementing a fascade pattern as described in the GWT in
 Action Book for the RPC calls.

 Here's a scenario of what I'm trying

 public class MyRPCException extendsException
 {
    // same definition ofexceptionas above really.

 }

 public interface MyRPCService
 {
     ArrayListSomeType load() throws MyRPCException;

 }

 public interface MyRPCServiceAsync
 {
    void load(AsyncCallbackArrayListSomeType);

 }

 public class MyRPCFascade
 {
         private MyRPCFascade()   // singleton is used just didn't
 bother inserting code here because i think its irrelevant to the
 issue.
     {
         proxy = (MyRPCServiceAsync) GWT.create(MyRPCService.class);
         ServiceDefTarget endPoint = (ServiceDefTarget) proxy;
         endPoint.setServiceEntryPoint(/myRPCService);
     }

    public void load(AsyncCallbackArrayListSomeType)
    {
        proxy.load(callback);
    }

 }

 --- Server side 
 public class MyRPCServiceImpl implements MyRPCService
 {
   public ArrayListSomeType load() throws MyRPCExecption
   {
       try {.}
       catch(SomeException e) { throw new MyRPCException(); }
   }

 }

 - Client Side 
 myRPCFascade.load(new SomeTypeCallback() )

 class SomeTypeCallback implements AysncCallbackArrayListSomeType
 {
    public void onSuccess(ArrayListSomeType result)
   {
          //         process result
   }

  public void onFailure(Throwable caught)
  {
      try
      {
          throw caught;                   //  This is where
 compilation Fails
      }
      catch(MyRPCException e)
      {
           Window.alert(DING);
      }
  }

 }

 Any ideas what I'm doing wrong?

 Thanks

 Suri

 On Nov 26, 11:08 pm, satya satya.mu...@gmail.com wrote:

  There is a SerializationException

  (public class SerializationException
  extends java.lang.Exception)   in gwt1.5.

  SerializableException is depricated in 1.5

  I shall try your suggestion of extending theExceptionor use the
  SerilizationException and post the code here.

  Thank you both for your help,
  Appreciate it
  Satya

  On Nov 26, 12:54 pm, jossey joss...@gmail.com wrote:

   I am sorry... my bad... I read it as SerializationException
   Looked at the SerializableException in gwt... it is just anException
   implementing IsSerializable interface... so it all makes sense.
   Thanks Ravi for clarifying.

   BTW, in 1.5 gwt supports serialization of objects implementing
   java.io.Serializable.
   So just by extendingExceptionit would work.

   Thanks again,
   Jossey.

   On Nov 26, 8:56 am, Ravi M mund...@gmail.com wrote:

Jossey

Quite the contrary, actually. I started off with a customexception
which was merely a child class ofExceptionthat I intended to use in
RPC calls (i.e. service methods throw it). This actually didn't work
in the ways expected, i.e. when the server threw theexceptionI was
unable to retrieve theexceptionmessage in the client, or find out
what the cause was. Which is when some digging around revealed that if
you want to send theexceptionover the wire, it has to be a GWT
SerializableException.

This is with 1.4.6x, of course this may have changed in 1.5.x, I am
not sure.

Ravi

On Nov 26, 5:58 pm, jossey joss...@gmail.com wrote:

 Hi,
 Why are we extending SerializableException?
 Is that because the starting example had it so?
 I think it kinds of gives out a wrong message. ...
 just extendsExceptionshould do.

 not very relevant to the discussion anyways...

 Jossey.

 On Nov 25, 3:33 pm, Ravi M mund...@gmail.com wrote:

  Ah me. Step 1 should read:

  1. Declare your RPCexceptionlike so:

  public class MyRPCException extends SerializableException {
      public MyRPCException() {
          super();
      }

      public MyRPCException(String message) {
          super(message);
      }

      //... other stuff?

  }

  On Nov 26, 1:32 am, Ravi M mund...@gmail.com wrote:

   Satya,

   The following should work.

   1. Declare your RPCexceptionlike so:

   public class MyRPCException extends SerializableException {
       public TrackerRPCException() {
           super();
       }

       public MyRPCException(String message) {
           super(message);
       }

     

Problem with non-english characters

2008-12-24 Thread malikbster

Hi, im new to GWT and im having problems in displaying non-english
characters. For example, im creating this menu bar and one of its
items' name has the spanish accent symbol over the o letter:

menu.addItem(Presentación, menuPresentacion);

The ó is displayed like a weird question mark inside a box when i
compile the project and load the html into firefox.

So what i do next is adding a meta statement into the html file that
is being load into the project.

meta http-equiv=Content-Type content=text/html; charset=UTF-8 

This doesnt work either, get the same result. So next I try to convert
inside the java code every string into UTF-8 charset using URL
methods:

menu.addItem(URL.encode(Presentación), menuPresentacion);

And now firefox shows it like this:

Presentaci%EF%BF%BDn

I also tried writting the strings inside the java code using HTML
notation for special characters:

menu.addItem(Presentacioacute;n, menuPresentacion);

Doesnt work either.What is wrong whith this?

Thanks in advance.

--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



Get file from server with GWT-RPC

2008-12-24 Thread Daniele B

Hi.
I work on a photogallery application for my thesis.
I have a problem.
How can I do to retrieve image files stored on a server folder trought
GWT-RPC?

Thanks at all!
Sorry fo my english!!! :)

Daniele.

--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



Form submit

2008-12-24 Thread Daniele B

Hi.
I'm a newbie of GWT and not speaking english very well.
I have this portion of code of my thesis application:

[...]
private FileUpload fileUpload = new FileUpload();
private FormPanel formUpload = new FormPanel();
private Button loadButton = new Button(Load new image);
private Button addButton = new Button(Add new category);
private Label l = new Label();

public WebPhotoGalleryMenuPanel(){

//fileUpload.setName(imageUpload);
formUpload.setEncoding(FormPanel.ENCODING_MULTIPART);
formUpload.setMethod(FormPanel.METHOD_POST);
formUpload.setAction(GWT.getModuleBaseURL()+UploadPhoto);

submit.addClickListener(this);
[...]

photoInfoPanel.add(new Label(Enter category: ));
TextBox categoryTextBox = new TextBox();

photoInfoPanel.add(categoryTextBox);
photoInfoPanel.add(new Label(Enter photo name: ));
photoInfoPanel.add(new TextBox());
photoInfoPanel.add(fileUpload);
photoInfoPanel.add(submit);
photoInfoPanel.add(cancel);
photoInfoPanel.setSpacing(3);

photoInfoContainer.add(photoInfoPanel);

formUpload.setWidget(photoInfoContainer);

When user click on submit button, the form is submitted to UploadPhoto
servlet.

How can I do get text of categoryTextBox on servlet?
Thanks.

Sorry fo my english!

Daniele.

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



Re: Announcing GWT 1.5.3

2008-12-24 Thread andrew_lau

I got this worked out using apache's reverse proxy module.

Workstation -- apache proxy --- (rpc call?)
(192.168.2.2) |-- yes -- ejb server
  |-- no -- workstation port 

Basically, you just need to set up mod_proxy like this:

===
httpd.conf
==
ProxyRequests Off
Proxy *
Order deny,allow
Deny from all
allow from 192.168
/Proxy

ProxyPass /mywebmodule/gwt-rpc-service 
http://ejbserver.com/mywebmodule/gwt-rpc-service
ProxyPassReverse /mywebmodule/gwt-rpc-service
http://ejbserver.com/mywebmodule/gwt-rpc-service

ProxyPass /com.mygwtapp.UIModule http://192.168.2.2:/com.mygwtapp.UIModule
ProxyPassReverse /com.mygwtapp.UIModule 
http://192.168.2.2:/com.mygwtapp.UIModule



Please note that 192.168.2.2 is my workstation where I develop the
code. Thus, when I
start hosted mode in that box, the tomcat instance will listen to port
 of my
workstation.  Thus, this proxy server will contact the tomcat in my
workstation for
any queries that has /com.mygwtapp.UIModule in its path, and will
contact my real EJB
server, when the hosted mode browser does rpc call.

This way, it is clean, the proxy server separate the calls for you.

Here is my hosted mode batch file:
@java -Xmx512M -cp
%~dp0\src;%~dp0\bin;C:/javadev/lib/gwt-windows/gwt-user.jar;N:/
javadev/lib/gwt-maps.jar;C:/javadev/lib/gwt-windows/gwt-dev-
windows.jar
com.google.gwt.dev.GWTShell -out %~dp0\www %*
http://theproxyserver/com.mygwtapp.UIModule/UIModule.html -whitelist
^http[:][/][/]theproxyserver


On Dec 12, 5:36 pm, Brad LaRonde bradlaro...@gmail.com wrote:
 r3731 (merge of r3728) is the culprit:

 --- user/src/com/google/gwt/user/client/impl/HTTPRequestImplIE6.java
 +++ user/src/com/google/gwt/user/client/impl/HTTPRequestImplIE6.java
 @@ -24,6 +24,14 @@

   �...@override
    protected native JavaScriptObject doCreateXmlHTTPRequest() /*-{
 -    return new ActiveXObject(Microsoft.XMLHTTP);
 +    if ($wnd.XMLHttpRequest) {
 +      return new XMLHttpRequest();
 +    } else {
 +      try {
 +        return new ActiveXObject('MSXML2.XMLHTTP.3.0');
 +      } catch (e) {
 +        return new ActiveXObject(Microsoft.XMLHTTP);
 +      }
 +    }
    }-*/;
  }

 Revert and rebuild gwt-user.jar. Would be cool if there was a way to
 do it only for hosted mode.

 On Oct 20, 9:15 am, Brian hibr...@gmail.com wrote:

  I'm seeing a same-origin security restriction exception in 1.5.3 where
  I didn't see it in 1.5.2. That is, I  can switch my project back and
  forth between using 1.5.2 (no exception) and 1.5.3 (exception), with
  the same source code.

  I'm doing a RequestBuilder to locahost:8080/url in order to hit my
  server to POST some data.

  Means I'll be using 1.5.2 until I can figure out how to hit my local
  server from 1.5.3.

  Brian

  On Oct 20, 11:17 am, nicolas.deloof nicolas.del...@gmail.com
  wrote:

   Hi,

   for maven users, this release will be available via maven central
   repository in few hours (after rsync does its job).

   Nicolas

   On 18 oct, 00:22, Ray Ryan rj...@google.com wrote:

Hi, all.

We have just deprecated GWT 1.5.2, and replaced it with GWT 1.5.3.
This new release has a small handful of patches, mainly aimed at
fixing RPC problems with Android. You can download the update from the
usual location:

 http://code.google.com/webtoolkit/download.html

You may find that this pretty page hasn't updated yet in your neck of
the woods. If so, try going straight to the download 
server:http://code.google.com/p/google-web-toolkit/downloads/list.

Enjoy,
rjrjr

Release Notes for 1.5.3

Fixed Issues

 - RPC requests no longer fail on the embedded Android web browser

 - Leaf TreeItems now line up with their non-leaf siblings

 - Removing the last child node from a TreeItem no longer creates
extra margins on the left

 - HTTPRequest no longer uses POST instead of GET on some IE installs
because of incorrect XHR selection

 - Compiler now uses a more reliable check to prevent methods with
local variables from being inlined
getAbsoluteTop()/Left() can no longer return non-integral values

 - Time.valueOf() no longer fails to parse 08:00:00 or incorrectly
accepts 0xC:0xB:0xA.- 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 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: same-origin security restriction

2008-12-24 Thread andrew_lau

I got this worked out using apache's reverse proxy module.


Workstation -- apache proxy --- (rpc call?)
(192.168.2.2) |-- yes -- ejb server
  |-- no -- workstation port 

Basically, you just need to set up mod_proxy like this:

===
httpd.conf
==
ProxyRequests Off
Proxy *
Order deny,allow
Deny from all
allow from 192.168
/Proxy

ProxyPass /mywebmodule/gwt-rpc-service 
http://ejbserver.com/mywebmodule/gwt-rpc-service
ProxyPassReverse /mywebmodule/gwt-rpc-service 
http://ejbserver.com/mywebmodule/gwt-rpc-service

ProxyPass /com.mygwtapp.UIModule http://192.168.2.2:/com.mygwtapp.UIModule
ProxyPassReverse /com.mygwtapp.UIModule 
http://192.168.2.2:/com.mygwtapp.UIModule



Please note that 192.168.2.2 is my workstation where I develop the
code. Thus, when I start hosted mode in that box, the tomcat instance
will listen to port  of my workstation.  Thus, this proxy server
will contact the tomcat in my workstation for any queries that has /
com.mygwtapp.UIModule in its path, and will contact my real EJB
server, when the hosted mode browser does rpc call.

This way, it is clean, the proxy server separate the calls for you.

Here is my hosted mode batch file:
@java -Xmx512M -cp %~dp0\src;%~dp0\bin;C:/javadev/lib/gwt-windows/gwt-
user.jar;N:/javadev/lib/gwt-maps.jar;C:/javadev/lib/gwt-windows/gwt-
dev-windows.jar com.google.gwt.dev.GWTShell -out %~dp0\www %*
http://theproxyserver/com.mygwtapp.UIModule/UIModule.html -whitelist
^http[:][/][/]theproxyserver


On Nov 25, 4:12 pm, Brian hibr...@gmail.com wrote:
 Created issue 3131: (and 13's my lucky number... so close sorta..)

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

 Please star it :-)

 On Nov 24, 11:13 am, Brian hibr...@gmail.com wrote:

  How did I miss this thread?  Is there an issue open already for this,
  as per the Nov 21st post? I'll star it.

  I'm still using 1.5.2 for dev, as it's the fastest way to iterate on a
  non-jsonp app.  Basically you guys spoiled me with this bug/feature in
  prior releases and using 1.5.3 and its slowdown to iterations just
  sucks. No offense :)

  Anyway, no, it doesn't cause more problems when deploying.  You find
  out right away when you're running in webmode if you're violating SOP
  as the browser complains or ignores the request (depends on the
  browser). Violating SOP in hosted mode was a fantastic feature.
  Having a console warning in hosted mode that a request is violating
  sop should be enough.

  On Nov 24, 11:02 am, Jason Essington jason.essing...@gmail.com
  wrote:

   Actually, allowing Hosted mode to violate SOP would lead to even more  
   problems come deployment time...

   The idea with hosted mode is that it mirrors an actual browser as  
   nearly as possible, so by breaking (not fixing) the SOP behavior,  
   developers are likely to run into issues where something works in  
   Hosted mode, but doesn't in Web mode. Definitely not desired behavior.

   If you have a situation were you need to connect to a serve that is  
   not well represented by the embedded tomcat server, then simply use -
   noserver and be done with it.

   I have a JEE backend, and even I have to use -noserver. In fact, I  
   would be willing to bet anyone that has an application that has  
   progressed beyond trivial (trial) client/server communication is using  
   Hosted mode with the -noserver switch. It is not a matter of the GWT  
   developers trying to screw non-JEE developers, but rather a matter of  
   not being able to provide an embedded server that is all things to all  
   people.

   -jason

   On Nov 21, 2008, at 2:23 PM, jpnet wrote:

This is not a feature! Please fix this.  Allow us developers to
violate the SOP via the Hosted-Mode browsers.  You are screwing your
developers that don't use J2EE on the backend.

-JP

On Nov 19, 7:33 pm, Sumit Chandel sumitchan...@google.com wrote:
Hi Danny,

The issue you ran into is not actually a bug but an improvement in  
1.5.3 in
terms of browser security compliance.

Basically, the remote data you are fetching is indeed violating the  
single
origin policy, which is why you are seeing the error message come  
up in the
hosted mode console.

The two ways to enable cross-site communication would be to use -
noserver
with a proxy that could delegate the calls or using the JSONP  
technique.
Both are described in a bit more detail on the Groups post linked  
below:

   http://groups.google.com/group/Google-Web-Toolkit/browse_thread/
threa...

Hope that helps,
-Sumit Chandel

On Thu, Nov 13, 2008 at 5:05 PM, Danny da...@xrio.co.uk wrote:

Just thought I'd post an update...

I downgraded from 1.5.3 to 1.5.2 and its now working so I guess this
is a bug with 1.5.3.

Regards,
Danny

On Nov 14, 12:40 am, Danny 

an Email application

2008-12-24 Thread Kedar

Hi everyone.
Actually i am new to gwt world.
i have developed an simple application and now trying to put mail
facility for the same.
can you please guide me to add such facility to my application.

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



Re: same-origin security restriction

2008-12-24 Thread andrew_lau

I got this worked out using apache's reverse proxy module.

Workstation -- apache proxy --- (rpc call?)
(192.168.2.2) |-- yes -- ejb server
  |-- no -- workstation port 

Basically, you just need to set up mod_proxy like this:

===
httpd.conf
==
ProxyRequests Off
Proxy *
Order deny,allow
Deny from all
allow from 192.168
/Proxy

ProxyPass /mywebmodule/gwt-rpc-service 
http://ejbserver.com/mywebmodule/gwt-rpc-service
ProxyPassReverse /mywebmodule/gwt-rpc-service
http://ejbserver.com/mywebmodule/gwt-rpc-service

ProxyPass /com.mygwtapp.UIModule http://192.168.2.2:/com.mygwtapp.UIModule
ProxyPassReverse /com.mygwtapp.UIModule 
http://192.168.2.2:/com.mygwtapp.UIModule



Please note that 192.168.2.2 is my workstation where I develop the
code. Thus, when I
start hosted mode in that box, the tomcat instance will listen to port
 of my
workstation.  Thus, this proxy server will contact the tomcat in my
workstation for
any queries that has /com.mygwtapp.UIModule in its path, and will
contact my real EJB
server, when the hosted mode browser does rpc call.

This way, it is clean, the proxy server separate the calls for you.

Here is my hosted mode batch file:
@java -Xmx512M -cp
%~dp0\src;%~dp0\bin;C:/javadev/lib/gwt-windows/gwt-user.jar;N:/
javadev/lib/gwt-maps.jar;C:/javadev/lib/gwt-windows/gwt-dev-
windows.jar
com.google.gwt.dev.GWTShell -out %~dp0\www %*
http://theproxyserver/com.mygwtapp.UIModule/UIModule.html -whitelist
^http[:][/][/]theproxyserver


On Nov 25, 4:12 pm, Brian hibr...@gmail.com wrote:
 Created issue 3131: (and 13's my lucky number... so close sorta..)

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

 Please star it :-)

 On Nov 24, 11:13 am, Brian hibr...@gmail.com wrote:

  How did I miss this thread?  Is there an issue open already for this,
  as per the Nov 21st post? I'll star it.

  I'm still using 1.5.2 for dev, as it's the fastest way to iterate on a
  non-jsonp app.  Basically you guys spoiled me with this bug/feature in
  prior releases and using 1.5.3 and its slowdown to iterations just
  sucks. No offense :)

  Anyway, no, it doesn't cause more problems when deploying.  You find
  out right away when you're running in webmode if you're violating SOP
  as the browser complains or ignores the request (depends on the
  browser). Violating SOP in hosted mode was a fantastic feature.
  Having a console warning in hosted mode that a request is violating
  sop should be enough.

  On Nov 24, 11:02 am, Jason Essington jason.essing...@gmail.com
  wrote:

   Actually, allowing Hosted mode to violate SOP would lead to even more  
   problems come deployment time...

   The idea with hosted mode is that it mirrors an actual browser as  
   nearly as possible, so by breaking (not fixing) the SOP behavior,  
   developers are likely to run into issues where something works in  
   Hosted mode, but doesn't in Web mode. Definitely not desired behavior.

   If you have a situation were you need to connect to a serve that is  
   not well represented by the embedded tomcat server, then simply use -
   noserver and be done with it.

   I have a JEE backend, and even I have to use -noserver. In fact, I  
   would be willing to bet anyone that has an application that has  
   progressed beyond trivial (trial) client/server communication is using  
   Hosted mode with the -noserver switch. It is not a matter of the GWT  
   developers trying to screw non-JEE developers, but rather a matter of  
   not being able to provide an embedded server that is all things to all  
   people.

   -jason

   On Nov 21, 2008, at 2:23 PM, jpnet wrote:

This is not a feature! Please fix this.  Allow us developers to
violate the SOP via the Hosted-Mode browsers.  You are screwing your
developers that don't use J2EE on the backend.

-JP

On Nov 19, 7:33 pm, Sumit Chandel sumitchan...@google.com wrote:
Hi Danny,

The issue you ran into is not actually a bug but an improvement in  
1.5.3 in
terms of browser security compliance.

Basically, the remote data you are fetching is indeed violating the  
single
origin policy, which is why you are seeing the error message come  
up in the
hosted mode console.

The two ways to enable cross-site communication would be to use -
noserver
with a proxy that could delegate the calls or using the JSONP  
technique.
Both are described in a bit more detail on the Groups post linked  
below:

   http://groups.google.com/group/Google-Web-Toolkit/browse_thread/
threa...

Hope that helps,
-Sumit Chandel

On Thu, Nov 13, 2008 at 5:05 PM, Danny da...@xrio.co.uk wrote:

Just thought I'd post an update...

I downgraded from 1.5.3 to 1.5.2 and its now working so I guess this
is a bug with 1.5.3.

Regards,
Danny

On Nov 14, 12:40 am, Danny 

re-drawing Popup Panel in IE

2008-12-24 Thread ussuri

Hello!

I perform several long computations on the client, and I show a small
notification window like this:

// sample code
for( int step = 0; step  5; step++ ) {
DecoratedPopupPanel dpp = new DecoratedPopupPanel( false, true );
dpp.add( new HTML( step  + Integer.toString(step) ));
dpp.show();
do_job( step ); // 1-2 seconds
dpp.hide();
}

In FF, all five steps are shown visually; in IE, the first message is
shown until the whole loop is finished.

Is there a way to re-draw the popup panel in IE without breaking the
flow of the program through timers?

Thanks!

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



Re: Problem with non-english characters

2008-12-24 Thread Lothar Kimmeringer

malikbster schrieb:

 So what i do next is adding a meta statement into the html file that
 is being load into the project.
 
 meta http-equiv=Content-Type content=text/html; charset=UTF-8 
 
 This doesnt work either, get the same result.

Is the source saved as UTF-8 and do you tell the java-compiler
that the encoding to be used is UTF-8?

 So next I try to convert
 inside the java code every string into UTF-8 charset using URL
 methods:
 
 menu.addItem(URL.encode(Presentación), menuPresentacion);
 
 And now firefox shows it like this:
 
 Presentaci%EF%BF%BDn

Reason is that the String you pass to the method is encoded
by the underlying system so the % is encoded in a way that
the character is shown.


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 
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 gwt + kawa

2008-12-24 Thread cnwesleywang

Does anybody knows howto use kawa in gwt host mode?

in the External tomcat,after configure following the guide
http://www.gnu.org/software/kawa/server/auto-servlet.html, kawa works
just fine, but in host mode, I do not know where to put the +default
+ or other relative file. I have tried to put them in the public
folder,inside tomcat ROOT folder,etc, but it just does't work.

Can anybody help me to resolve this?

Thanks and sorry for my poor English.

--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---