Extending UI Binder
Hi All, I want to have my own custom xml file definition for defining UI, like ui.xml, any idea on how to extend UI Binder for this ? Also is it possible to generated the java script code at runtime, for the requested screen instead of doing this at compile time ? The idea is, for example there is a screen Screen1 and a initial place holder screen (main screen), maybe a DockPanel or any container, when the user request for Screen1, the server checks if the Screen1 is already compiled (converted to javascript), if not, converted it to javascript using the GWT complier, and return the javascript back to the client, so that it can render this screen inside the container (main screen). This is like traditional web application, but here instead of returning html, javascript will be returned. I am doing all this, bcoz we have an ERP system, which has all the screens defined in xml files, I want to integrated GWT with it, so that the user can define the gwt ui, using the same xml files. Any links of extending UI binder or how the GWT compiler works will be helpful ? Thanks, Abdullah -- 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: Extending UI-Binder
It should be... I have seen the custom parsers on the gwt source, but I didn't see if is there any extension system to declare one of your own. You can still do this: g:HorizontalPanel g:HTML SVG rect ... / circle ... / /SVG /g:HTML /g:HorizontalPanel 2010/3/11 Jan Ehrhardt jan.ehrha...@googlemail.com Hi, I would like to extend the UI-Binder to handle custom types. In my case these are SVG DOM elements. I would like to do something like: g:HorizontalPanel SVG rect ... / circle ... / /SVG /g:HorizontalPanel In the above example, SVG is a subclass of Widget, that wraps the svgweb library (http://code.google.com/p/svgweb/). The 'rect' and 'circle' tags should be handled as subclasses of Element, like 'div' tags in the HTMLPanel. Of cause, I want to bind a RectElement object in my Java class to the 'rect' tag in my ui.xml file. I know, that UI-Binder uses deferred binding by parsing the XML and generating an implementation of UIBinder interface for compiling, but how can I extend this by my own handler for doing the above stuff? Regards Jan Ehrhardt -- 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.comgoogle-web-toolkit%2bunsubscr...@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: Extending UI-Binder
Well, you can import any package, and bind it to a namespace prefix as explained here: http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html#Hello_Widget_World I imagine, that it would also be possible to have an addRect(), addCircle() method etc in your SVG class (or maybe some wrapper of that class, if you can't modify it), and use that in UiBinder, but I'm not 100% sure if simply declaring these methods is enough. You should certainly try it, and report back, if this works! Chris On Mar 11, 8:08 am, Jan Ehrhardt jan.ehrha...@googlemail.com wrote: Hi, I would like to extend the UI-Binder to handle custom types. In my case these are SVG DOM elements. I would like to do something like: g:HorizontalPanel SVG rect ... / circle ... / /SVG /g:HorizontalPanel In the above example, SVG is a subclass of Widget, that wraps the svgweb library (http://code.google.com/p/svgweb/). The 'rect' and 'circle' tags should be handled as subclasses of Element, like 'div' tags in the HTMLPanel. Of cause, I want to bind a RectElement object in my Java class to the 'rect' tag in my ui.xml file. I know, that UI-Binder uses deferred binding by parsing the XML and generating an implementation of UIBinder interface for compiling, but how can I extend this by my own handler for doing the above stuff? Regards Jan Ehrhardt -- 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.
Extending UI-Binder
Hi, I would like to extend the UI-Binder to handle custom types. In my case these are SVG DOM elements. I would like to do something like: g:HorizontalPanel SVG rect ... / circle ... / /SVG /g:HorizontalPanel In the above example, SVG is a subclass of Widget, that wraps the svgweb library (http://code.google.com/p/svgweb/). The 'rect' and 'circle' tags should be handled as subclasses of Element, like 'div' tags in the HTMLPanel. Of cause, I want to bind a RectElement object in my Java class to the 'rect' tag in my ui.xml file. I know, that UI-Binder uses deferred binding by parsing the XML and generating an implementation of UIBinder interface for compiling, but how can I extend this by my own handler for doing the above stuff? Regards Jan Ehrhardt -- 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.