I try to add a Drop-Down List to change the portal language in my own portlet.
At first I tried the simple tag offered by Liferay, like this:
<%@ taglib uri="http://liferay.com/tld/ui" prefix="liferay-ui" %>
<liferay-ui:language displayStyle="3" />
Here displayStyle="3" means a Drop-Down list for the available languages. but it failed to change the portal language when I change the selection in the list. I also tried with the other values(0, 1 , 2) of displayStyle, they can all work.
Can you please help on this?