GWT Project Structure Frontend/Backend

62 views
Skip to first unread message

Gambo

unread,
Jun 9, 2011, 6:57:29 PM6/9/11
to Google Web Toolkit
Hi,

Does somebody already have some experience embedding gwt in other
client pages except the standard html file?

I want to use gwt as front end and grails as backend. Communication
should be handled over rest json interface.

How do i structure my project at best? Should I create 2 independend
projects or should I stick them together?

At the beginning I had some problems with debugging my gwt application
as it was part of the grails project. Now I copied the compiled js
script to my webapp folder and included it in a grails page. Debugging
gwt in noserver mode worked ok. The problem is now, how do I solve my
deployment later at best as I dont want to copy my js everytime by
hand?

I am using maven for building my project.

Thanks

Ramon Salla

unread,
Jun 21, 2011, 8:51:41 AM6/21/11
to google-we...@googlegroups.com
Yes. We are already doing this.
We started using RequestBuilder and Json (Des)Serialization but we ended up using plain RPC services as development is so much easier. We are wrapping some of those RPC services with REST using jersey. 
We have two dependent projects one with server code and the other with shared and client code.
Be careful with this because of SOP and GWT policyFiles! they are tricky.

Ramon Salla

Elhanan Maayan

unread,
Jun 21, 2011, 8:57:13 AM6/21/11
to google-we...@googlegroups.com
i'm unfamiliar with SOP and gwt policy files,

i havn't tried much of rpc aside form the fact that each service should only object of input and object of output both extending RequesInput and RequestOutput interfaces (generic wise) to avoid break method signature incase of changes .

i then moved on to request factory and editor framework, this is where i'm having problems getting a grasp to it.

btw maybe you should check out my feature request for gwt's plugin handling of gwt.xml module files.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/GYcElCLyMDgJ.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Juan Pablo Gardella

unread,
Jun 21, 2011, 9:03:44 AM6/21/11
to google-we...@googlegroups.com
You can use gwt-dispatch if you use RPC. 

2011/6/21 Elhanan Maayan <elh.ma...@gmail.com>
Reply all
Reply to author
Forward
0 new messages