I just want to validate that a given text field is not
empty
Normally sending #beRequired to the description should be enough. At
least with my Seaside forms this works well and there is no need to
add an additional check for #isEmpty.
On submit, I get an error that nil does not understand
asUppercase.
Shouldn't the condition fail before the setter is called?
#beRequired ensures that a nil or empty value is not committed.
Additional conditions will not be evaluated (there are various
examples of this in Pier, for example).
Cheers,
Lukas
--
Lukas Renggli
http://www.lukas-renggli.ch