@ RequestMapping ( value = "create" , method = RequestMethod . GET ) public Form getCreationForm ( ) { return Form . create ( ) . with ( Form . defaultNameField ( ) ) . with ( Text . of ( "fullName" ) . length ( 100 ) . label ( "Full name" ) . help ( "Display name for the account" ) ) . with ( Email . of ( "email" ) . label ( "Email" ) . length ( 200 ) . help ( "Contact email for the account" ) ) . with ( Password . of ( "password" ) . label ( "Password" ) . length ( 40 ) . help ( "Password for the account" ) ) . with ( MultiSelection . of ( "groups" ) . label ( "Groups" ) . items ( accountService . getAccountGroupsForSelection ( ID . NONE ) ) ) ; }
Form to create a built - in account