Re: Reusability of GWT UI

2010-07-20 Thread Chris Conroy
Please do not bump threads like this. It's disrespectful, adds unnecessary
noise to the list, and it won't get your question answered faster.

On Tue, Jul 20, 2010 at 9:47 AM, Vik  wrote:

> any one on this plz...
>
> Thankx and Regards
>
> Vik
> Founder
> www.sakshum.com
> www.sakshum.blogspot.com
>
>
> On Tue, Jul 13, 2010 at 7:32 PM, Vik  wrote:
>
>> hie
>>
>> Thanks but i have following doubt:
>>
>> Since i need two different handlers for two search panels then where will
>> be the deciding logic ?
>> and how exactly i will call this addClickHandler method?
>>
>>
>> 1. How will i call it
>>
>> Thankx and Regards
>>
>> Vik
>> Founder
>> www.sakshum.com
>> www.sakshum.blogspot.com
>>
>>
>> On Mon, Jul 12, 2010 at 10:28 PM, Gal Dolber wrote:
>>
>>> class YourSearchPanel extends Composite *implements HasClickHandlers {*
>>> *
>>> *
>>> *...*
>>> *public HandlerRegistration addClickHandler(ClickHandler handler) {*
>>> *yourSearchButton.addClickHandler(handler);*
>>> *}*
>>> *
>>> *
>>> *}*
>>> *
>>> *
>>> *And move the rpc logic out of your widget
>>> *
>>> 2010/7/12 Vik 
>>>
  Hie

 I have a UI which shows a search panel having 3 list boxes to select
 from and a search button.

 I have two different pages where this UI has to be exactly same except
 the search button needs to call  different rpc services.

 How should I write the code once and resue it both the places? Please
 advise...

 Thankx and Regards

 Vik
 Founder
 www.sakshum.com
 www.sakshum.blogspot.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-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.

>>>
>>>
>>>
>>> --
>>> http://gwtupdates.blogspot.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
>>> 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.
>



-- 
Chris Conroy
Software Engineer
Google, Atlanta

-- 
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: Reusability of GWT UI

2010-07-20 Thread Vik
any one on this plz...

Thankx and Regards

Vik
Founder
www.sakshum.com
www.sakshum.blogspot.com


On Tue, Jul 13, 2010 at 7:32 PM, Vik  wrote:

> hie
>
> Thanks but i have following doubt:
>
> Since i need two different handlers for two search panels then where will
> be the deciding logic ?
> and how exactly i will call this addClickHandler method?
>
>
> 1. How will i call it
>
> Thankx and Regards
>
> Vik
> Founder
> www.sakshum.com
> www.sakshum.blogspot.com
>
>
> On Mon, Jul 12, 2010 at 10:28 PM, Gal Dolber  wrote:
>
>> class YourSearchPanel extends Composite *implements HasClickHandlers {*
>> *
>> *
>> *...*
>> *public HandlerRegistration addClickHandler(ClickHandler handler) {*
>> *yourSearchButton.addClickHandler(handler);*
>> *}*
>> *
>> *
>> *}*
>> *
>> *
>> *And move the rpc logic out of your widget
>> *
>> 2010/7/12 Vik 
>>
>>>  Hie
>>>
>>> I have a UI which shows a search panel having 3 list boxes to select from
>>> and a search button.
>>>
>>> I have two different pages where this UI has to be exactly same except
>>> the search button needs to call  different rpc services.
>>>
>>> How should I write the code once and resue it both the places? Please
>>> advise...
>>>
>>> Thankx and Regards
>>>
>>> Vik
>>> Founder
>>> www.sakshum.com
>>> www.sakshum.blogspot.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
>>> google-web-toolkit+unsubscr...@googlegroups.com
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>>
>>
>>
>>
>> --
>> http://gwtupdates.blogspot.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-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.
>>
>
>

-- 
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: Reusability of GWT UI

2010-07-17 Thread Vik
hie

any advise on this plz...

Thankx and Regards

