Using GWT code on server

2010-02-03 Thread jd
Hi,

I was wondering if there exists already a way to share the same code
for building HTML on the server and on the client?  If not I was
thinking about making a mock DOM object which simply built an in
memory model and then spat out html.

Has this already been done?  Or do people generally rewrite UI code
for server/client?

Thanks,

John

-- 
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: Using GWT code on server

2010-02-03 Thread Thomas Broyer

On Feb 3, 4:09 pm, jd  wrote:
> Hi,
>
> I was wondering if there exists already a way to share the same code
> for building HTML on the server and on the client?  If not I was
> thinking about making a mock DOM object which simply built an in
> memory model and then spat out html.
>
> Has this already been done?  Or do people generally rewrite UI code
> for server/client?

You could try to wrap/port Closure templates: 
http://code.google.com/closure/templates/
but generally speaking I think people using GWT don't even think about
sharing code (I don't)

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