• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

B&S: MVC Question

 
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi there...
It's been a while, I have a question regarding the design of the client program and particulary MVC pattern.

1. What is the best candidate for the model, the table model or the RemoteContractorServices instance "which represents the business layer".
2. In case the table model proves to be more appropriate for the client then it must encabsulates a RemoteContractorServices instance, however, should it be placed inside the view?
3.regarding the controller, in case the client clicks the book button, should the change be forwarded directly to the view or to the model? It's confusing me, because if the model happened to be a RemoteContractorModel, then there's nothing to be changed in it!

I read articles and tutorials I even tried implementing a simple application using this pattern, but I still cannot imagin how this can be tailored for this particular context...please help me

Hatim
 
Ranch Hand
Posts: 267
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by hatim osman:
Hi there...
It's been a while, I have a question regarding the design of the client program and particulary MVC pattern.

1. What is the best candidate for the model, the table model or the RemoteContractorServices instance "which represents the business layer".
2. In case the table model proves to be more appropriate for the client then it must encabsulates a RemoteContractorServices instance, however, should it be placed inside the view?
3.regarding the controller, in case the client clicks the book button, should the change be forwarded directly to the view or to the model? It's confusing me, because if the model happened to be a RemoteContractorModel, then there's nothing to be changed in it!

I read articles and tutorials I even tried implementing a simple application using this pattern, but I still cannot imagin how this can be tailored for this particular context...please help me

Hatim



Hi
Have you got Max's book? It explains a lot! Well as regards your questions, I would say, Have a subclass of the AbtractTableModel! Then whenever your Book()(View) is called it is directed to your controller. The controller has an instance of your service layer! Anyways i do hope i did help a liitle! have a nice day!
 
hatim osman
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
How things are going with your project. I stopped developing for nearly 45 days, and it's troubling me. You did help indeed, I know now where should I place my RemoteContractorServices, that is, pass it to the controller at creation time, sounds very reasonable.

Thanx alot
hatim
 
Saheed Adepoju
Ranch Hand
Posts: 267
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!
Cool! Glad i could help!Well i just graduated with a degree in Maths/Computer sci.(Dec. 6th) I just realy started developing fully! Well i am still doing my design and coding and also a bit of testing! I am presently stuck with the update()! I will stay on it for a while! Will stay in touch man! Have a nice day!
Oops almost forgot: HAPPY NEW YEAR
[ January 01, 2006: Message edited by: Saheed Adepoju ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic