Author: taylor
Date: Wed Feb 21 22:06:34 2007
New Revision: 510411

URL: http://svn.apache.org/viewvc?view=rev&rev=510411
Log:
Bug fix: allow updating of expiration cache on a portlet

Modified:
    
portals/jetspeed-2/trunk/applications/j2-admin/src/java/org/apache/jetspeed/portlets/pam/PortletApplicationDetail.java
    
portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/view/portlet-detail.jsp

Modified: 
portals/jetspeed-2/trunk/applications/j2-admin/src/java/org/apache/jetspeed/portlets/pam/PortletApplicationDetail.java
URL: 
http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/applications/j2-admin/src/java/org/apache/jetspeed/portlets/pam/PortletApplicationDetail.java?view=diff&rev=510411&r1=510410&r2=510411
==============================================================================
--- 
portals/jetspeed-2/trunk/applications/j2-admin/src/java/org/apache/jetspeed/portlets/pam/PortletApplicationDetail.java
 (original)
+++ 
portals/jetspeed-2/trunk/applications/j2-admin/src/java/org/apache/jetspeed/portlets/pam/PortletApplicationDetail.java
 Wed Feb 21 22:06:34 2007
@@ -530,6 +530,17 @@
                     }
                     index++;
                 }
+                String expirationCache = 
actionRequest.getParameter("expirationCache");
+                if (expirationCache != null)
+                {
+                    try
+                    {
+                        Integer.parseInt(expirationCache);
+                        portlet.setExpirationCache(expirationCache);
+                    }
+                    catch (NumberFormatException e)
+                    {}
+                }
             }
             else
             {

Modified: 
portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/view/portlet-detail.jsp
URL: 
http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/view/portlet-detail.jsp?view=diff&rev=510411&r1=510410&r2=510411
==============================================================================
--- 
portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/view/portlet-detail.jsp
 (original)
+++ 
portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/view/portlet-detail.jsp
 Wed Feb 21 22:06:34 2007
@@ -47,8 +47,8 @@
             <td class="portlet-section-alternate">
                 <fmt:message key="pam.details.expiration_cache"/>
             </td>
-            <td class="portlet-section-body">
-                <c:out value="${selectedPDef.expirationCache}"/>
+            <td class="portlet-section-body">
+                <input type="text" name="expirationCache" size="6" 
value="<c:out value="${selectedPDef.expirationCache}"/>" 
class="portlet-form-field-label"/>
             </td>
         </tr>
         </tr>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to