Update of /var/cvs/contributions/didactor2/src/assessment/templates/assessment
In directory james.mmbase.org:/tmp/cvs-serv31277/templates/assessment

Modified Files:
        matrix.div.jspx 
Log Message:
using resourcebunle make it possible to work around MMB-1770


See also: 
http://cvs.mmbase.org/viewcvs/contributions/didactor2/src/assessment/templates/assessment
See also: http://www.mmbase.org/jira/browse/MMB-1770


Index: matrix.div.jspx
===================================================================
RCS file: 
/var/cvs/contributions/didactor2/src/assessment/templates/assessment/matrix.div.jspx,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -b -r1.17 -r1.18
--- matrix.div.jspx     8 Jan 2009 12:02:08 -0000       1.17
+++ matrix.div.jspx     8 Jan 2009 12:28:08 -0000       1.18
@@ -3,6 +3,7 @@
     xmlns:c="http://java.sun.com/jsp/jstl/core";
     xmlns:mm="http://www.mmbase.org/mmbase-taglib-2.0";
     xmlns:di="http://www.didactor.nl/ditaglib_1.0";
+    xmlns:fmt="http://java.sun.com/jsp/jstl/fmt";
     xmlns:mm-sr="http://www.mmbase.org/tags/mm/searchrelate";
     version="2.0">
   <!--
@@ -92,23 +93,10 @@
         <mm:listrelationscontainer type="problems" role="posrel">
           <mm:addnode element="problems" number="${problem}" />
           <mm:listrelations id="relation">
-            <mm:field name="pos" id="pos${relation}">
-              <mm:relation  from="${learnBlock}" to="${user}" role="classrel">
-                <!--
-                    This should make the 'trouble' readonly for already closed 
lessons.
-                    Sadly doesn't work very nicely becuase explicit datatypes 
does not influence gui value.
-                    Perhaps a bug.
-                    But also a consequence of insisting to use posrel for 
something which simply isn't.
-                    I hate the people who 'designed' this.
-
-                <mm:fieldinfo field="pos${relation}" 
datatype="didactor_assessment_troubles" type="${empty _node  ? 'input' : 
'guivalue'}" />
-
-                -->
-
-
-              </mm:relation>
-              <mm:fieldinfo field="pos${relation}" 
datatype="didactor_assessment_troubles" type="value" />
-
+            <mm:field name="pos" write="false">
+              <fmt:bundle basename="nl.didactor.resources.troubles">
+                <fmt:message key="${_}" />
+              </fmt:bundle>
             </mm:field>
           </mm:listrelations>
         </mm:listrelationscontainer>
_______________________________________________
Cvs mailing list
Cvs@lists.mmbase.org
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to