Vik
Founder
www.sakshum.com
www.sakshum.blogspot.com


On Tue, Jul 13, 2010 at 7:32 PM, Vik  wrote:

> hie
>
> Thanks but i have following doubt:
>
> Since i need two different handlers for two search panels then where will
> be the deciding logic ?
> and how exactly i will call this addClickHandler method?
>
>
> 1. How will i call it
>
> Thankx and Regards
>
> Vik
> Founder
> www.sakshum.com
> www.sakshum.blogspot.com
>
>
> On Mon, Jul 12, 2010 at 10:28 PM, Gal Dolber  wrote:
>
>> class YourSearchPanel extends Composite *implements HasClickHandlers {*
>> *
>> *
>> *...*
>> *public HandlerRegistration addClickHandler(ClickHandler handler) {*
>> *yourSearchButton.addClickHandler(handler);*
>> *}*
>> *
>> *
>> *}*
>> *
>> *
>> *And move the rpc logic out of your widget
>> *
>> 2010/7/12 Vik 
>>
>>>  Hie
>>>
>>> I have a UI which shows a search panel having 3 list boxes to select from
>>> and a search button.
>>>
>>> I have two different pages where this UI has to be exactly same except
>>> the search button needs to call  different rpc services.
>>>
>>> How should I write the code once and resue it both the places? Please
>>> advise...
>>>
>>> Thankx and Regards
>>>
>>> Vik
>>> Founder
>>> www.sakshum.com
>>> www.sakshum.blogspot.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
>>> google-web-toolkit+unsubscr...@googlegroups.com
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>>
>>
>>
>>
>> --
>> http://gwtupdates.blogspot.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-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.
>>
>
>

-- 
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: Reusability of GWT UI

2010-07-16 Thread Vik
any advise on this plz...

Thankx and Regards

Vik
Founder
www.sakshum.com
www.sakshum.blogspot.com


On Thu, Jul 15, 2010 at 10:50 PM, Vik  wrote:

> Hie Phani
>
>
> The yes requirement is right. But the solution you suggested seems a little
> confusing.
>
> Can you put a more detailed example on this? Please advise, I am stuck on
> it.
>
>
> Thankx and Regards
>
> Vik
> Founder
> www.sakshum.com
> www.sakshum.blogspot.com
>
>
> On Wed, Jul 14, 2010 at 4:40 PM, phani kumar wrote:
>
>> Vik,
>> Let me first clear what i understood about your requirement..
>>
>> You want to make a UI util class which holds all the elements like
>> textfilelds or listfields whose data is used as the params for search
>> functionality. And the same functionality should fetch two different data
>> from the server. For that you have to use two different rpc calls for the
>> search functionality. Is this what you exactly want..?
>>
>> If that is the case, as i mentioned in my previous post, the search button
>> event will call the method which is implemented by a particular UI class at
>> the run time. In that method you will be writing all the logic of fetching
>> and displaying the content in your UI.
>>
>> On Wed, Jul 14, 2010 at 3:17 PM, Vik  wrote:
>>
>>> Phani
>>>
>>> How does this maps to the approach suggested earlier in this mail?
>>> I dont see any match... Please advise...
>>>
>>>
>>> Thankx and Regards
>>>
>>> Vik
>>> Founder
>>> www.sakshum.com
>>> www.sakshum.blogspot.com
>>>
>>>
>>> On Wed, Jul 14, 2010 at 2:14 PM, phani kumar wrote:
>>>

 Hii Vik,
 May be this is usefull for you..

 1. Make an interface ex: SearchService

 2. Define a method in the interface ex:handleSearchEvent(>>> params>)

 3. Both your screen classes has to implement SearchService interface.

 4. Define a method in your Search Panel Util class ex :
 setSearchServiceRef(SerachService searchService) {
  this.searchService = searchService;
 }

 5. When you create the search util class in your screens, call this
 method with (this) as parameter.

 6. In the button handler of your search util class, call
 searchService.handleSearchEvent() ;

 7. Since, you will have different implementation of the search function
 in your both screens, at run time the functionality will behave as it is
 defined in your screen classes.

 I think, this is what you are looking for.

 Regards,
 Phani Kumar K


 On Wed, Jul 14, 2010 at 12:26 PM, Vik  wrote:

