Hi Henk,

you can use the standard resourcebundles configuration parameters:
http://rifers.org/wiki/display/RIFE/Type+specific+default+resource +bundles

Another possibility is to override this method:
protected void entrance(Template template)

and add a resource bundle there. It will be called right after the template has been instantiated.

Hope this helps,

Geert

On 06 Sep 2006, at 11:17, henk wrote:

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


--
Geert Bevin
Uwyn "Use what you need" - http://uwyn.com
RIFE Java application framework - http://rifers.org
Music and words - http://gbevin.com


_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users

Reply via email to