Model-View-Presenter Pattern - input validation


G

George Washington

To all,

In your opinion, where should input validation be performed? In the view? In
the Presenter?

Sincerely,

George Washington
 
Ad

Advertisements

L

Lars-Erik

I'd say view and service or business layer.
By view I mean asp.net markup like validator controls.
The presenter presumably forwards events to service or business layer
methods which should always do validation anyway. :)
 
Ad

Advertisements

Joined
Nov 15, 2016
Messages
2
Reaction score
0
In my opinion, input validation should perform by the Presenter. This can be things like checking if a number field doesn't contain non numeric characters.
 
Last edited by a moderator:

Similar threads

S
  • Stefan Ram
  • Java
2
Replies
26
Views
1K
Lew
L
T
  • Tom Wardrop
  • Ruby
Replies
5
Views
442
Tom Wardrop
T
J
  • Jason Cavett
  • Java
Replies
8
Views
1K
Stefan Ram
S
G
Replies
8
Views
967
Tim Streater
T
H
Replies
8
Views
557
Martin Gregorie
M
K
Replies
37
Views
2K
Rosario193
R
A
Replies
8
Views
640
Jonathan Hartley
J
H
  • harryos
  • Java
Replies
9
Views
638
harryos
H
Top