Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Dialog
-
Labels:
-
Environment:Windows 7: Internet Explorer 9, Firefox 10, Opera 11
Windows XP: Internet Explorer 8, Internet Explorer 6, Firefox 5
OS X: Firefox 10, Safari 5
Debian: Firefox 10
-
Similar Issues:
Description
Working on Liferay CE 6.1.0 the Dialog component doesn't show the buttons' text (see image attachment).
The buttons work perfectly but without text shown.
Tested on all the environments indicated, on different physical machine.
Even with this simple JSP no text is shown for the button called 'BUTTON'.
<%@ taglib uri="http://alloy.liferay.com/tld/aui" prefix="aui"%>
<aui:script>
function showPopup() {
AUI().use('aui-dialog', 'aui-overlay-manager', 'dd-constrain', function(A) {
var dialog = new A.Dialog({
height: 200,
width: 250,
title: 'TITLE',
bodyContent: 'BODY',
centered: true,
buttons: [{
text: 'BUTTON',
handler: function()
}]
}).render();
dialog.show();
});
}
</aui:script>
<aui:button value="Apri dialog" onClick="showPopup()"/>

The problem can be solved changing the name of the field ffrom "text" to "label":
buttons: [{
{ alert('Button pressed'); }label: 'BUTTON',
handler: function()
}]
But the official documentation must be changed!