Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

We need to look carefully at the "object" argument. The object here is a Command. LoginController extends SimpleFormController which extends AbstractFormController which extends BaseCommandController.

LoginController defaults this Command class:

Code Block
titleLoginController afterPropertiesSet() excerpt

  public void afterPropertiesSet() throws Exception {

        if (this.getCommandClass() == null) {
            this.setCommandName("credentials");
            this.setCommandClass(UsernamePasswordCredentials.class);

In BaseCommandController, we have:

...