Re: Can we directly create a Widget from XML string?

2010-07-17 Thread Gal Dolber
I am quite sure you cannot do that... but it you take a look at the uiBinder
generator it shouldn't be hard to modify it to do that

2010/7/17 shankar_1979 shankar.pach...@gmail.com

 Hi GWT team,
   Is there a way to directly create a GWT widget from an XML string
 that conforms to the
 xmlns:g=urn:import:com.google.gwt.user.client.ui?

   My requirement is to provide different UIs based on changing
 conditions. I was planning to use this approach to first create the
 XML string based on the GWT layouts and then render it to a RootPanel
 widget in the UI.

   I appreciate any comments on the feasibility?
 Thanks in advance
 - Shankar.

 --
 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.




-- 
http://ajax-development.blogspot.com/

-- 
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: Can we directly create a Widget from XML string?

2010-07-17 Thread Jeff Chimene
If you parse the XML string into run-time Java calls. That's not
unreasonable. Create some widgets ahead of time that correspond to your
custom XML elements, then tailor the widgets based on the XML element
content or attribute values.

The translation of the GWT ui XML occurs at compile-time, not run-time.

On Sat, Jul 17, 2010 at 2:41 AM, shankar_1979 shankar.pach...@gmail.comwrote:

 Hi GWT team,
   Is there a way to directly create a GWT widget from an XML string
 that conforms to the
 xmlns:g=urn:import:com.google.gwt.user.client.ui?

   My requirement is to provide different UIs based on changing
 conditions. I was planning to use this approach to first create the
 XML string based on the GWT layouts and then render it to a RootPanel
 widget in the UI.

   I appreciate any comments on the feasibility?
 Thanks in advance
 - Shankar.

 --
 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.