Re: Single application .. multiple RPC services

2008-11-10 Thread Muhannad
Okay, a big thanks for all of you Litty, Gregor, and Walden. It was really a very interesting and helpful discussion. On Nov 9, 7:42 pm, gregor [EMAIL PROTECTED] wrote: Hi Muhannad, Note that, just like a Javaapplicationserver, the path to the servlet is relative to the web project

Re: Single application .. multiple RPC services

2008-11-06 Thread Litty Preeth
Hi Muhannad, Usually in GWT applications, you have one HTML page and the UI rendering is done dynamically using javascript. You can create different panels for different pages and add these panels to the RootPanel when a user clicks on hyperlinks (in ur case). And while rendering these panels

Re: Single application .. multiple RPC services

2008-11-06 Thread Muhannad
Well, thank you Litty but I think there is still something missing to deal with. So I wrote a sample application and I'll send it to you at you gmail account (Sorry, I don't know how to attach a file here). Please review it .. and to be more clear again: this is what I don't know how to do. You

Re: Single application .. multiple RPC services

2008-11-06 Thread gregor
Hi Muhannad, You will find that I have two divs on the home page (RPCServics.html): (1) menu div and (2) content div. In onModuleLoad() method I create two links a href='home'Home/a and a href='about'About Us/a. What I need exactly is when the user clicks Home link, then the content div

Re: Single application .. multiple RPC services

2008-11-06 Thread walden
Muhannad, I agree with Litty and Gregor. Probably the best thing to bring clarity to you at this point would be for you to develop the canonical GWT single-page rich client application and use a single GWT RPC Service for all data needs. Get comfortable with that model (you can do a lot with

Single application .. multiple RPC services

2008-11-05 Thread Muhannad
Hi, I want to build a website with (Home, about, products, ...) menu. I need to build multiple forms (panels), each panel corresponds to one menu item, e.g. aboutPanel for about menu item, productsPanel for products... Moreover, I would like to implement that panel in terms of RPC services; I

Re: Single application .. multiple RPC services

2008-11-05 Thread Muhannad
Hi, Okay, then how could I switch between my services when I click on one link? I mean, on the website's home page load, I will instantiate the default service (let's say homeService). Then on About Us link I have to switch to the aboutServie how could that switch be done? Is it enough to pass

Re: Single application .. multiple RPC services

2008-11-05 Thread Muhannad
Okay! thank you soo much. I'll try to do it and I'll keep you informed with the results :-) On Nov 5, 3:52 pm, Litty Preeth [EMAIL PROTECTED] wrote: Yesss if the URL ends with /about then the AboutService will be called. - Litty On Wed, Nov 5, 2008 at 7:18 PM, Muhannad [EMAIL PROTECTED]

Re: Single application .. multiple RPC services

2008-11-05 Thread Litty Preeth
Hi, The servlet-mapping tag of your web.xml is exactly for that purpose. servlet-mapping servlet-nameProductService/servlet-name url-pattern/product/url-pattern /servlet-mapping Regards, Litty On Wed, Nov 5, 2008 at 3:42 PM, Muhannad [EMAIL PROTECTED] wrote: Hi, I want to

Re: Single application .. multiple RPC services

2008-11-05 Thread Muhannad
Hi Walden, I'm not sure that I got your idea, but I always had a concern about that so I'll share it with you: 1. Does the GWT application have just one html page (module-name.html) that all the content should be rendered there? What I mean is that Litty wrote if the URL ends with /about