Hi all,
thank you very much, it works for me now as you described:
I have created a new module inside my existing project. The new xml is
placed in the same folder as the xml of my first project. I created a
new client package for the second frontend and a corresponding html-
page for the second xml.
One advice for others with the same problem:
I wanted to use RPC-services of my first module in my second module.
To do so, you have to move the client-RPC-classes to share (else your
second module will not find the needed classes). In addition, the
web.xml-pathes for the RPC Servlets have to be adjusted, e.g.:
<servlet-mapping>
<servlet-name>loginServiceImpl</servlet-name>
<url-pattern>/module1/loginService</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>loginServiceImpl</servlet-name>
<url-pattern>/module2/loginService</url-pattern>
</servlet-mapping>
I'm pretty sure that one servlet mapping with a wildcard-path should
also work.
Best regards
Mark
On 4 Mrz., 20:06, Thomas Broyer <[email protected]> wrote:
> The great thing with RequestFactory (compared to GWT-RPC), is that your
> client(s) is not tightly bound to your server. Simply create another "GWT
> app" (another *.gwt.xml, either in the same Eclipse project or in a
> distinct one, as you prefer; called from another HTML page) and use your
> RequestFactory interfaces; it should Just Workâ˘. You can deploy both GWT
> (client-side) apps in the same WAR (i.e. along with a shared server-side
> implementation).
>
>
>
>
>
>
>
> On Sunday, March 4, 2012 12:14:26 PM UTC+1, Bestmacfly wrote:
>
> > Dear all,
> > I'm creating a booking system using GWT. The backend is nearly
> > completed. I have created one html page with one entry point, in my
> > entry point I'm changing navigation / layout of the page dynamically.
> > Now I need a second frontend, which will be totaly different from the
> > already created backend. This second frontend should be able to use
> > the whole code stuff from my backend (especialy the Requestfactory
> > proxies). As far as I understood, it is not possible to simple create
> > a second entry point in my application and combine this second entry
> > point with a second base html page. So what would be the best approach
> > now to realize this?
>
> > Best regards
>
> > Mark
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.