Tuesday, August 7, 2012

[2.5rc1] Does .ui.xml file for AbstractCell support GWT Panels and Widgets?

Following instruction of  "Rendering HTML for Cells" in devGuide of UiBinder, it works.
But does template file (.ui.xml) support GWT Panels and Widgets?
 I replaced <div> by  <g:HTML> (also <g:FlowPanel>) with <g:TextArea> in .ui.xml file, 
no error or exception was thrown out, but also nothing was shown.

So, I guess .ui.xml file for AbstractCell doesn't support GWT Panels and Widgets. Rigth?
If it really doesn't support, I prefer it throw out an exception.

Btw, should all render() methods be overrided by myself to render HTML to outer widget/panel/element? just like AbstractCell's render().
Is there any method can convert a Widget, Panel, Composite or CompositeCell to SafeHtml? 
If yes, the render() methods can be implemented very simply.

To be honest, what I want is to put normal Panels and Composites as an  AbstractCell / CompositeCell template in CellList or CellTable. Anybody tried this before?

Thanks.

--
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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment