Thanks Katelme, I didn't know about the validator. Just missing it.

Eddú Meléndez Gonzales
[email protected]




On Tue, Mar 5, 2013 at 9:21 AM, KaTeLmE <[email protected]> wrote:

> I suppouse that yor custom credentials extends from
> UsernamePasswordCredentials
>
>
> <view-state id="*customViewLoginForm*" view="*casStoreLoginView*" model="*
>> customCredentials*">
>>          <binder>
>>             <binding property="username" />
>>             <binding property="password" />
>>             <binding property="newField" />
>>          </binder>
>>         <on-entry>
>>             <set name="viewScope.commandName" value="'credentials'" />
>>         </on-entry>
>>  <transition on="submit" bind="true" validate="true" to="realSubmit">
>>             <evaluate
>> expression="authenticationViaFormAction.doBind(flowRequestContext,
>> flowScope.credentials)" />
>>         </transition>
>> </view-state>
>>
>
> Change "flowScope.credentials" to "flowScope.customCredentials" and now
> your credentials will be binded in right flow variable.
>
> Have you registered the validator in the Spring context?? Spring Webflow have
> may behaviour to search credentials. CAS default use
> <varNameToValidate>Validator so, if customCredentials validator not work
> review your cas-servlet.xml to add it (search a bean with a 
> credencialsValidator
> id and duplicate it with id customCredentialsValidator)
>
> --
> You are currently subscribed to [email protected] as: 
> [email protected]
> To unsubscribe, change settings or access archives, see 
> http://www.ja-sig.org/wiki/display/JSG/cas-user
>
>

-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to