-
Type:
New Feature
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: liferay-faces-3.2.4-ga5
-
Fix Version/s: liferay-faces-3.0.2-legacy-ga3, liferay-faces-3.0.2-ga3, liferay-faces-3.1.2-ga3
-
Component/s: Liferay Faces Alloy / Showcase / Tests
-
Labels:None
Currently there is no easy way to reference constants from a class in Facelet (JSF) environment. The solution would be a tag library which would be able to "import" the constants into the page context.
The new tag will have the following example usage:
<aui:importConstants var="JavaConstants" classType="com.liferay.portal.kernel.util.JavaConstants" /> <h:outputText value="JavaConstants.JAVAX_PORTLET_TITLE=#{JavaConstants.JAVAX_PORTLET_TITLE}" />