Author: kbettinger
Date: 2010-04-23 11:45:19 +0200 (Fri, 23 Apr 2010)
New Revision: 42033

Modified:
   
CMSContainer/branches/b1_7/CMSContainer/cmsc/portlets/src/webapp/WEB-INF/templates/edit_defaults/sections/portletparameters.jsp
Log:
CMSC-1643 - fixed the optionlist, now uses proper html and selects the correct 
value when opening the editors

Modified: 
CMSContainer/branches/b1_7/CMSContainer/cmsc/portlets/src/webapp/WEB-INF/templates/edit_defaults/sections/portletparameters.jsp
===================================================================
--- 
CMSContainer/branches/b1_7/CMSContainer/cmsc/portlets/src/webapp/WEB-INF/templates/edit_defaults/sections/portletparameters.jsp
     2010-04-23 08:17:56 UTC (rev 42032)
+++ 
CMSContainer/branches/b1_7/CMSContainer/cmsc/portlets/src/webapp/WEB-INF/templates/edit_defaults/sections/portletparameters.jsp
     2010-04-23 09:45:19 UTC (rev 42033)
@@ -33,7 +33,14 @@
                         <select name="nodeparam_${key}">
                         <c:forEach var="item" items="${values}">
                             <c:set var="option" value="${fn:split(item, '=')}" 
/>
-                                    <option 
name="${option[0]}">${option[1]}</option>
+                            <c:choose>
+                                <c:when test="${option[1] eq storedValue}">
+                                    <option selected="selected" 
value="${option[1]}">${option[0]}</option>
+                                </c:when>
+                                <c:otherwise>
+                                    <option 
value="${option[1]}">${option[0]}</option>
+                                </c:otherwise>
+                            </c:choose>
                         </c:forEach>
                         </select>
                     </c:if>

_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to