> hie
>
> any help on this please...
>
> Thankx and Regards
>
> Vik
> Founder
> www.sakshum.com
> www.sakshum.blogspot.com
>
>
> On Tue, Jul 13, 2010 at 7:32 PM, Vik  wrote:
>
>> hie
>>
>> Thanks but i have following doubt:
>>
>> Since i need two different handlers for two search panels then where
>> will be the deciding logic ?
>> and how exactly i will call this addClickHandler method?
>>
>>
>> 1. How will i call it
>>
>> Thankx and Regards
>>
>> Vik
>> Founder
>> www.sakshum.com
>> www.sakshum.blogspot.com
>>
>>
>> On Mon, Jul 12, 2010 at 10:28 PM, Gal Dolber wrote:
>>
>>> class YourSearchPanel extends Composite *implements HasClickHandlers
>>> {*
>>> *
>>> *
>>> *...*
>>> *public HandlerRegistration addClickHandler(ClickHandler handler) {*
>>> *yourSearchButton.addClickHandler(handler);*
>>> *}*
>>> *
>>> *
>>> *}*
>>> *
>>> *
>>> *And move the rpc logic out of your widget
>>> *
>>> 2010/7/12 Vik 
>>>
  Hie

 I have a UI which shows a search panel having 3 list boxes to select
 from and a search button.

 I have two different pages where this UI has to be exactly same
 except the search button needs to call  different rpc services.

 How should I write the code once and resue it both the places?
 Please advise...

 Thankx and Regards

 Vik
 Founder
 www.sakshum.com
 www.sakshum.blogspot.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-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.

>>>
>>>
>>>
>>> --
>>> http://gwtupdates.blogspot.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-tool...

Re: Reusability of GWT UI

2010-07-15 Thread Vik
Hie Phani


The yes requirement is right. But the solution you suggested seems a little
confusing.

Can you put a more detailed example on this? Please advise, I am stuck on
it.


Thankx and Regards

Vik
Founder
www.sakshum.com
www.sakshum.blogspot.com


On Wed, Jul 14, 2010 at 4:40 PM, phani kumar  wrote:

> Vik,
> Let me first clear what i understood about your requirement..
>
> You want to make a UI util class which holds all the elements like
> textfilelds or listfields whose data is used as the params for search
> functionality. And the same functionality should fetch two different data
> from the server. For that you have to use two different rpc calls for the
> search functionality. Is this what you exactly want..?
>
> If that is the case, as i mentioned in my previous post, the search button
> event will call the method which is implemented by a particular UI class at
> the run time. In that method you will be writing all the logic of fetching
> and displaying the content in your UI.
>
> On Wed, Jul 14, 2010 at 3:17 PM, Vik  wrote:
>
>> Phani
>>
>> How does this maps to the approach suggested earlier in this mail?
>> I dont see any match... Please advise...
>>
>>
>> Thankx and Regards
>>
>> Vik
>> Founder
>> www.sakshum.com
>> www.sakshum.blogspot.com
>>
>>
>> On Wed, Jul 14, 2010 at 2:14 PM, phani kumar wrote:
>>
>>>
>>> Hii Vik,
>>> May be this is usefull for you..
>>>
>>> 1. Make an interface ex: SearchService
>>>
>>> 2. Define a method in the interface ex:handleSearchEvent()
>>>
>>> 3. Both your screen classes has to implement SearchService interface.
>>>
>>> 4. Define a method in your Search Panel Util class ex :
>>> setSearchServiceRef(SerachService searchService) {
>>>  this.searchService = searchService;
>>> }
>>>
>>> 5. When you create the search util class in your screens, call this
>>> method with (this) as parameter.
>>>
>>> 6. In the button handler of your search util class, call
>>> searchService.handleSearchEvent() ;
>>>
>>> 7. Since, you will have different implementation of the search function
>>> in your both screens, at run time the functionality will behave as it is
>>> defined in your screen classes.
>>>
>>> I think, this is what you are looking for.
>>>
>>> Regards,
>>> Phani Kumar K
>>>
>>>
>>> On Wed, Jul 14, 2010 at 12:26 PM, Vik  wrote:
>>>
 hie

 any help on this please...

 Thankx and Regards

 Vik
 Founder
 www.sakshum.com
 www.sakshum.blogspot.com


 On Tue, Jul 13, 2010 at 7:32 PM, Vik  wrote:

