Hi Sri
in my module i have the following:
<generate-with class="com.hp.gwt.reflect.rebind.QuantumGenerator" >
<when-type-assignable
class="com.hp.gwt.reflect.client.Qunatization"/>
</generate-with>
Where QuantumGenerator is the generator and Qunatization is the
interface
I have one class implementing the interface (ttt)
Qunatization x = GWT.create(ttt.class);
I did not understand your suggestion , by sub class you mean a class
that "ttt" in this example extends ? (i don't think it will compile),
or did you mean don't use interface but a sub class instead.
( i tried to remove the inheritence in the generator output and change
it to extends, but it didnt work, and i dont think this is what u
meant)
On Apr 29, 7:45 pm, Sripathi Krishnan <[email protected]>
wrote:
> Give GWT.create() a class (as you did in point 2 below). In your
> module.gwt.xml, replace the class *you passed to GWT.create()* with a
> sub-class that has overridden some methods.
>
> --Sri
>
> On 29 April 2010 18:53, Genesis Simpleman <[email protected]> wrote:
>
>
>
>
>
> > Hi
> > I'm having a little problem with my generator.
> > I've built a small generator that generate a small class with one
> > method from a given interface.
> > This thing working quite good in dev mode but not working at all in
> > web mode
>
> > 1. when sending an interface to the create method i get "Rebind result
> > 'com.hp.client.Qunatization' must be a class"
> > 2. when sending a class implementing the interface i, it seems that
> > the create is sending the class as is and not the generated one
> > 3. when sending an interface extending the original one i get "Rebind
> > result 'com.hp.client.Qunatization' must be a class"
>
> > i've looked at the generated class in dev mode and it seems fine and
> > also works well as is.
> > for some reason i production mode the compiler ignore the replace-with
> > in the xml.
>
> > I am working in eclipse
> > I gave some files to someone working with intelliJ and it works fine
> > for him as well.
>
> > tried to look in the war, there is another xml but it also contain the
> > replace-with.
>
> > Will be happy to any help.
> > Thanx
>
> > --
> > 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%2bunsubs[email protected]>
> > .
> > 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 [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group
> athttp://groups.google.com/group/google-web-toolkit?hl=en.- 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 [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.