There is no magic ;)
GWT compiler must find working dto implied in some serialization (service
interface).
Perhaps a cache issues :-/ but I don't really think it is :)
Best regard,
Olivier.

On Tue, Jul 20, 2010 at 9:02 PM, Christian Goudreau <
[email protected]> wrote:

> Ok it work now...
>
> While pasting the code here I saw a little something...
>
> public class GetResults<T> implements Result {
>
>
> I changed this line for :
>
>> public class GetResults<T extends DTO> implements Result {
>
>
> And now it works... what I still don't understand is why some were working
> and others were not !
>
> Cheers,
>
>
> On Tue, Jul 20, 2010 at 3:00 PM, Christian Goudreau <
> [email protected]> wrote:
>
>> Yes they are...
>>
>> public class GetCountries extends ActionImpl<GetResults<Country>> {
>>   public GetCountries() {}
>> }
>>
>> public class GetDepartments extends ActionImpl<GetResults<Department>> {
>>   public GetDepartments() {}
>> }
>>
>> Exact sane declaration.
>>
>> public class GetResults<T> implements Result {
>>   private List<T> results;
>>
>>   public List<T> getResults() {
>>     return results;
>>   }
>>
>>   @SuppressWarnings("unused")
>>   private GetResults() {}
>>
>>   public GetResults(final List<T> results) {
>>     this.results = results;
>>   }
>> }
>>
>> This is for the result.
>>
>> On Tue, Jul 20, 2010 at 2:56 PM, olivier nouguier <
>> [email protected]> wrote:
>>
>>> Ok, I don't remember the detail but is departement is declared/exposed in
>>> the type of an action or a result
>>>
>>>
>>> On Tue, Jul 20, 2010 at 8:46 PM, Christian Goudreau <
>>> [email protected]> wrote:
>>>
>>>> I'm using command pattern from Gwt-Dispatch.
>>>>
>>>> GetDepartments is my action, Action interface extends isSerializable and
>>>> that being said, country had the exact same chain and work.
>>>>
>>>>
>>>>
>>>> On Tue, Jul 20, 2010 at 2:41 PM, olivier nouguier <
>>>> [email protected]> wrote:
>>>>
>>>>> Just for information:
>>>>> does it appear (Departement) in a remote service interface method ?
>>>>>
>>>>> On Tue, Jul 20, 2010 at 8:26 PM, Christian Goudreau <
>>>>> [email protected]> wrote:
>>>>>
>>>>>> I have two objects, they implements the same interfaces the only
>>>>>> difference between them is their name and the name of their fields... 
>>>>>> one of
>>>>>> them go through rpc just fine and the other one don't...
>>>>>>
>>>>>> Type 'ca.ulaval.apapul.shared.model.Department' was not included in
>>>>>> the set of types which can be serialized by this SerializationPolicy or 
>>>>>> its
>>>>>> Class object could not be loaded. For security purposes, this type will 
>>>>>> not
>>>>>> be serialized.: instance = 
>>>>>> ca.ulaval.apapul.shared.model.departm...@8a9a1a
>>>>>>
>>>>>> Empty constructor, implements isSerializable fields are simple string
>>>>>> and a long... Don't know where to see anymore and it's driving me crazy.
>>>>>> Note that yesterday the same classe was running fine.
>>>>>>
>>>>>> *.gwt.rpc -> some informations
>>>>>> ca.ulaval.apapul.shared.model.Country, true, true, true, true,
>>>>>> ca.ulaval.apapul.shared.model.Country/3594740056, 3594740056 <- this one
>>>>>> works fine.
>>>>>>  ca.ulaval.apapul.shared.model.Department, false, false, true, true,
>>>>>> ca.ulaval.apapul.shared.model.Department/3079600257, 3079600257 <- this 
>>>>>> one
>>>>>> don't
>>>>>>
>>>>>> ca.ulaval.apapul.shared.dispatch.action.GetCountries, false, false,
>>>>>> true, true, 
>>>>>> ca.ulaval.apapul.shared.dispatch.action.GetCountries/2299775089,
>>>>>> 2299775089
>>>>>> ca.ulaval.apapul.shared.dispatch.action.GetDepartments, false, false,
>>>>>> true, true,
>>>>>> ca.ulaval.apapul.shared.dispatch.action.GetDepartments/3827258256,
>>>>>> 3827258256
>>>>>>
>>>>>> ca.ulaval.apapul.shared.dispatch.result.GetResults, true, true, true,
>>>>>> true, ca.ulaval.apapul.shared.dispatch.result.GetResults/3469687742,
>>>>>> 3469687742
>>>>>>
>>>>>> ca.ulaval.apapul.shared.model.DTO, true, false, true, false,
>>>>>> ca.ulaval.apapul.shared.model.DTO/1434028420, 1434028420
>>>>>>
>>>>>> --
>>>>>> Christian Goudreau
>>>>>>
>>>>>> --
>>>>>> You received this message because you are subscribed to the Google
>>>>>> Groups "Google Web Toolkit" group.
>>>>>> To post to this group, send email to
>>>>>> [email protected].
>>>>>> To unsubscribe from this group, send email to
>>>>>> [email protected]<google-web-toolkit%[email protected]>
>>>>>> .
>>>>>> For more options, visit this group at
>>>>>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> "Computers are useless. They can only give you answers."
>>>>> - Pablo Picasso -
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "Google Web Toolkit" group.
>>>>> To post to this group, send email to
>>>>> [email protected].
>>>>> To unsubscribe from this group, send email to
>>>>> [email protected]<google-web-toolkit%[email protected]>
>>>>> .
>>>>> For more options, visit this group at
>>>>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Christian Goudreau
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Google Web Toolkit" group.
>>>> To post to this group, send email to
>>>> [email protected].
>>>> To unsubscribe from this group, send email to
>>>> [email protected]<google-web-toolkit%[email protected]>
>>>> .
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>>>
>>>
>>>
>>>
>>> --
>>> "Computers are useless. They can only give you answers."
>>> - Pablo Picasso -
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Google Web Toolkit" group.
>>> To post to this group, send email to [email protected]
>>> .
>>> To unsubscribe from this group, send email to
>>> [email protected]<google-web-toolkit%[email protected]>
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>>
>>
>>
>>
>> --
>> Christian Goudreau
>>
>
>
>
> --
> Christian Goudreau
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-web-toolkit%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>



-- 
"Computers are useless. They can only give you answers."
- Pablo Picasso -

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

Reply via email to