> hie
>
> Thanks but i have following doubt:
>
> Since i need two different handlers for two search panels then where
> will be the deciding logic ?
> and how exactly i will call this addClickHandler method?
>
>
> 1. How will i call it
>
> Thankx and Regards
>
> Vik
> Founder
> www.sakshum.com
> www.sakshum.blogspot.com
>
>
> On Mon, Jul 12, 2010 at 10:28 PM, Gal Dolber wrote:
>
>> class YourSearchPanel extends Composite *implements HasClickHandlers
>> {*
>> *
>> *
>> *...*
>> *public HandlerRegistration addClickHandler(ClickHandler handler) {*
>> *yourSearchButton.addClickHandler(handler);*
>> *}*
>> *
>> *
>> *}*
>> *
>> *
>> *And move the rpc logic out of your widget
>> *
>> 2010/7/12 Vik 
>>
>>>  Hie
>>>
>>> I have a UI which shows a search panel having 3 list boxes to select
>>> from and a search button.
>>>
>>> I have two different pages where this UI has to be exactly same
>>> except the search button needs to call  different rpc services.
>>>
>>> How should I write the code once and resue it both the places? Please
>>> advise...
>>>
>>> Thankx and Regards
>>>
>>> Vik
>>> Founder
>>> www.sakshum.com
>>> www.sakshum.blogspot.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-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.
>>>
>>
>>
>>
>> --
>> http://gwtupdates.blogspot.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-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.
>>
>
>
  --
 You received this message because you are subscribed to the Google
>>

Re: Reusability of GWT UI

2010-07-14 Thread phani kumar
Vik,
Let me first clear what i understood about your requirement..

You want to make a UI util class which holds all the elements like
textfilelds or listfields whose data is used as the params for search
functionality. And the same functionality should fetch two different data
from the server. For that you have to use two different rpc calls for the
search functionality. Is this what you exactly want..?

If that is the case, as i mentioned in my previous post, the search button
event will call the method which is implemented by a particular UI class at
the run time. In that method you will be writing all the logic of fetching
and displaying the content in your UI.

On Wed, Jul 14, 2010 at 3:17 PM, Vik  wrote:

> Phani
>
> How does this maps to the approach suggested earlier in this mail?
> I dont see any match... Please advise...
>
>
> Thankx and Regards
>
> Vik
> Founder
> www.sakshum.com
> www.sakshum.blogspot.com
>
>
> On Wed, Jul 14, 2010 at 2:14 PM, phani kumar wrote:
>
>>
>> Hii Vik,
>> May be this is usefull for you..
>>
>> 1. Make an interface ex: SearchService
>>
>> 2. Define a method in the interface ex:handleSearchEvent()
>>
>> 3. Both your screen classes has to implement SearchService interface.
>>
>> 4. Define a method in your Search Panel Util class ex :
>> setSearchServiceRef(SerachService searchService) {
>>  this.searchService = searchService;
>> }
>>
>> 5. When you create the search util class in your screens, call this method
>> with (this) as parameter.
>>
>> 6. In the button handler of your search util class, call
>> searchService.handleSearchEvent() ;
>>
>> 7. Since, you will have different implementation of the search function in
>> your both screens, at run time the functionality will behave as it is
>> defined in your screen classes.
>>
>> I think, this is what you are looking for.
>>
>> Regards,
>> Phani Kumar K
>>
>>
>> On Wed, Jul 14, 2010 at 12:26 PM, Vik  wrote:
>>
>>> hie
>>>
>>> any help on this please...
>>>
>>> Thankx and Regards
>>>
>>> Vik
>>> Founder
>>> www.sakshum.com
>>> www.sakshum.blogspot.com
>>>
>>>
>>> On Tue, Jul 13, 2010 at 7:32 PM, Vik  wrote:
>>>
 hie

 Thanks but i have following doubt:

 Since i need two different handlers for two search panels then where
 will be the deciding logic ?
 and how exactly i will call this addClickHandler method?


 1. How will i call it

 Thankx and Regards

 Vik
 Founder
 www.sakshum.com
 www.sakshum.blogspot.com


 On Mon, Jul 12, 2010 at 10:28 PM, Gal Dolber wrote:

