SCJP 5, SCWCD 5, SCBCD 5
Jonathan Elkharrat wrote:keep in mind that only searching and booking should be available as per spec...
Roel De Nijs wrote:So you'll have 5 views, 1 controller and 1 model.
SCJP (1.4 | 5.0), OCJP (6.0), OCMJD
Sean Keane wrote:That is the commonly understood use of the term View in the MVC pattern.
Roel De Nijs wrote:
Sean Keane wrote:That is the commonly understood use of the term View in the MVC pattern.
You can have multiple views based on the same model within the same technology (as described here). A view just renders the contents of a model. It's just a representation of the model data and thus when the model data changes, the view must update its presentation. Nothing's said about needing another technology.
SCJP (1.4 | 5.0), OCJP (6.0), OCMJD
Sean Keane wrote:My examples just happened to be different technologies. They could have all used the same technology. You seem to have mistakenly interpreted this as me saying each view must have a different technology. Which I never said
SCJP (1.4 | 5.0), OCJP (6.0), OCMJD
Sean Keane wrote:I was simply highlighting the concept of a View in the MVC pattern, as the original poster would have been mislead if they thought that this assignment had five views.
SCJP (1.4 | 5.0), OCJP (6.0), OCMJD
SCJP (1.4 | 5.0), OCJP (6.0), OCMJD
Roel De Nijs wrote:4/ When a record is updated (with a customer id) the JTable is updated again with executing the search again with exactly the same filter. I didn't allow deleting records in my GUI, but I would implement it just like that again.
SCJP (1.4 | 5.0), OCJP (6.0), OCMJD
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |