Add parameter unicode=true in aui:script blocks to prevent errors with liferay-ui:message

Description

Evertime we use <liferay-ui:message key="whatever" /> inside javascript code, it should be used like this: <liferay-ui:message key="whatever" unicode="<%= true %>".

To automate this, when we open an aui:script tag, we set an attribute in the request for unicode=true, and then liferay-ui:message tries to read that parameter. If it is found, then we set unicode to true. Then, when we close the aui:scrip tag we would remove the attribute.

Activity

Show:

EdGApril 18, 2013 at 1:36 PM

Hello everyone! We are in the process of removing component "Liferay TagLib" from LPS issues that contain more than one component. For issues that only have "Liferay TagLib", we plan to move to them to "Tools > Portal Taglibs". In the end, "Liferay TagLib" will be deprecated. Please make the necessary adjustments to your filters. Thanks!

Matthew LeeAugust 17, 2012 at 12:54 PM

Committed on:
Portal 6.1.x CE GIT ID: 9d8a928377fd0df5484946a70a97de921560bf9b.
Portal 6.2.x GIT ID: c30f2892ee80137c93de9f524c09a10cb01383b5.

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Branch Version/s

6.1.x

Backported to Branch

Committed

Affects versions

Priority

Zendesk Support

Created July 12, 2012 at 2:18 AM
Updated June 24, 2023 at 3:48 PM
Resolved July 14, 2012 at 11:18 AM

Flag notifications