Dmitry Kotlov wrote:What do you think where is the most appropriate place to check the availability of a record at business layer or at gui layer?
Well, if you put it in the presentation layer, then you would lose portability. If you opt to use your business model in another scenario (a web app, for instance), then you would have to write your code again in your controllers (
servlets, ClickHandlers (GWT), ActionListeners (Echo3), @Controllers (
JSF) and so on). Other then that, the presentation layer isn't appropriate to execute any business rules.
Cheers, Roberto Perillo
SCJP, SCWCD, SCJD, SCBCD