cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r371503 - /cocoon/branches/BRANCH_2_1_X/src/blocks/databases/samples/org-db/employee.xsp
Date Mon, 23 Jan 2006 09:22:00 GMT
Author: jbq
Date: Mon Jan 23 01:21:55 2006
New Revision: 371503

URL: http://svn.apache.org/viewcvs?rev=371503&view=rev
Log:
Fix COCOON-1653

Modified:
    cocoon/branches/BRANCH_2_1_X/src/blocks/databases/samples/org-db/employee.xsp

Modified: cocoon/branches/BRANCH_2_1_X/src/blocks/databases/samples/org-db/employee.xsp
URL: http://svn.apache.org/viewcvs/cocoon/branches/BRANCH_2_1_X/src/blocks/databases/samples/org-db/employee.xsp?rev=371503&r1=371502&r2=371503&view=diff
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/blocks/databases/samples/org-db/employee.xsp (original)
+++ cocoon/branches/BRANCH_2_1_X/src/blocks/databases/samples/org-db/employee.xsp Mon Jan
23 01:21:55 2006
@@ -46,14 +46,15 @@
               <esql:query>select id, department_id, name from employee order by name</esql:query>
               <esql:results>
                 <esql:row-results>
+                 <option>
                   <xsp:logic>
                         if (<esql:get-string column="id"/>.equals(empID)) {
                             depID = <esql:get-string column="department_id"/>;
-			                      name = <esql:get-string column="name"/>;
-			                      xspAttr.addAttribute("", "selected", "selected", "CDATA", "");
+			      </xsp:logic>
+			       	<xsp:attribute name="selected">selected</xsp:attribute>
+			       <xsp:logic>
                         }
                   </xsp:logic>
-                  <option>
                     <xsp:attribute name="value"><esql:get-int column="id"/></xsp:attribute>
                     <esql:get-string column="name"/>
                   </option>
@@ -83,12 +84,14 @@
                 <esql:query>select id, name from department order by name</esql:query>
                 <esql:results>
                   <esql:row-results>
+                  	<option>
                     <xsp:logic>
                         if (<esql:get-string column="id"/>.equals(depID)) {
-			                    xspAttr.addAttribute("", "selected", "selected", "CDATA", "");
+			        </xsp:logic>
+			       	  <xsp:attribute name="selected">selected</xsp:attribute>
+			       	<xsp:logic>
                         }
                     </xsp:logic>
-                    <option>
                       <xsp:attribute name="value"><esql:get-int column="id"/></xsp:attribute>
                       <esql:get-string column="name"/>
                     </option>



Mime
View raw message