> class YourSearchPanel extends Composite *implements HasClickHandlers {
> *
> *
> *
> *...*
> *public HandlerRegistration addClickHandler(ClickHandler handler) {*
> *yourSearchButton.addClickHandler(handler);*
> *}*
> *
> *
> *}*
> *
> *
> *And move the rpc logic out of your widget
> *
> 2010/7/12 Vik 
>
>>  Hie
>>
>> I have a UI which shows a search panel having 3 list boxes to select
>> from and a search button.
>>
>> I have two different pages where this UI has to be exactly same except
>> the search button needs to call  different rpc services.
>>
>> How should I write the code once and resue it both the places? Please
>> advise...
>>
>> Thankx and Regards
>>
>> Vik
>> Founder
>> www.sakshum.com
>> www.sakshum.blogspot.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-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.
>>
>
>
>
> --
> http://gwtupdates.blogspot.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-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.
>


>>>  --
>>> 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.
>>>
>>
>>
>>
>> --
>> Regards,
>> Phani Kumar K,
>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web To

Re: Reusability of GWT UI

2010-07-14 Thread Vik
Phani

How does this maps to the approach suggested earlier in this mail?
I dont see any match... Please advise...


Thankx and Regards

Vik
Founder
www.sakshum.com
www.sakshum.blogspot.com


On Wed, Jul 14, 2010 at 2:14 PM, phani kumar  wrote:

>
> Hii Vik,
> May be this is usefull for you..
>
> 1. Make an interface ex: SearchService
>
> 2. Define a method in the interface ex:handleSearchEvent()
>
> 3. Both your screen classes has to implement SearchService interface.
>
> 4. Define a method in your Search Panel Util class ex :
> setSearchServiceRef(SerachService searchService) {
>  this.searchService = searchService;
> }
>
> 5. When you create the search util class in your screens, call this method
> with (this) as parameter.
>
> 6. In the button handler of your search util class, call
> searchService.handleSearchEvent() ;
>
> 7. Since, you will have different implementation of the search function in
> your both screens, at run time the functionality will behave as it is
> defined in your screen classes.
>
> I think, this is what you are looking for.
>
> Regards,
> Phani Kumar K
>
>
> On Wed, Jul 14, 2010 at 12:26 PM, Vik  wrote:
>
>> hie
>>
>> any help on this please...
>>
>> Thankx and Regards
>>
>> Vik
>> Founder
>> www.sakshum.com
>> www.sakshum.blogspot.com
>>
>>
>> On Tue, Jul 13, 2010 at 7:32 PM, Vik  wrote:
>>
>>> hie
>>>
>>> Thanks but i have following doubt:
>>>
>>> Since i need two different handlers for two search panels then where will
>>> be the deciding logic ?
>>> and how exactly i will call this addClickHandler method?
>>>
>>>
>>> 1. How will i call it
>>>
>>> Thankx and Regards
>>>
>>> Vik
>>> Founder
>>> www.sakshum.com
>>> www.sakshum.blogspot.com
>>>
>>>
>>> On Mon, Jul 12, 2010 at 10:28 PM, Gal Dolber wrote:
>>>
 class YourSearchPanel extends Composite *implements HasClickHandlers {*
 *
 *
 *...*
 *public HandlerRegistration addClickHandler(ClickHandler handler) {*
 *yourSearchButton.addClickHandler(handler);*
 *}*
 *
 *
 *}*
 *
 *
 *And move the rpc logic out of your widget
 *
 2010/7/12 Vik 

