Tried to rename the package, but I get an error and a warning:

Error: Method 'eventGetTypeInt(String)' in type
'com.applegreen.gwt.html5.dom.DOMImplMozillaHtml5' is native. Running
the modified program will cause UnsatisfiedLinkError.
Warn: Package 'com.google.gwt.user.client.impl' already exists in this
project in a folder....

I guess if I downloaded the GWT source doing this would be straight
forward but I can't do that for this project... I need to stick with
the (2.0) release.

Any other suggestions?

On Dec 31, 9:26 am, DaveC <[email protected]> wrote:
> Ah, cool thanks - I've done all that just didn't put the MyDomImpl in
> com.google.gwt.user.client.impl...
>
> Cheers,
> Dave
>
> On Dec 31, 1:15 am, fvisticot <[email protected]> wrote:
>
>
>
> > Hello,
> > I have worked on the pb and i have made some progress !!!
>
> > 1. I have overloaded the DOMImpl class. The new overloaded class must
> > be in a package named com.google.gwt.user.client.impl
> > 2. I have created dedicated events (extending DomEvent)
> > 3. I have created dedicated handlers (extending EventHandler)
> > 4. I have created dedicated HasHandlers
> > 5. In my module file i have added:
>
> > <replace-with class="com.google.gwt.user.client.impl.MyDomImpl">
> >     <when-type-is class="com.google.gwt.user.client.impl.DOMImpl"/>
> >     <when-property-is name="user.agent" value="safari"/>
> > </replace-with>
>
> > 6. I have created a new Widget implementing the
> > public HandlerRegistration add<Your>Handler(<Your>Handler handler) {
> >             return addDomHandler(handler, <Your>Event.getType());
> >         }
> > 7. My application create the new widget and call the
> > add<Your>Handler...
>
> > ... and it works perfectly...
>
> > Hope it can help...
>
> > On 31 déc, 01:28, DaveC <[email protected]> wrote:
>
> > > It seems I'm trying to do the same 
> > > thinghttp://groups.google.com/group/google-web-toolkit/browse_thread/threa......
> > > and have come up against the same barriers.
>
> > > If I find the answer I'll let you know.
>
> > > Cheers,
> > > Dave
>
> > > On Dec 30, 10:23 pm, fvisticot <[email protected]> wrote:
>
> > > > I would like to manage the iPhone touchstart touchmove... events with
> > > > a clean solution.
> > > > It seems that i need to create my own DOMImpl for the iPhone and link
> > > > this new DOMImpl to the iPhone userAgent.
>
> > > > Do i need to recompile the GWT sources for that ?
> > > > It seems that i can not override the DOMImplSafari...so it seems that
> > > > a re-compilation is required...
>
> > > > I there a document/tuto with the differents mandatory steps to create
> > > > a new DOMImpl ?
> > > > Is there a list of class to implement when adding a new DOMImpl ?
> > > > (DOMImpl, UserAgent.gwt.xml, Creating new DomEvent...)
>
> > > > Is there allready a DOMImplIphone implementation (GoogleWave is
> > > > available on the iPhone....pearhaps are they using a dedicated
> > > > implementation) ??
>
> > > > Fred.

--

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