Salvatore La Manna 4 anni fa
parent
commit
e70fee7777
  1. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties
  2. 4
      liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/service.properties
  3. 21
      liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/META-INF/custom_jsps/html/portlet/workflow_tasks/render_form_task.jsp

4
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties

@ -13,8 +13,8 @@
## ##
build.namespace=portos_bo build.namespace=portos_bo
build.number=2742 build.number=2753
build.date=1606385864618 build.date=1606474724182
build.auto.upgrade=true build.auto.upgrade=true
## ##

4
liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/service.properties

@ -13,8 +13,8 @@
## ##
build.namespace=portos_Mail build.namespace=portos_Mail
build.number=78 build.number=79
build.date=1604403348058 build.date=1606474474656
build.auto.upgrade=true build.auto.upgrade=true
## ##

21
liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/META-INF/custom_jsps/html/portlet/workflow_tasks/render_form_task.jsp

@ -138,8 +138,18 @@ if (ddmTemplateId > 0) {
requestedLocale="<%= LocaleUtil.fromLanguageId(languageId) %>" requestedLocale="<%= LocaleUtil.fromLanguageId(languageId) %>"
/> />
</liferay-util:buffer> </liferay-util:buffer>
<% salva("prima.txt", html); %> <% salva("inizio.html", html); %>
<%= normalize(html, parameters, fieldNameOptions, renderResponse, prefix, suffix) %> <%=
normalize(html, parameters, fieldNameOptions, renderResponse, prefix, suffix)
Log _log = LogFactoryUtil.getLog("render_form_task_jsp_salva");
for (Map.Entry<String, List<Map<String, Serializable>>> entry : fieldNameOptions.entrySet()) {
}
/* html.replaceAll(
"\\sname=\"" + renderResponse.getNamespace() + "(.*?)_INSTANCE_[^\"]*",
" name=\"" + prefix + "$1" + suffix
)*/
%>
<%! <%!
private String normalize(String html, Map<String, Serializable> parameters, private String normalize(String html, Map<String, Serializable> parameters,
@ -149,9 +159,9 @@ private String normalize(String html, Map<String, Serializable> parameters,
if (Validator.isNull(html)) { if (Validator.isNull(html)) {
return StringPool.BLANK; return StringPool.BLANK;
} }
// replace portlet namespace + random namespace // replace portlet namespace + random namespace
html = html.replaceAll("name=\"" + renderResponse.getNamespace(), "name=\""); html = html.replaceAll("name=\"" + renderResponse.getNamespace(), "name=\"");
try { try {
Parser parser = Parser.createParser(html, StringPool.UTF8); Parser parser = Parser.createParser(html, StringPool.UTF8);
@ -162,16 +172,13 @@ private String normalize(String html, Map<String, Serializable> parameters,
} }
html = nodeList.toHtml(); html = nodeList.toHtml();
} catch (ParserException e) { } catch (ParserException e) {
} }
// add prefix + suffix // add prefix + suffix
html = html.replaceAll("name=\"(.*?)\"", "name=\"" + prefix + "$1" + suffix + "\""); html = html.replaceAll("name=\"(.*?)\"", "name=\"" + prefix + "$1" + suffix + "\"");
// ignore ddm fields display // ignore ddm fields display
html = html.replaceAll("name=\"" + prefix + "_fieldsDisplay" + suffix, "name=\"_fieldsDisplay\""); html = html.replaceAll("name=\"" + prefix + "_fieldsDisplay" + suffix + "\"", "name=\"_fieldsDisplay\"");
salva("dopo.txt", html);
return html; return html;
} }

Caricamento…
Annulla
Salva