>  Hie
>
> I have a UI which shows a search panel having 3 list boxes to select
> from and a search button.
>
> I have two different pages where this UI has to be exactly same except
> the search button needs to call  different rpc services.
>
> How should I write the code once and resue it both the places? Please
> advise...
>
> Thankx and Regards
>
> Vik
> Founder
> www.sakshum.com
> www.sakshum.blogspot.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-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.
>



 --
 http://gwtupdates.blogspot.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-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.

>>>
>>>
>>  --
>> 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.
>>
>
>
>
> --
> Regards,
> Phani Kumar,
> Senior Software Engineer,
> HP GlobalSoft,
> Chennai.
> Mobile : +91 9962755795
> Work : 91-044-39853592
>
>  --
> 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.
>

-- 
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: Reusability of GWT UI

2010-07-14 Thread phani kumar
Hii Vik,
May be this is usefull for you..

1. Make an interface ex: SearchService

2. Define a method in the interface ex:handleSearchEvent()

3. Both your screen classes has to implement SearchService interface.

4. Define a method in your Search Panel Util class ex :
setSearchServiceRef(SerachService searchService) {
 this.searchService = searchService;
}

5. When you create the search util class in your screens, call this method
with (this) as parameter.

6. In the button handler of your search util class, call
searchService.handleSearchEvent() ;

7. Since, you will have different implementation of the search function in
your both screens, at run time the functionality will behave as it is
defined in your screen classes.

I think, this is what you are looking for.

Regards,
Phani Kumar K

On Wed, Jul 14, 2010 at 12:26 PM, Vik  wrote:

> hie
>
> any help on this please...
>
> Thankx and Regards
>
> Vik
> Founder
> www.sakshum.com
> www.sakshum.blogspot.com
>
>
> On Tue, Jul 13, 2010 at 7:32 PM, Vik  wrote:
>
>> hie
>>
>> Thanks but i have following doubt:
>>
>> Since i need two different handlers for two search panels then where will
>> be the deciding logic ?
>> and how exactly i will call this addClickHandler method?
>>
>>
>> 1. How will i call it
>>
>> Thankx and Regards
>>
>> Vik
>> Founder
>> www.sakshum.com
>> www.sakshum.blogspot.com
>>
>>
>> On Mon, Jul 12, 2010 at 10:28 PM, Gal Dolber wrote:
>>
>>> class YourSearchPanel extends Composite *implements HasClickHandlers {*
>>> *
>>> *
>>> *...*
>>> *public HandlerRegistration addClickHandler(ClickHandler handler) {*
>>> *yourSearchButton.addClickHandler(handler);*
>>> *}*
>>> *
>>> *
>>> *}*
>>> *
>>> *
>>> *And move the rpc logic out of your widget
>>> *
>>> 2010/7/12 Vik 
>>>
  Hie

 I have a UI which shows a search panel having 3 list boxes to select
 from and a search button.

 I have two different pages where this UI has to be exactly same except
 the search button needs to call  different rpc services.

 How should I write the code once and resue it both the places? Please
 advise...

 Thankx and Regards

 Vik
 Founder
 www.sakshum.com
 www.sakshum.blogspot.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-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.

>>>
>>>
>>>
>>> --
>>> http://gwtupdates.blogspot.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
>>> 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.
>



-- 
Regards,
Phani Kumar,
Senior Software Engineer,
HP GlobalSoft,
Chennai.
Mobile : +91 9962755795
Work : 91-044-39853592

