struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From craig...@apache.org
Subject svn commit: r209654 - /struts/shale/trunk/use-cases/src/web/WEB-INF/chain-config.xml
Date Thu, 07 Jul 2005 21:37:35 GMT
Author: craigmcc
Date: Thu Jul  7 14:37:34 2005
New Revision: 209654

URL: http://svn.apache.org/viewcvs?rev=209654&view=rev
Log:
Change the "state names" lookup to use the new generic mechanisms, which
rely on the ability to evaluate a value binding expression.  With this change,
you can now write remote commands that return arrays of SelectItem (which you
probably need elsewhere anyway) without writing any new Java code.

Modified:
    struts/shale/trunk/use-cases/src/web/WEB-INF/chain-config.xml

Modified: struts/shale/trunk/use-cases/src/web/WEB-INF/chain-config.xml
URL: http://svn.apache.org/viewcvs/struts/shale/trunk/use-cases/src/web/WEB-INF/chain-config.xml?rev=209654&r1=209653&r2=209654&view=diff
==============================================================================
--- struts/shale/trunk/use-cases/src/web/WEB-INF/chain-config.xml (original)
+++ struts/shale/trunk/use-cases/src/web/WEB-INF/chain-config.xml Thu Jul  7 14:37:34 2005
@@ -38,16 +38,13 @@
     <!-- NOTE - alternate implementations are provided to illustrate choices -->
 
     <!-- This implementation uses the generic EvaluateExpression and
-         BasicListCompletions classes from the core library.  It cannot be
-         used until the core creates a FacesContext for remote requests. -->
-    <!--
+         BasicListCompletions classes from the core library. -->
     <chain               name="/list/stateNames.remote">
       <command      className="org.apache.shale.remote.EvaluateExpression"
                    expression="#{domains.stateNames}"
                  attributeKey="strings"/>
       <command      className="org.apache.shale.remote.BasicListCompletions"/>
     </chain>
-    -->
 
     <!-- This implementation subclasses AbstractListCompletions and
          implements the legal() method to return the appropriate data. -->
@@ -55,8 +52,7 @@
                     className="org.apache.shale.usecases.remote.ListStateNames"/>
 
     <!-- This implementation uses the generic EvaluateExpression and
-         BasicSelectItems classes from the core library.  It cannot be
-         used until the core creates a FacesContext for remote requests. -->
+         BasicSelectItems classes from the core library. -->
     <!--
     <chain               name="/list/supportedCategories.remote">
       <command      className="org.apache.shale.remote.EvaluateExpression"
@@ -72,8 +68,7 @@
                     className="org.apache.shale.usecases.remote.ListCategories"/>
 
     <!-- This implementation uses the generic EvaluateExpression and
-         BasicSelectItems classes from the core library.  It cannot be
-         used until the core creates a FacesContext for remote requests. -->
+         BasicSelectItems classes from the core library. -->
     <!--
     <chain               name="/list/supportedLocales.remote">
       <command      className="org.apache.shale.remote.EvaluateExpression"



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message