Author: sshyrkov
Date: Thu Oct 11 20:24:19 2007
New Revision: 18842

URL: https://svndev.jahia.net/websvn/listing.php?sc=3D1&rev=3D18842&repname=
=3Djahia
Log:
JAHIA-2476: Dynamic copyies: the "Copies" action menu (which launch a pop o=
n the source of a linked copy) does not work any more =

http://www.jahia.net/jira/browse/JAHIA-2476
Resolution: required ParamBean initialized and passed to the method call fo=
r metadata retrieval

Modified:
    branches/JAHIA-5-0-SP-BRANCH/core/src/webapp/jsp/jahia/engines/importex=
port/dispPickers.jsp

Modified: branches/JAHIA-5-0-SP-BRANCH/core/src/webapp/jsp/jahia/engines/im=
portexport/dispPickers.jsp
URL: https://svndev.jahia.net/websvn/diff.php?path=3D/branches/JAHIA-5-0-SP=
-BRANCH/core/src/webapp/jsp/jahia/engines/importexport/dispPickers.jsp&rev=
=3D18842&repname=3Djahia
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- branches/JAHIA-5-0-SP-BRANCH/core/src/webapp/jsp/jahia/engines/importex=
port/dispPickers.jsp (original)
+++ branches/JAHIA-5-0-SP-BRANCH/core/src/webapp/jsp/jahia/engines/importex=
port/dispPickers.jsp Thu Oct 11 20:24:19 2007
@@ -32,6 +32,8 @@
 <%@ page import=3D"org.jahia.services.version.EntryLoadRequest"%>
 <%@ page import=3D"java.text.SimpleDateFormat"%>
 <%@ page import=3D"java.util.*"%>
+<[EMAIL PROTECTED] 
import=3D"org.jahia.hibernate.manager.SpringContextSingleton"%>
+<[EMAIL PROTECTED] import=3D"org.jahia.params.ProcessingContextFactory"%>
 <[EMAIL PROTECTED] uri=3D"JahiaLib" prefix=3D"jahia" %>
 <%@ page contentType=3D"text/html;charset=3DUTF-8" language=3D"java" %>
 <%!
@@ -316,13 +318,7 @@
     ResourceBundle pickersbundle =3D  ResourceBundle.getBundle("jahiatempl=
ates.common", locale);
 =

     // jparams
-    /*
-    ParamBean jParams =3D (ParamBean) request.getAttribute("org.jahia.para=
ms.ParamBean");
-    if(jParams=3D=3Dnull) {
-        logger.debug("parambean is NULL");
-
-    }
-    */
+    ParamBean jParams =3D ((ProcessingContextFactory)SpringContextSingleto=
n.getInstance().getContext().getBean(ProcessingContextFactory.class.getName=
())).getContext(request, response, pageContext.getServletContext());
     // flag to warn if some param miss or error ocurred
     boolean render =3D true;
 =

@@ -475,9 +471,9 @@
                                 try {
                                     //author =3D co.getMetadata("creator")=
.getValue(null, EntryLoadRequest.CURRENT);
                                     //lastcontributor =3D co.getMetadata("=
lastcontributor").getValue(null, EntryLoadRequest.CURRENT);
-                                   author =3D co.getMetadataValue("creator=
",null,"");
-                                   lastcontributor =3D co.getMetadataValue=
("lastcontributor",null,"");
-                                   lastpublishingdate=3D co.getMetadataVal=
ue("lastPublishingDate",null,"");
+                                   author =3D co.getMetadataValue("creator=
",jParams,"");
+                                   lastcontributor =3D co.getMetadataValue=
("lastcontributor",jParams,"");
+                                   lastpublishingdate=3D co.getMetadataVal=
ue("lastPublishingDate",jParams,"");
 =

                                     //logger.debug("summary metadatas: aut=
hor:"+author+" lastcontrib:"+lastcontributor+" lastpubdate:"+lastpublishing=
date);
                                 } catch (JahiaException e) {
@@ -489,7 +485,7 @@
                         %>
                         <tr style=3D"background-color:<%=3Dcolor%>" onMous=
eOver=3D"this.style.backgroundColor=3D'#FFFFEE'"
                             onMouseOut=3D"this.style.backgroundColor=3D'<%=
=3Dcolor%>'">
-                            <td><%=3Dinfo%></td><td><%=3DprintFriendlyDate=
(lastpublishingdate,request.getLocale(), enginebundle)%></td>
+                            <td><%=3Dinfo%></td><td><%=3DprintFriendlyDate=
(lastpublishingdate,jParams.getLocale(), enginebundle)%></td>
                         </tr>
                         <%
                                 count++;

_______________________________________________
cvs_list mailing list
[email protected]
http://lists.jahia.org/cgi-bin/mailman/listinfo/cvs_list

Reply via email to