Is ther a way to ask for user input when I'm
allready in the doValidate
or doExecute method?
No, no way to do that.
Commands should be atomic and are execute within a critical section. If
you would have user interaction in there you would run into two
problems:
1. The separation of the model (Command-Pattern) and the GUI (Seaside)
would be broken.
2. When using Seaside as GUI the user could use the back- and
forward-buttons and therefor destroy the atomic execution of the
command.
Again two possible solutions for this:
1. You raise an exception/notification in #doValidate to check for
notify the GUI about the fact that there is a password required and
then resume the validation.
2. You put a password field right into your command that can be left
empty. #doValidate raises an exception if the password is missing or
wrong.
Hope this helps,
Lukas
--
Lukas Renggli
http://www.lukas-renggli.ch