Sun Certified Java Web Component Developer for J2EE v1.4<br />Sun Certified Java Developer for J2SE v1.4<br />Sun Certified Java Programmer for J2SE v1.4
Given the above, it will probably be my final design decision that the client only support one view of the data. So this means I shouldn't be using MVC, correct? Sure, I should work to separate business logic from view logic, etc. etc. but it's my understanding doing so is just adhering to good coding practices, and not really implementing the MVC pattern.
Your user interface should be designed with the expectation of future functionality enhancements.
SCJD 1.4
Seid Myadiyev<br />SCJP, SCWCD, SCBCD, SCEA-Part 1
"I'm not back." - Bill Harding, Twister
"I'm not back." - Bill Harding, Twister
From Jim: Another consideration though is that (in my instructions at least) it's suggested that the company eventually wants to offer this booking service over the web. So one possibility that comes to mind is that someone might want to replace your GUI with a JSP.
From Philippe: But most of the time, that "delegated" actionPerformed will consist in only one call to some method on the Model class, right ? So why not to code that call from the View directly ? Such example still confuses me a bit.
Sun Certified Java Web Component Developer for J2EE v1.4<br />Sun Certified Java Developer for J2SE v1.4<br />Sun Certified Java Programmer for J2SE v1.4
Paul:
Yes! I've run into the same situation multiple times, forcing myself to add extra code just to keep the MVC View-Passes-UserInput-to-Controller relationship intact. Let's say we take the shortcut of having the View call the Model correctly
Jim:
In general though I'd prefer to have somethign that looks like I'm following a standard design pattern, so I kept the View and Controller separate.
kktec<br />SCJP, SCWCD, SCJD<br />"What we observe is not nature itself, but nature exposed to our method of questioning." - Werner Heisenberg
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |