Hi again,

I'm almost there with my app, but now I have this problem. I have my proper class 'WebserviceAuthenticated' which sets the template for the login form according to the language choosen. However, if the user does something wrong, these standard messages are being shown, like 'MANDATORY:login'. I want to translate these at well and I was thinking doing this by adding the appropriate resource bundle to the login form template. I'm afraid I don't find a way to accomplish this. Any ideas/ suggestions ?

Thanks a lot for all your support, I know I asked a lot of questions lately, sorry,

Henk



public class WebserviceAuthenticated  extends PurgingDatabaseAuthenticated{
private static final Log logger = LogFactory.getLog(WebserviceAuthenticated.class);
        
        @Override
        protected void initializeAuthentication() {
                super.initializeAuthentication();
                logger.debug("Initializing authentication");
                logger.info(getCookieValue("lang"));
setTemplateName(getPropertyString("template_name")+"_"+getCookieValue("lang")); getSessionValidator().setCredentialsManager(WebserviceUsersFactory.getInstance(getElementInfo().getPropertyTyped("datasource",
                                Datasource.class)));
                
        }

        public WebserviceAuthenticated()
        {
        }
        
        @Override
        protected void validatedCredentials(Credentials arg0) {
                logger.info("validatedCredentials : ");
                
                super.validatedCredentials(arg0);
        }

        public void doLangChange() {
                setOutput("lang_id", getParameter("lang_id"));
                exit("lang_choice");
        }
}
_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users

Reply via email to