From 9a6b02cd6b551922837966aeb40069741eaa109d Mon Sep 17 00:00:00 2001 From: sb Date: Wed, 12 Mar 2008 13:46:10 +0000 Subject: [PATCH] Working hierarchical permissions when generating widgets; working sort of menus; many other improvements. --- transforms01/adl2controllerclasses.xslt | 16 +- transforms01/adl2entityclass.xslt | 16 +- transforms01/adl2views.xslt | 510 ++++++++++++++---------- 3 files changed, 315 insertions(+), 227 deletions(-) diff --git a/transforms01/adl2controllerclasses.xslt b/transforms01/adl2controllerclasses.xslt index 74f0f24..04a1f99 100755 --- a/transforms01/adl2controllerclasses.xslt +++ b/transforms01/adl2controllerclasses.xslt @@ -9,8 +9,8 @@ Transform ADL into (partial) controller classes $Author: sb $ - $Revision: 1.14 $ - $Date: 2008-03-10 17:01:26 $ + $Revision: 1.15 $ + $Date: 2008-03-12 13:46:10 $ --> + select="substring( '$Revision: 1.15 $', 11)"/> @@ -463,6 +463,7 @@ namespace { } } + /* ---- [ cut here: next file 'junk'] ------------------------- */ @@ -677,7 +678,8 @@ namespace { - + + /* produce a list of to populate the menu for */ @@ -685,6 +687,7 @@ namespace { + /* produce a list of to populate the LHS of the shuffle for */ @@ -705,10 +708,9 @@ namespace { - - + PropertyBag[""] = - hibernator.CreateCriteria(typeof()) + hibernator.CreateCriteria(typeof()) .List<>(); diff --git a/transforms01/adl2entityclass.xslt b/transforms01/adl2entityclass.xslt index bab36e9..b7fc83a 100755 --- a/transforms01/adl2entityclass.xslt +++ b/transforms01/adl2entityclass.xslt @@ -8,8 +8,8 @@ Transform ADL into entity classes $Author: sb $ - $Revision: 1.11 $ - $Date: 2008-03-10 17:01:26 $ + $Revision: 1.12 $ + $Date: 2008-03-12 13:46:10 $ --> + select="substring( '$Revision: 1.12 $', 11)"/> @@ -220,8 +220,8 @@ get { StringBuilder result = new StringBuilder(); - - + + if ( != null) @@ -297,11 +297,11 @@ return result; } } - - + + } } - + /* ---- [ cut here: next file 'junk'] ------------------------- */ diff --git a/transforms01/adl2views.xslt b/transforms01/adl2views.xslt index 5d1595c..28fd240 100755 --- a/transforms01/adl2views.xslt +++ b/transforms01/adl2views.xslt @@ -12,8 +12,8 @@ Transform ADL into velocity view templates $Author: sb $ - $Revision: 1.10 $ - $Date: 2008-03-10 17:01:26 $ + $Revision: 1.11 $ + $Date: 2008-03-12 13:46:10 $ --> @@ -44,7 +44,7 @@ stored to CVS --> + select="substring( '$Revision: 1.11 $', 11)"/> @@ -89,13 +89,13 @@ Generated using adl2views.xslt + ${ShuffleWidgetHelper.InstallScripts()} ${Ajax.InstallScripts()} ${FormHelper.InstallScripts()} ${Validation.InstallScripts()} ${Scriptaculous.InstallScripts()} ${ScriptsHelper.InstallScript( "Behaviour")} - ${ScriptsHelper.InstallScript( "ShuffleWidget")} ${ScriptsHelper.InstallScript( "Sitewide")} @@ -270,18 +270,14 @@
- #if ( $Flash.errors) -
-

Errors were encountered

- -
    - #foreach ($error in $Flash.errors) -
  • - $error -
  • + #if ( $errors) + #if ( $errors.Count != 0) +
      + #foreach( $e in $errors) +
    • $t.Enc($e)
    • #end
    -
+ #end #end #if ( $messages.Count == 0) - - - - - - - You must provide a value for - - - The value for must be - - - The value for must be an instance of - - - The value for must be - - - - - - - - - - - none - + + + + @@ -836,188 +808,44 @@ + ${FormHelper.HiddenField( )} - + + ${FormHelper.HiddenField( )} + + #if ($instance.) + + + + ${FormHelper.HiddenField( )} + + + + ${FormHelper.HiddenField( )} + + + #else + + + + #end + - - - - #if ( $instance) - ${FormHelper.Select( "instance.", $instance., , "%{firstoption='[unset]', firstoptionvalue='-1', text='UserIdentifier', value='KeyString', title=''}" )} - #else - ${FormHelper.Select( "instance.", $, , "%{firstoption='[unset]', firstoptionvalue='-1', text='UserIdentifier', value='KeyString', title=''}" )} - #end - - - - ${FormHelper.Select( "instance.", $instance., , "%{multiple='multiple', size='8', text='UserIdentifier', value='KeyString', title=''}" )} - - - - - - - - - - - - - - - - - - - - - - - - required - - - - - - - - validate-digits - validate-number - validate-number - date-field validate-date - - - - - - - - - - - - - - - - - - - - - - - - - - - $!instance. - - - - - -
- - - -
- - - -
-
- - - - -
-
- -
- -
- - - - - - - ${FormHelper.CheckboxField( "instance.")} - - - required date-field validate-date - ${FormHelper.TextField( "instance.", "%{class='', textformat='d', size='10', maxlength='10'}")} - - - required - validate-digits - validate-number - validate-number - - - - - - - - 8 - 8 - 8 - 60 - - - - - - - - - - - - - ${FormHelper.TextField( "instance.", "%{class='', title='', size='', maxlength=''}")} - + + + + @@ -1027,6 +855,219 @@
+ + + + + + + + + + You must provide a value for + + + The value for must be + + + The value for must be an instance of + + + The value for must be + + + + + + + + + + #if ( $instance) + ${FormHelper.Select( "instance.", $instance., , "%{text='UserIdentifier', value='KeyString', title=''}" )} + #else + ${FormHelper.Select( "instance.", $, , "%{text='UserIdentifier', value='KeyString', title=''}" )} + #end + + + #if ( $instance) + ${FormHelper.Select( "instance.", $instance., , "%{firstoption='[unset]', firstoptionvalue='-1', text='UserIdentifier', value='KeyString', title=''}" )} + #else + ${FormHelper.Select( "instance.", $, , "%{firstoption='[unset]', firstoptionvalue='-1', text='UserIdentifier', value='KeyString', title=''}" )} + #end + + + + + + ${FormHelper.Select( "instance.", $instance., , "%{multiple='multiple', size='8', text='UserIdentifier', value='KeyString', title=''}" )} + + + + + + + + + + + + + + + + + + + + + + + + required + + + + + + + + validate-digits + validate-number + validate-number + date-field validate-date + + + + + + + + + + + + + + + + + + + + + + + + + + + + $!instance. + + + + + + +
+ + + +
+ + + +
+
+ + + + +
+
+ +
+ +
+ + + + + + + ${FormHelper.CheckboxField( "instance.")} + + + + required date-field validate-date + + ${FormHelper.TextField( "instance.", "%{class='', textformat='d', size='10', maxlength='10'}")} + + + + required + + validate-digits + validate-number + validate-number + + + + + + + + 8 + 8 + 8 + 60 + + + + + + + + + + + + + ${FormHelper.TextField( "instance.", "%{class='', title='', size='', maxlength=''}")} + +
+
+ @@ -1409,7 +1450,52 @@ - + + + + + + + + + + + + + + + + + + none + + + + + + + + + + + + + + + + + + + + +