Monday, May 2, 2011

Re: dynamic GWT page creation based on Java Bean

Hi Ajay,

GWT doesn't generate dynamic HTML pages like server-side frameworks. The GWT compiler produces highly optimized JavaScript that runs in the browser. Also, the GWT compiler doesn't support reflection, so you can't parse an arbitrary Java type at runtime. You could, however, use GWT's RequestBuilder and XMLParser to retrieve XML metadata from the server and alter the UI accordingly.

HTH,
/dmc

On Mon, May 2, 2011 at 3:47 PM, Ajay <creativeajay18@gmail.com> wrote:
Hi,

I have one use case and want to know whether we can achieve it through
GWT or not.
I have a XML which has set of elements along with their property.This
configuration gets persisted in DB and later point of time based on
user request we load the configuration and convert it into some kind
of bean.

Now, My question is that can we generate dynamic html pages depending
upon bean meta information ?

like for example
1) XML element will property like , uitype,readonly,maxlength,
validation and so on ..
2) Will generate GWT component by reading this property from java bean

If not clear please revert back to me ..

Thanks for your time
Waiting for your positive reply

Thanks,
Ajay

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




--
David Chandler
Developer Programs Engineer, Google Web Toolkit
w: http://code.google.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

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