An entry-point is different than a servlet (Remote Procedure Call). A
RPC is used to change the page without refreshing, so you wouldn't
likely change your entry-point.
First of, I think cokol and mkh are right. You should have one entry
point and have the admin area a panel. You can check the session to
make sure the user has appropriate permissions before showing the
panel. Although, I think what you want would go something like this,
even though I have never done it before.
Your <projectName>.gwt.xml defines a module with an entry point. If
you want to create another module (kinda like a "project" in the same
project, as you put it), then you could duplicate this xml file and
name it something like AdminPage.get.xml.
<?xml version="1.0" encoding="UTF-8"?>
<module rename-to='admin_area'>
<inherits name='class you want to inherit'/>
<entry-point class='com.projectname.admin.client.AdminPage.java'/>
<source path='client'/>
<source path='shared'/>
</module>
Now that you have another module, GWT will create another nocache.js
file. It should be called admin_area.nocache.js. Each HTML file will
specify what it's entry point is by which javasscript file it
inherits. So your new admin html page should include
<script type="text/javascript" language="javascript" src="admin_area/
admin_area.nocache.js"></script>
Now when that page is loaded, it will call the onModuleLoad() in
AdminPage.java.
To go from page to page, you can do something like
new HTML("<a href=\"+PATH+"Admin.html\"> Admin Page </a>");
Again, I have never done it before, but It might work how you want.
You'll have to play with the paths but give it a shot. Or someone
correct me if I'm way off =).
Tom