Foren
function dataRequest (requestParams,src)
ildar sl, geändert vor 7 Jahren.
function dataRequest (requestParams,src)
Regular Member Beiträge: 158 Beitrittsdatum: 12.12.11 Neueste Beiträge
Hi!
Im use 6.2
where this function is physically located? Which file?
I understand that this function forwards.
Why the change of the display style does not work in a custom portlet
Im use 6.2
where this function is physically located? Which file?
Liferay.fire(
'<portlet:namespace />dataRequest',
{
requestParams: config,
src: Liferay.DL_ENTRIES_PAGINATOR
}
);
I understand that this function forwards.
Why the change of the display style does not work in a custom portlet
function changeDisplayStyle(displayStyle) {
var config = {};
<%
Set<string> requestParamNames = requestParams.keySet();
for (String requestParamName : requestParamNames) {
String requestParamValue = requestParams.get(requestParamName);
%>
config['<portlet:namespace /><%= requestParamName %>'] = '<%= HtmlUtil.escapeJS(requestParamValue) %>';
<%
}
%>
config['<portlet:namespace />displayStyle'] = displayStyle;
config['<portlet:namespace />saveDisplayStyle'] = true;
for (var key in config) {
console.log("key = " + key + "; value = " + config[key]);
}
Liferay.fire(
'<portlet:namespace />dataRequest',
{
requestParams: config,
src: Liferay.DL_ENTRIES_PAGINATOR
}
);
}</string>
David H Nebinger, geändert vor 7 Jahren.
RE: function dataRequest (requestParams,src)
Liferay Legend Beiträge: 14918 Beitrittsdatum: 02.09.06 Neueste Beiträge
Fire() does not issue a method call, it issues an event. Other portions of the code will have corresponding on() methods that get invoked when the message is sent.
ildar sl, geändert vor 7 Jahren.
RE: function dataRequest (requestParams,src)
Regular Member Beiträge: 158 Beitrittsdatum: 12.12.11 Neueste Beiträge
but how to do that work? If it is possible, example?
ildar sl, geändert vor 7 Jahren.
RE: function dataRequest (requestParams,src)
Regular Member Beiträge: 158 Beitrittsdatum: 12.12.11 Neueste Beiträge
nowhere
Liferay.on(
'<portlet:namespace />dataRequest',
...
Liferay.on(
'<portlet:namespace />dataRequest',
...
ildar sl, geändert vor 7 Jahren.
RE: function dataRequest (requestParams,src) (Antwort)
Regular Member Beiträge: 158 Beitrittsdatum: 12.12.11 Neueste Beiträge
Ok, solved.
I found, stored in the file
\html\js\liferay\app_view_folders.js
I found, stored in the file
\html\js\liferay\app_view_folders.js