Re: How to open a new EntryPoint file from other EntryPoint file

2011-06-30 Thread Xybrek

On Friday, 01 July, 2011 12:59 AM, Ashish wrote:

Hi

I need your help.

In my GWT project I have two module files  like below..


First File
public class GTDWeb1 implements EntryPoint{

 public void onModuleLoad() {
 --
 -

--- here is onClick event
   }

}


Second File
public class GTDWeb2 implements EntryPoint{

 public void onModuleLoad() {
 --
 -
   }

}


In the first file "GTDWeb1" there is one onClick event from that event
when it will run I need to open a new window which contain second file
out "GTDWeb2".

Coukd you please help me on this...

thanks in advance



I am not sure why you need to create two EntryPoint, anyway, in case you 
need to fire an event without parent-child relationship in the classes, 
you can always use the Delegator pattern. Which I have used in many 
cases of my gwt applications. If you can elaborate maybe I can help.


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



How to open a new EntryPoint file from other EntryPoint file

2011-06-30 Thread Ashish
Hi

I need your help.

In my GWT project I have two module files  like below..


First File
public class GTDWeb1 implements EntryPoint{

public void onModuleLoad() {
--
-

   --- here is onClick event
  }

}


Second File
public class GTDWeb2 implements EntryPoint{

public void onModuleLoad() {
--
-
  }

}


In the first file "GTDWeb1" there is one onClick event from that event
when it will run I need to open a new window which contain second file
out "GTDWeb2".

Coukd you please help me on 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.