Hi, now I know what you mean with dictionary, works perfect thanks. I dont't need two html, like you explained to me earlier, I tried to explain why I thought I would need them. I did like you told me, works great with one page. At the moment I still run a servlet, but with the next update I will change it to a JSP.
Thank you very very much. Best regards Jochen On Apr 21, 11:16 am, Jan Ehrhardt <[email protected]> wrote: > In your host page add something like this: > > <script type="text/javascript"> > var modules = {start:"module-name"}; > </script> > > You can use it as a > Dictionaryhttp://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/g... > your GWT code. > > From my point of view, I still don't understand, why you have to deal with > two different pages. A GWT application is a real client application. It is > started, when the host page loads and it is shut down, when you leave the > page (e. g. you're going to a different URL). In a well designed GWT > application, you should make the registration module a part of your > application and send the entered data through an Ajax request to the server > in the background. This would prevent you from shutting down your > application for registration and start it again after registration is done. > > The other point is, that JSPs might be easier to handle than servlets for > realizing the host page on the server. So use the JSP as your welcome file. > > Regards > Jan Ehrhardt > > 2010/4/20 Jochen Schnaidt <[email protected]> > > > to 4) This is clear, that is what the httpservlet does. > > > to 3) I set the servlet as my welcome-file and it does ... nothing. > > Must I change another XML anywhere? By the way, the only way I found > > to set a script the way I need it is script/XML and I have not the > > faintest idea how I should use an XML to decide which module should be > > loaded. > > > Until yesterday I thought I know enough to handle this challenge but > > today I am feeling down. Thanks to Jan for helping me. > > > On 20 Apr., 15:04, Jan Ehrhardt <[email protected]> wrote: > > > 3. The httpServlet makes anything on the html document > > > It makes the HTML including a script tag containing your > > configuration. > > > A JSP might be fine too. > > > > 4. The html is called > > > It's loaded inside the browser. > > > > Regards > > > Jan Ehrhardt > > > > 2010/4/20 Jochen Schnaidt <[email protected]> > > > > > Okay, I don't understand how this should work... > > > > > So, you mean: > > > > 1. Requesting the application for example 'http://appname.appspot.com/ > > > > singnup?asdfghjkl' > > > > 2. A httpServlet gets this > > > > 3. The httpServlet makes anything on the html document > > > > 4. The html is called > > > > 5. In the OnModuleLoad this anything will be evaluated > > > > 6 According to this evaluation the right module will be loaded. > > > > > Is this right? > > > > > On Apr 20, 1:03 pm, Jan Ehrhardt <[email protected]> wrote: > > > > > You can add a property (e. g. a Dictionary) to your host page. Your > > entry > > > > > point checks the property and loads the required module. Setting the > > > > > property is a task, the server has to do. > > > > > > I think, using one host page instead of two different pages with two > > > > > different URLs might be more efficient. > > > > > > Regards > > > > > Jan Ehrhardt > > > > > > 2010/4/20 Jochen Schnaidt <[email protected]> > > > > > > > Okay, I read the docs and understand most of it. Is it possiple to > > > > > > describe which sequence should be loaded by the URL? > > > > > > > I planed that 'http://appname.appspot.com'istheadministration and > > > > > > 'http://appname.appspot.com/singnup?asdfghjkl' > > > > > > is the signup page for event 'asdfghjkl'. > > > > > > > I don't know if it is possible. My next step was to learn about > > > > > > servlet. But for a servlet I need a site to show my data, this is > > how > > > > > > I came to the 2nd page. I understand it this way, that code > > splitting > > > > > > mainly works on user events. So I need something like a switch in > > my > > > > > > onModuleLoad with the different splitpoints in the cases and the > > URL > > > > > > parameter in the statemant. > > > > > > > Is this right? Is it feasible? > > > > > > > On Apr 20, 11:17 am, Jan Ehrhardt <[email protected]> > > wrote: > > > > > > > In GWT 2.0 code splitting was introduced. You can have one big > > > > > > application, > > > > > > > that contains both modules. In the standard case you load your > > > > > > application > > > > > > > as before. In the registration case you can load a second module > > and > > > > use > > > > > > it. > > > > > > > This is much better than having two applications with different > > entry > > > > > > > points. It also allows you, to have some basic infrastructure, > > that's > > > > > > used > > > > > > > by both modules. So you can create a third module. > > > > > > > > If you design this correct, you'll get an extendable and > > modularized > > > > > > > application, that loads modules if required. That happens all in > > the > > > > same > > > > > > > host page, so no page reload. > > > > > > > > Regards > > > > > > > Jan Ehrhardt > > > > > > > > 2010/4/20 Jochen Schnaidt <[email protected]> > > > > > > > > > Hi all, > > > > > > > > > I have a question about the design of a GWT project. > > > > > > > > I am working on an application for registration to events based > > on > > > > GWT > > > > > > > > and GAE. The application consists of three modules: > > administration > > > > > > > > (create, edit an event and reporting), signup (registration of > > > > guests) > > > > > > > > and a ‘desktop’ for the people working on the desk. > > > > > > > > At the moment I am finishing the first part administration. It > > is a > > > > > > > > classical RIA based on a DockLayout on one webpage. What I need > > now > > > > is > > > > > > > > a second Webpage where I can send my guests to register them to > > an > > > > > > > > event. I read a lot about this in the community but never found > > an > > > > > > > > answer how to do it right. > > > > > > > > When I add a second Webpage to my project and add a second > > entry > > > > point > > > > > > > > to the XML everything dumps. > > > > > > > > Must I create a second GWT project or is it possible to > > integrate > > > > this > > > > > > > > functions in a separated part of the existing project? > > > > > > > > > Ideas, comments are welcome. > > > > > > > > > Thanks a lot, greetings Jochen > > > > > > > > > -- > > > > > > > > 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]> > > <google-web-toolkit%[email protected]<google-web-toolkit%[email protected]> > > > > > <google-web-toolkit%[email protected]<google-web-toolkit%[email protected]> > > <google-web-toolkit%[email protected]<google-web-toolkit%[email protected]> > > > > > > > <google-web-toolkit%[email protected]<google-web-toolkit%[email protected]> > > <google-web-toolkit%[email protected]<google-web-toolkit%[email protected]> > > > > > <google-web-toolkit%[email protected]<google-web-toolkit%[email protected]> > > <google-web-toolkit%[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]<google-web-toolkit%[email protected]> > > <google-web-toolkit%[email protected]<google-web-toolkit%[email protected]> > > > > > <google-web-toolkit%[email protected]<google-web-toolkit%[email protected]> > > <google-web-toolkit%[email protected]<google-web-toolkit%[email protected]> > > > > > > > . > > > > > > > For more options, visit this group athttp:// > > > > > > 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]<google-web-toolkit%[email protected]> > > <google-web-toolkit%[email protected]<google-web-toolkit%[email protected]> > > > > > <google-web-toolkit%[email protected]<google-web-toolkit%[email protected]> > > <google-web-toolkit%[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]<google-web-toolkit%[email protected]> > > <google-web-toolkit%[email protected]<google-web-toolkit%[email protected]> > > > > > . > > > > > For more options, visit this group athttp:// > > > > groups.google.com/group/google-web-toolkit?hl=en. > > > > > -- > > > > You received this message > > ... > > read more » -- 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.
