liferay-aui

where liferay site will store in which table details will fetch?

白昼怎懂夜的黑 提交于 2019-12-25 00:47:04
问题 if we create site,organisation where it will store.i mean in which default table it will store.`Programmatically create organization site from site template Create organization site Organization organization = OrganizationLocalServiceUtil.addOrganization(creatorUserId, 0, name, createSite); Fetch site templates List<LayoutSetPrototype> layoutSetPrototypes = LayoutSetPrototypeLocalServiceUtil.getLayoutSetPrototypes(organization.getCompanyId()); LayoutSetPrototype customSiteTemplate = null; //

ajax on aui:select liferay

眉间皱痕 提交于 2019-12-24 03:31:00
问题 I know this is impossible to pass parameter from javascript to scriptlet code in jsp page So I want to use ajax to post my selected value to server and then get it in scriptlet code by request object I use <aui:select label="My Selection" name="ms" id="ms" onchange="<%= updateItem()%>" > <% for(String item : itemList){ %> <aui:option selected="<%= item.equals(selItem) %>" value="<%=item%>"><%=item%></aui:option> <%}%> </aui:select> <%! private Object updateItem() throws Exception{ //to do

Dynamic columns in liferay-ui:search-container?

天涯浪子 提交于 2019-12-21 03:46:19
问题 I have tried the liferay-ui:search-container to fetch and display the database table records on UI in a table/grid format. By using the liferay-ui:search-container I am getting the output as shown below, I am fetching the USER_ table records in the above screen shot. Problem: I wanted to make the grid columns dynamic like, I wanted to enable an option for end user to remove the unwanted columns and add the wanted columns in the respective grid/table. EX: In the above screen shot the the

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

六月ゝ 毕业季﹏ 提交于 2019-12-18 07:19:54
问题 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

Issue while saving the dynamic field values in the preferences

五迷三道 提交于 2019-12-13 00:42:15
问题 I have already posted one question on the same issue. But I'm not able to solve my issue and not able to move forward in my task. I have created a editable portlet where in the configuration page I am showing he dynamic questions which are fetching form the database. So for the same reason I am iterating my array list and creating the input fields dynamically as follows, Iterator<String> itr = al.iterator(); while(itr.hasNext()) { String columnVal = itr.next(); columnVal = columnVal.trim()

Can it possible to add the custom fields under Details tab liferay

南楼画角 提交于 2019-12-11 13:38:38
问题 With reference to the following link, https://www.liferay.com/community/wiki/-/wiki/Main/Custom+Fields+and+JSP+Hooks I am able to add the custom fields. But by default the newly added custom fields are showing under the "Custom Fields" tab. But I need to display my custom fields under the "Details" tab. How can I do that. Any suggestions please!! 回答1: You would have to hook the JSP of the portlet that you are working on. For example if you are working on Journal article portlet, than you will

auto field validator liferay javascript

柔情痞子 提交于 2019-12-11 11:30:39
问题 I've created autofields with custom validator and it works everything for the first couple, but when I add another two fields the validator just acts how it's validating the first one. This is my code: <div id="groupwork-fields" > <div class="lfr-form-row lfr-form-row-inline"> <div class="row-fields"> <aui:input fieldParam='name0' id="name0" cssClass="full-size" name="name0" label='<%=AwardConstants.LABEL_NAME %>' value=""> <aui:validator name="custom" errorMessage="fill-name"> function (val,

liferay 7 - Mismatched anonymous define()

筅森魡賤 提交于 2019-12-11 03:39:31
问题 I'm trying to include sockjs (v1.1.2) in my liferay 7 portlet, but I'm receiving this warning: Mismatched anonymous define() module: function ()... and then the library isn't loaded. I directly included the .js file in my liferay-portlet.xml like this: <header-portlet-javascript>/common/js/sockjs.js</header-portlet-javascript> I don't have any idea to make it work 回答1: Looks like you are running into an issue that's been fixed by LPS-68298. If you are using Liferay 7.0 DXP SP2+ or Liferay 7.0

Liferay ajax request and JSON response

余生长醉 提交于 2019-12-07 04:08:15
问题 I am new in Liferay. I used service builder to create database. I populated them manually. And eventually I could call them in JSP using PersonLocalServiceUtil class . Now I want to use Ajax in my program. For example: Person with attributes personID , personWeight , personTemperature and datetime are stored in database. I want to do an ajax call by personID to see his weight or Temperature graph for particular timeline. All I know, I can call list from Database to controller But I don't know

Liferay ajax request and JSON response

对着背影说爱祢 提交于 2019-12-05 10:39:17
I am new in Liferay. I used service builder to create database. I populated them manually. And eventually I could call them in JSP using PersonLocalServiceUtil class . Now I want to use Ajax in my program. For example: Person with attributes personID , personWeight , personTemperature and datetime are stored in database. I want to do an ajax call by personID to see his weight or Temperature graph for particular timeline. All I know, I can call list from Database to controller But I don't know How can I convert it to JSON obejct and forward it to JSP upon request, so that JSP won't refresh the