Hi,

Just a small correction to my prev e-mail. You should have the html file for
each module. In html file for particular module, you have to have the
javascript entry - <script type="text/javascript" src="<module rename-to
name>/<module rename-to name>.nocache.js"></script>

Hope this helps.

-Venkatesh


On Thu, Mar 18, 2010 at 6:11 AM, Venkatesh Babu <[email protected]>wrote:

> I'm not suggesting you to have multiple modules. What I wrote in my prev
> e-mail was - to let you know how to organize your app if you have multiple
> modules. Your steps 1 & 2 are correct. Don't create any html files, instead,
> if you have your module xml files and java package structures all correct,
> then you should have the gwt-compile target for both modules - customer and
> admin. This will create all required html files, nocache.js files etc... in
> your war folder.
>
> The RPC service entries in your web.xml should have entries for all the
> remote services that you create.
>
> Hope this helps.
>
> -Venkatesh
>
>
> On Wed, Mar 17, 2010 at 7:26 PM, jbdhl <[email protected]> wrote:
>
>> OK, I think I've got something now. Can anyone verify that the below
>> approach is "the way to do it"?
>>
>>   1) I create an entry point class for each "view" of my app. E.g.
>> "Customer.java" and "Admin.java"
>>
>>   2) I create a .gwt.xml for each "view" on my app. E.g.
>> "customer.gwt.xml" and "admin.gwt.xml". In each file I
>>       a) type in some appropriate name under "rename-to". E.g.
>> "customer" and "admin".
>>       b) corrects the references to the entry point classes
>>
>>   3) In war/, I create a .html page for each view, e.g. customer.html
>> and admin.html
>>
>>   4) In war/WEB-INF i update web.xml to point to the RPC services I
>> would like to provide. E.g.
>>         <servlet-mapping>
>>             <servlet-name>customerServiceServlet</servlet-name>
>>             <url-pattern>/customer/customerService</url-pattern>
>>           </servlet-mapping>
>>
>> Do you agree that this will work? (Also in google app engine?)
>>
>> --
>> 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]<google-web-toolkit%[email protected]>
>> .
>> 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 [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.

Reply via email to