Tagged: liferay

User Preferences in Liferay

1

In their basic form, user preferences in LifeRay are accessible from any PortletRequest object (or subclasses like ActionRequest and RenderRequest), are easily set, and are persisted for you with a single command. Here is the basic code for reading a preference value: [java collapse="false" wraplines="false"] public String index(Model model, RenderRequest renderRequest) { PortletPreferences preferences = [...]