Gents, Where is the best place to modify the presence of fields in a Form? I have tried to modify the fields by overriding Form#getFieldList(), Form#onInit(), Form#onProcess(), but I keep running into issues, where the onLogin() ActionListener of the Submit gets fired after all these methods.
Here's what I am trying to achieve: I have a LoginForm. If the user logs in, and he is already logged in (in the Swing application for example) the backend barfs with a UserAlreadyLoggedInException. The user will be returned to his LoginForm, with an additional Checkbox with "force logoff". If he checks that, the existing user will be logged off, and the user will be logged in. Where is the best place to modify the form fields? I seem to be on the wrong track, but I can't figure out what the best practice is in this area. I have done it successfully by setting a boolean and creating a custom Velocity template, but my gut feeling says there is a better way. Cheers, WarnerJan
