CAF SDK to set new Language

I’m kind of newbie in this technology.

Is there any API/Method that I can use to store the new Language in the MWS?

Example, I have my own portlet which have two countries, when the user selects the country I want to store the new selected language in the MWS so that for the new Login it’s still stored.

Any way to do this?

I found this way


	    IContext context;
		try {
			context = com.webmethods.portal.bizPolicy.impl.ContextFactory.acquireContext(true);
			context.setLocale(getMedicineContextInfo().getUserGMEDLocale().getSessionLocale());
			FacesContext.getCurrentInstance().getViewRoot().setLocale(getMedicineContextInfo().getUserGMEDLocale().getSessionLocale());
		} catch (PortalException e) {
			e.printStackTrace();
		}

However this only stores the Locale in the current session.

The set in the viewRoot is required to defined the locale for th current request.

Hi Herve,

I am new to this technology.

I want to add the Language selection drop down at the default webMethods Login page and the I want get selected language value and pass it to different portlet applications inside webMethods. Can you please help me on this.

I want to know:

  1. How to change in default login page and how to deply those changes on webMethods server.
  2. How to access login page selected language to the portlet pages.

Thanks,
rupesh chakole