On Fri, Mar 12, 2010 at 8:13 AM, Steve Baker <[email protected]>wrote:
> On Thu, Mar 11, 2010 at 4:57 PM, krithika <[email protected]> > wrote: > > I was following this thread and tried generating javascript for > > DocOpBuilder.java.In my entry point class from onModuleLoad method I > > added > ... > > This worked.But my question is > > > > 1. Am I supposed to place the required method calls of the classes > > like Transformer , ProtocolDocumentOperation.java manually.Are am I > > missing something totally?. > > I'm just coming to grips with this too. If I understand GWT correctly, > client code is only generated for the methods invoked as a result of > the onModuleLoad call. This is fine for a GWT based client UI, but I > imagine there would be a fair number of client UIs which won't be GWT > based. > > So the challenge is to get GWT to compile a complete model that can be > invoked by non-GWT javascript. If there is a better way to achieve > that than making dummy calls to everything of interest in onModuleLoad > then I'd like to learn about it. > > There is something I half investigated whereby you can generate a gwt module that exports functions into the embedding scope. Gwt-export if memory serves. The interesting question becomes what sort of javascript api would make sense over a constantly changing structured document? You could wire up some sort of javascript listener style interface where the javascript gets a complete document pushed on it every time the OT doc changes, along with some sort of "make this edit" call interface, which would map half decently to the underlying OT implementation, but would probably suck majorly from the javascripter's point of view. > cheers > > -- > You received this message because you are subscribed to the Google Groups > "Wave Protocol" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<wave-protocol%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/wave-protocol?hl=en. > > -- Brett Morgan http://www.google.com/profiles/brett.morgan -- You received this message because you are subscribed to the Google Groups "Wave Protocol" 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/wave-protocol?hl=en.
