Fórum
function dataRequest (requestParams,src)
ildar sl, modificado 7 Anos atrás.
function dataRequest (requestParams,src)
Regular Member Postagens: 158 Data de Entrada: 12/12/11 Postagens Recentes
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, modificado 7 Anos atrás.
RE: function dataRequest (requestParams,src)
Liferay Legend Postagens: 14918 Data de Entrada: 02/09/06 Postagens Recentes
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, modificado 7 Anos atrás.
RE: function dataRequest (requestParams,src)
Regular Member Postagens: 158 Data de Entrada: 12/12/11 Postagens Recentes
but how to do that work? If it is possible, example?
ildar sl, modificado 7 Anos atrás.
RE: function dataRequest (requestParams,src)
Regular Member Postagens: 158 Data de Entrada: 12/12/11 Postagens Recentes
nowhere
Liferay.on(
'<portlet:namespace />dataRequest',
...
Liferay.on(
'<portlet:namespace />dataRequest',
...
ildar sl, modificado 7 Anos atrás.
RE: function dataRequest (requestParams,src) (Resposta)
Regular Member Postagens: 158 Data de Entrada: 12/12/11 Postagens Recentes
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