Re: How to share classes between two different modules with two different pages

2012-03-29 Thread Олександр Бежан
I think the best way you can do this is to create third gwt module 
('common' for example) and move all common classes there.
Then you can inherit this module and access to common classes.

вторник, 20 марта 2012 г. 23:22:58 UTC+2 пользователь Deepak Singh написал:

 Hi All,

 I have a GWT project with 2 modules.

 ModuleA  and ModuleB
 Both are having their own html page. i.e. tow seperate html pages so 
 seperate Rootpanel for both of them.

 So i cant inherit one into another.

 How can i use the same class(in shared package) in both the modules ?



 Thanks 
 Deepak Singh
  

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/VQkHUafxafsJ.
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 share classes between two different modules with two different pages

2012-03-29 Thread Fernando Varella Lopes
i think that you can make a new module for the classes you want use in 
other two, and inherit it.

Em terça-feira, 20 de março de 2012 18h22min58s UTC-3, Deepak Singh 
escreveu:

 Hi All,

 I have a GWT project with 2 modules.

 ModuleA  and ModuleB
 Both are having their own html page. i.e. tow seperate html pages so 
 seperate Rootpanel for both of them.

 So i cant inherit one into another.

 How can i use the same class(in shared package) in both the modules ?



 Thanks 
 Deepak Singh
  

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/YbgGdvgsQtcJ.
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 share classes between two different modules with two different pages

2012-03-22 Thread Deepak Singh
It did not work.

On Thu, Mar 22, 2012 at 3:29 AM, Matias Costa m.costac...@gmail.com wrote:

 I would create a base module from which A and B inherit.

 Or you can try in moduleB.gwt.xml

 source path=../moduleA/client /

 El miércoles 21 de marzo de 2012 16:16:46 UTC+1, Deepak Singh escribió:

 Yes i have two seperate *.gwt.xml for both the modules.
 And i inherit ModuleB into moduleA as follows:

 ModuleA.gwt.xml
 inherits com.pdstechi.modulenameB.**ModuleB

 And then i use
  com.pdstechi.modulenameB.**shared.AbcDto   into
 com.pdstechi.modulenameA.**client package, it fails compilation with
 message

 'Source code for   com.pdstechi.modulenameB.**shared.AbcDto  is not
 available'.

 Thanks
 Deepak

   --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/Pchfn1wJN08J.

 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.




-- 
Deepak Singh

-- 
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 share classes between two different modules with two different pages

2012-03-22 Thread Matias Costa
And you have in moduleB.gwt.xml ?

source path=shared /

El jueves 22 de marzo de 2012 14:46:07 UTC+1, Deepak Singh escribió:

 It did not work.




-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/9QKJU7YLmEwJ.
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 share classes between two different modules with two different pages

2012-03-21 Thread Andrew Scully
It sounds like you just need two separate gwt.xml files within the same 
project. There is no reason why you can't use the same inherits within both.

On Tuesday, 20 March 2012 21:22:58 UTC, Deepak Singh wrote:

 Hi All,

 I have a GWT project with 2 modules.

 ModuleA  and ModuleB
 Both are having their own html page. i.e. tow seperate html pages so 
 seperate Rootpanel for both of them.

 So i cant inherit one into another.

 How can i use the same class(in shared package) in both the modules ?



 Thanks 
 Deepak Singh
  

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/2pEfxrUOUdQJ.
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 share classes between two different modules with two different pages

2012-03-21 Thread Deepak Singh
Yes i have two seperate *.gwt.xml for both the modules.
And i inherit ModuleB into moduleA as follows:

ModuleA.gwt.xml
inherits com.pdstechi.modulenameB.ModuleB

And then i use
 com.pdstechi.modulenameB.shared.AbcDto   into
com.pdstechi.modulenameA.client package, it fails compilation with message

'Source code for   com.pdstechi.modulenameB.shared.AbcDto  is not
available'.

Thanks
Deepak

On Wed, Mar 21, 2012 at 6:21 PM, Andrew Scully andrewscu...@gmail.comwrote:

 It sounds like you just need two separate gwt.xml files within the same
 project. There is no reason why you can't use the same inherits within both.


 On Tuesday, 20 March 2012 21:22:58 UTC, Deepak Singh wrote:

 Hi All,

 I have a GWT project with 2 modules.

 ModuleA  and ModuleB
 Both are having their own html page. i.e. tow seperate html pages so
 seperate Rootpanel for both of them.

 So i cant inherit one into another.

 How can i use the same class(in shared package) in both the modules ?



 Thanks
 Deepak Singh

  --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/2pEfxrUOUdQJ.
 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.




-- 
Deepak Singh

-- 
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 share classes between two different modules with two different pages

2012-03-21 Thread Matias Costa
I would create a base module from which A and B inherit.

Or you can try in moduleB.gwt.xml

source path=../moduleA/client /

El miércoles 21 de marzo de 2012 16:16:46 UTC+1, Deepak Singh escribió:

 Yes i have two seperate *.gwt.xml for both the modules.
 And i inherit ModuleB into moduleA as follows:

 ModuleA.gwt.xml
 inherits com.pdstechi.modulenameB.ModuleB

 And then i use
  com.pdstechi.modulenameB.shared.AbcDto   into 
 com.pdstechi.modulenameA.client package, it fails compilation with message 

 'Source code for   com.pdstechi.modulenameB.shared.AbcDto  is not 
 available'.

 Thanks
 Deepak

 

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/Pchfn1wJN08J.
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 share classes between two different modules with two different pages

2012-03-20 Thread Deepak Singh
Hi All,

I have a GWT project with 2 modules.

ModuleA  and ModuleB
Both are having their own html page. i.e. tow seperate html pages so
seperate Rootpanel for both of them.

So i cant inherit one into another.

How can i use the same class(in shared package) in both the modules ?



Thanks
Deepak Singh

-- 
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.