-- 
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: Reusability of GWT UI

2010-07-13 Thread Vik
hie

any help on this please...

Thankx and Regards

Vik
Founder
www.sakshum.com
www.sakshum.blogspot.com


On Tue, Jul 13, 2010 at 7:32 PM, Vik  wrote:

> hie
>
> Thanks but i have following doubt:
>
> Since i need two different handlers for two search panels then where will
> be the deciding logic ?
> and how exactly i will call this addClickHandler method?
>
>
> 1. How will i call it
>
> Thankx and Regards
>
> Vik
> Founder
> www.sakshum.com
> www.sakshum.blogspot.com
>
>
> On Mon, Jul 12, 2010 at 10:28 PM, Gal Dolber  wrote:
>
>> class YourSearchPanel extends Composite *implements HasClickHandlers {*
>> *
>> *
>> *...*
>> *public HandlerRegistration addClickHandler(ClickHandler handler) {*
>> *yourSearchButton.addClickHandler(handler);*
>> *}*
>> *
>> *
>> *}*
>> *
>> *
>> *And move the rpc logic out of your widget
>> *
>> 2010/7/12 Vik 
>>
>>>  Hie
>>>
>>> I have a UI which shows a search panel having 3 list boxes to select from
>>> and a search button.
>>>
>>> I have two different pages where this UI has to be exactly same except
>>> the search button needs to call  different rpc services.
>>>
>>> How should I write the code once and resue it both the places? Please
>>> advise...
>>>
>>> Thankx and Regards
>>>
>>> Vik
>>> Founder
>>> www.sakshum.com
>>> www.sakshum.blogspot.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
>>> google-web-toolkit+unsubscr...@googlegroups.com
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>>
>>
>>
>>
>> --
>> http://gwtupdates.blogspot.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-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.
>>
>
>

-- 
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: Reusability of GWT UI

2010-07-13 Thread Vik


Thanks & Regards
Vik
http://www.sakshum.com
Sent from my iPad

On Jul 13, 2010, at 7:32 PM, Vik  wrote:

> hie 
> 
> Thanks but i have following doubt:
> 
> Since i need two different handlers for two search panels then where will be 
> the deciding logic ?
> and how exactly i will call this addClickHandler method?
> 
> 
> 1. How will i call it 
> Thankx and Regards
> 
> Vik
> Founder
> www.sakshum.com
> www.sakshum.blogspot.com
> 
> 
> On Mon, Jul 12, 2010 at 10:28 PM, Gal Dolber  wrote:
> class YourSearchPanel extends Composite implements HasClickHandlers {
> 
> ...
> public HandlerRegistration addClickHandler(ClickHandler handler) {
> yourSearchButton.addClickHandler(handler);
> }
> 
> }
> 
> And move the rpc logic out of your widget
> 
> 2010/7/12 Vik 
> Hie
> 
> I have a UI which shows a search panel having 3 list boxes to select from and 
> a search button.
> 
> I have two different pages where this UI has to be exactly same except the 
> search button needs to call  different rpc services.
> 
> How should I write the code once and resue it both the places? Please 
> advise...
> 
> Thankx and Regards
> 
> Vik
> Founder
> www.sakshum.com
> www.sakshum.blogspot.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-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.
> 
> 
> 
> -- 
> http://gwtupdates.blogspot.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-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.
> 

-- 
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: Reusability of GWT UI

2010-07-13 Thread Gal Dolber
In that case make your custom events...

You need to create 1 class and 2 interfaces... YourEvent.class (class),
YourHandler(interface) and HasYourHandler(interface)

See and copy any shared event as SelectionEvent, SelectionHandler &
HasSelectionHandler. (see the code of this ones and copy them)

In your panel instead of delegating the event to the button do this:
return addHandler(handler, YourEvent.getType());

And then you should trigger the events:
searchButton.addClickHandler(new ClickHandler() {
void onClick() {
YourPanel.this.fireEvent(new YourEvent(someParameters));
}
});

