留言板
function dataRequest (requestParams,src)
ildar sl,修改在7 年前。
function dataRequest (requestParams,src)
Regular Member 帖子: 158 加入日期: 11-12-12 最近的帖子
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,修改在7 年前。
RE: function dataRequest (requestParams,src)
Liferay Legend 帖子: 14919 加入日期: 06-9-2 最近的帖子
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,修改在7 年前。
RE: function dataRequest (requestParams,src)
Regular Member 帖子: 158 加入日期: 11-12-12 最近的帖子
but how to do that work? If it is possible, example?
ildar sl,修改在7 年前。
RE: function dataRequest (requestParams,src)
Regular Member 帖子: 158 加入日期: 11-12-12 最近的帖子
nowhere
Liferay.on(
'<portlet:namespace />dataRequest',
...
Liferay.on(
'<portlet:namespace />dataRequest',
...
ildar sl,修改在7 年前。
RE: function dataRequest (requestParams,src) (答复)
Regular Member 帖子: 158 加入日期: 11-12-12 最近的帖子
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