• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

B&S: MVC Question

 
hatim osman
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • 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
 
Saheed Adepoju
Ranch Hand
Posts: 267
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic