liferay-aui

YUI on IE8: Argument not valid on dom-style.js

六月ゝ 毕业季﹏ 提交于 2019-12-02 07:20:37
问题 I have asked this everywhere but still not getting any feedback and is getting me crazy. We are using some Alloy UI widgets on the portal im working with (Liferay 6.2) and everything works fine in all the browsers but IE8. For some reason im getting an error message regarding an invalid argument in one of the YUI core files functions regarding setStyle (what you use to add styles to a node in YUI). I have realized that IE8 is not happy with this (here's the whole YUI function) : setStyle:

YUI on IE8: Argument not valid on dom-style.js

ⅰ亾dé卋堺 提交于 2019-12-02 05:02:11
I have asked this everywhere but still not getting any feedback and is getting me crazy. We are using some Alloy UI widgets on the portal im working with (Liferay 6.2) and everything works fine in all the browsers but IE8. For some reason im getting an error message regarding an invalid argument in one of the YUI core files functions regarding setStyle (what you use to add styles to a node in YUI). I have realized that IE8 is not happy with this (here's the whole YUI function) : setStyle: function(node, att, val, style) { style = style || node.style; var CUSTOM_STYLES = Y_DOM.CUSTOM_STYLES; if

How to create Structure & Template programmatically in Liferay 6

我怕爱的太早我们不能终老 提交于 2019-12-01 08:54:28
问题 I need to create the Structure and Template progrmatically through java code.I used following code snippets. Structure: public void createStructure(String userName,long userId){ log_.info("Inside create structure "); long structureId=115203; DDMStructure ddmStructure=DDMStructureLocalServiceUtil.createDDMStructure(structureId); ddmStructure.setName("MigrationStructure"); ddmStructure.setDescription("This Structure created programatically"); ddmStructure.setUserId(userId); ddmStructure

How do I activate a YUI Datepicker only by a seperate Icon, not by the referenced input field?

 ̄綄美尐妖づ 提交于 2019-11-29 12:40:26
I want to display a AUI / YUI DatePicker ( Tutorial ) that only gets activated by a click on a corresponding icon, not on focus or click events as normal. var AUI = YUI; AUI().use('event', 'aui-datepicker', function(A) { function createCalendar(calendarInputBox) { var datumInputField = calendarInputBox.one('input.calendar'); var datumInputFieldSelector = '#' + datumInputField.get('id').replace(/:/g, '\\:'); var datepickerIcon = calendarInputBox.one('.calendarInputIcon'); var datepicker = new A.DatePicker({ container : datumInputFieldSelector, mask : '%d.%m.%Y', calendar : { firstDayOfWeek : 1,