Its hard to explain this in two words... you should google for "gwt events
system" or look in the google code page of gwt, I think there is a document
that explain this

2010/7/13 Vik 

> hie
>
> Thanks but i have following doubt:
>
> Since i need two different handlers for two search panels then where will
> be the deciding logic ?
> and how exactly i will call this addClickHandler method?
>
>
> 1. How will i call it
>
> Thankx and Regards
>
> Vik
> Founder
> www.sakshum.com
> www.sakshum.blogspot.com
>
>
> On Mon, Jul 12, 2010 at 10:28 PM, Gal Dolber  wrote:
>
>> class YourSearchPanel extends Composite *implements HasClickHandlers {*
>> *
>> *
>> *...*
>> *public HandlerRegistration addClickHandler(ClickHandler handler) {*
>> *yourSearchButton.addClickHandler(handler);*
>> *}*
>> *
>> *
>> *}*
>> *
>> *
>> *And move the rpc logic out of your widget
>> *
>> 2010/7/12 Vik 
>>
>>>  Hie
>>>
>>> I have a UI which shows a search panel having 3 list boxes to select from
>>> and a search button.
>>>
>>> I have two different pages where this UI has to be exactly same except
>>> the search button needs to call  different rpc services.
>>>
>>> How should I write the code once and resue it both the places? Please
>>> advise...
>>>
>>> Thankx and Regards
>>>
>>> Vik
>>> Founder
>>> www.sakshum.com
>>> www.sakshum.blogspot.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
>>> google-web-toolkit+unsubscr...@googlegroups.com
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>>
>>
>>
>>
>> --
>> http://gwtupdates.blogspot.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-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.
>>
>
>  --
> 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.
>



-- 
http://gwtupdates.blogspot.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-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: Reusability of GWT UI

2010-07-13 Thread Vik
hie

Thanks but i have following doubt:

Since i need two different handlers for two search panels then where will be
the deciding logic ?
and how exactly i will call this addClickHandler method?


1. How will i call it
Thankx and Regards

Vik
Founder
www.sakshum.com
www.sakshum.blogspot.com


On Mon, Jul 12, 2010 at 10:28 PM, Gal Dolber  wrote:

> class YourSearchPanel extends Composite *implements HasClickHandlers {*
> *
> *
> *...*
> *public HandlerRegistration addClickHandler(ClickHandler handler) {*
> *yourSearchButton.addClickHandler(handler);*
> *}*
> *
> *
> *}*
> *
> *
> *And move the rpc logic out of your widget
> *
> 2010/7/12 Vik 
>
>>  Hie
>>
>> I have a UI which shows a search panel having 3 list boxes to select from
>> and a search button.
>>
>> I have two different pages where this UI has to be exactly same except the
>> search button needs to call  different rpc services.
>>
>> How should I write the code once and resue it both the places? Please
>> advise...
>>
>> Thankx and Regards
>>
>> Vik
>> Founder
>> www.sakshum.com
>> www.sakshum.blogspot.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-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.
>>
>
>
>
> --
> http://gwtupdates.blogspot.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-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.
>

-- 
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: Reusability of GWT UI

2010-07-12 Thread Gal Dolber
class YourSearchPanel extends Composite *implements HasClickHandlers {*
*
*
*...*
*public HandlerRegistration addClickHandler(ClickHandler handler) {*
*yourSearchButton.addClickHandler(handler);*
*}*
*
*
*}*
*
*
*And move the rpc logic out of your widget
*
2010/7/12 Vik 

> Hie
>
> I have a UI which shows a search panel having 3 list boxes to select from
> and a search button.
>
> I have two different pages where this UI has to be exactly same except the
> search button needs to call  different rpc services.
>
> How should I write the code once and resue it both the places? Please
> advise...
>
> Thankx and Regards
>
> Vik
> Founder
> www.sakshum.com
> www.sakshum.blogspot.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-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.
>



-- 
http://gwtupdates.blogspot.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-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.