Hello,

I have written a convertor that  turns a Role ID into a Role instance, but I 
don'd know where to call it (how to make stripes call this convertor).I 
compiled the project, redeployed the application in JBOSS 5.0.1, put a 
breakpoint in convert method, but the breakpoint was not reached.
Can you help me?
The convertor looks like this:

public class RoleConverter implements TypeConverter<Role>{
    
    public Role convert(String input, Class<? extends Role> targetType, 
Collection<ValidationError> errors) {
                Role role = new Role();
                role.setId(Long.decode(input));
                return role;
            }

    public void setLocale(Locale locale) {
        
    }
}


      
------------------------------------------------------------------------------

_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to