You could also have one GWT app and in each page have <div id="site1"></div>
or <div id="site2"></div> and look for those.
Or have <div id="site" ui="type1"></div> or <div id="site" ui="type2"></div>
and read the ui type.
Ian
2008/8/29 Mark Renouf <[EMAIL PROTECTED]>
>
> An approach that we took, make make two new modules (each with their
> own entry point) which both inherit the third (existing one). The
> downside here is that compile time could be up to 2x as long as each
> module is compiled seperately. Only code actually used in each module
> will be emitted. We did this for pages which open in a new window.
>
> The other (much simpler) option is to check query parameters in your
> single entry point, and dispatch accordingly:
> Window.Location.getParameter('id')
>
> If you need to pass more data than a single parameter you can include
> a JSON or serialized RPC response in the host page and grab it with
> JSNI. (This has been discussed, google for examples)
>
> On Aug 29, 10:14 am, ping2ravi <[EMAIL PROTECTED]> wrote:
> > Hi All,
> > How can i create more then one entry point in a project. My
> > requirement is to have more then one entry point for GWT application.
> > I can create more then one class which implements EntryPoint, but i m
> > able to use only one implementaion as we need to define the one entry
> > point in <app>.gwt.xml.
> >
> > or tell me how can i get the http url parameters in EntryClass
> > Permission
> > lets say if someone enters url mydomain.com/GWTApps.html?id=1
> > then i want one kind of UI
> > and if someone enters mydomain.com/GWTApps.html?id=2
> > i want different kind of UI.
> > I can make a call to server and then server can return me the id but i
> > dont wan to do that, i want it on client side only.
> >
> > So i am happy with any implemetaion
> > 1) To have two htmls(GWTApp1.html and GWTApp2.html) and two Entry
> > points(classes) in same GWT project
> > 2) or i can get the url params and i can decide which UI to display
> > 3) if there is something else which is better then these will be more
> > then welcome
> >
> > Thanks in advance
> > Ravi.
> >
>
--
Ian
http://examples.roughian.com
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---