This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<portlet:renderURL var="viewPopupURL" windowState="<%= LiferayWindowState.EXCLUSIVE.toString() %>"> | |
<portlet:param name="jspPage" value="/html/your-portlet/your-jsp.jsp" /> | |
</portlet:renderURL> | |
<a:aui onclick="<portlet:namespace />openPopupWindow('<%= viewPopupURL %>', 'Name of your popup', '<%= portletDisplay.getId() %>'); return false;"><liferay-ui:message key="link-message" /></aui:a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<aui:script> | |
Liferay.provide( | |
window, | |
'<portlet:namespace />openPopupWindow', | |
function(url, title, id) { | |
var instance = this; | |
Liferay.Util.openWindow( | |
{ | |
cache: false, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.text.Normalizer; | |
import java.util.regex.Pattern; | |
public class StringUtil { | |
public static String stripAccents(String originalString) { | |
String normalizedString = Normalizer.normalize(originalString, Normalizer.Form.NFD); | |
Pattern pattern = Pattern.compile("\\p{InCombiningDiacriticalMarks}+"); | |
return pattern.matcher(normalizedString).replaceAll(""); |