I'm trying to make use of LoginCommand. I've specified it using following snippet:
where lastUsername is instance of MethodInvokingFactoryBean which uses Preferences API to retrieve last username that was used to login.Code:<bean id="loginCommand" class="org.springframework.richclient.security.LoginCommand" p:closeOnCancel="true" p:clearPasswordOnFailure="true" p:displaySuccess="false" p:defaultUserName-ref="lastUsername" />
Problem I'm experiencing is in setting closeOnCancel. For some reason it is not being set to "true". I know it's default value is "true", but I prefer to see in context default values of bean properties. Do I have to register a custom binder (String <--> Boolean)? If yes, how?
Thanks in advance for answers!


Reply With Quote