Implement serverside and client side validatation
This commit is contained in:
31
examples/widgetapp/own_validator.e
Normal file
31
examples/widgetapp/own_validator.e
Normal file
@@ -0,0 +1,31 @@
|
||||
note
|
||||
description: "Summary description for {OWN_VALIDATOR}."
|
||||
author: ""
|
||||
date: "$Date$"
|
||||
revision: "$Revision$"
|
||||
|
||||
class
|
||||
OWN_VALIDATOR
|
||||
|
||||
inherit
|
||||
|
||||
WSF_VALIDATOR [STRING]
|
||||
|
||||
create
|
||||
make_own
|
||||
|
||||
feature {NONE}
|
||||
|
||||
make_own
|
||||
do
|
||||
error := "Input to long"
|
||||
end
|
||||
|
||||
feature
|
||||
|
||||
is_valid (input: STRING): BOOLEAN
|
||||
do
|
||||
Result := input.count < 5
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user