diff --git a/schemas/adl-0.dtd b/schemas/adl-0.dtd
index d71ce98..5b647f8 100755
--- a/schemas/adl-0.dtd
+++ b/schemas/adl-0.dtd
@@ -13,7 +13,7 @@
@@ -104,11 +104,11 @@ that we can allow HTML block level entities within content elements -->
diff --git a/transforms/adl2controllerclasses.xslt b/transforms/adl2controllerclasses.xslt
index e62215a..a4e7f35 100755
--- a/transforms/adl2controllerclasses.xslt
+++ b/transforms/adl2controllerclasses.xslt
@@ -9,8 +9,8 @@
Transform ADL into (partial) controller classes
$Author: sb $
- $Revision: 1.8 $
- $Date: 2008-06-03 16:09:07 $
+ $Revision: 1.9 $
+ $Date: 2008-06-04 16:17:39 $
-->
+
+
+
+
/* with a list we cannot just smash the old values! Instead we need to check
* each one and exclude it if no longer required */
if ( Form.GetValues( "") != null)
@@ -440,21 +459,46 @@ namespace {
if ( ! found)
{
record..Remove( item);
+ break;
}
} /* foreach ( item ... */
/* then add any on the included list which are not already members */
foreach ( string index in )
{
-
- item =
+ item =
hibernator.CreateCriteria(typeof())
- .Add(Expression.Eq("Id", index))
- .UniqueResult<.>();
+ .Add(Expression.Eq("",
+
+ index
+
+
+ Int32.Parse( index)
+
+
+
+ ADL: Error: keys of type cannot yet be used
+ in lists
+
+
+ ))
+ .UniqueResult<>();
if ( ! record..Contains( item))
{
+ /* check whether it's already a child of another
+ * and, if it is, remove it */
+ oldparent =
+ ;
+ if ( oldparent != null) {
+ oldparent..Remove( item);
+ hibernator.Save( oldparent);
+ }
+
+ /* then add it to my */
record..Add( item);
+ = record;
+ hibernator.Save( item);
}
} /* foreach ( string index... */
} /* if ( Form.GetValues( "") != null) */
diff --git a/transforms/adl2views.xslt b/transforms/adl2views.xslt
index 4ea4640..e0e7d1e 100755
--- a/transforms/adl2views.xslt
+++ b/transforms/adl2views.xslt
@@ -13,8 +13,8 @@
Transform ADL into velocity view templates
$Author: sb $
- $Revision: 1.5 $
- $Date: 2008-06-03 16:09:11 $
+ $Revision: 1.6 $
+ $Date: 2008-06-04 16:17:39 $
-->
@@ -124,7 +124,7 @@
Auto generated Velocity maybe-delete form for ,
generated from ADL.
- Generated using adl2views.xslt
+ Generated using adl2views.xslt
@@ -162,7 +162,7 @@
Auto generated Velocity maybe-delete form for ,
generated from ADL.
- Generated using adl2views.xslt
+ Generated using adl2views.xslt
@@ -243,7 +243,7 @@
Auto generated Velocity form for ,
generated from ADL.
- Generated using adl2views.xslt
+ Generated using adl2views.xslt
#capturefor( title)
#if ( $instance)
@@ -261,8 +261,18 @@
function performInitialisation()
{
-
+
+
+
+
document...submitHandler = shuffleSubmitHandler;
+
+
+ document...submitHandler = shuffleSubmitHandler;
+
+
+
switchtab( '');
@@ -354,7 +364,7 @@
Auto generated Velocity form for ,
generated from ADL.
- Generated using adl2views.xsl
+ Generated using adl2views.xsl