You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2013/08/15 14:14:14 UTC

svn commit: r1514242 - /isis/site/trunk/content/applib-guide/how-tos/how-to-03-050-How-to-specify-default-values-for-an-action-parameter.md

Author: danhaywood
Date: Thu Aug 15 12:14:14 2013
New Revision: 1514242

URL: http://svn.apache.org/r1514242
Log:
fixing docs on use of defaultXxx() for action params

Modified:
    isis/site/trunk/content/applib-guide/how-tos/how-to-03-050-How-to-specify-default-values-for-an-action-parameter.md

Modified: isis/site/trunk/content/applib-guide/how-tos/how-to-03-050-How-to-specify-default-values-for-an-action-parameter.md
URL: http://svn.apache.org/viewvc/isis/site/trunk/content/applib-guide/how-tos/how-to-03-050-How-to-specify-default-values-for-an-action-parameter.md?rev=1514242&r1=1514241&r2=1514242&view=diff
==============================================================================
--- isis/site/trunk/content/applib-guide/how-tos/how-to-03-050-How-to-specify-default-values-for-an-action-parameter.md (original)
+++ isis/site/trunk/content/applib-guide/how-tos/how-to-03-050-How-to-specify-default-values-for-an-action-parameter.md Thu Aug 15 12:14:14 2013
@@ -50,9 +50,7 @@ For example:
                 int quantity) {
             ...
         }
-        public Object[] defaultPlaceOrder(
-                Product product,
-                int quantity) {
+        public Object[] defaultPlaceOrder() {
             return new Object[] {
                 productMostRecentlyOrderedBy(this.getCustomer()),
                 1
@@ -61,3 +59,4 @@ For example:
         ...
     }
 
+Note that the `defaultXxx()` method has no parameters.  This does mean that overloaded actions (more than one action with the same name but differing only in its parameter types) are not supported if using this construct.  This is not advisable in any case, since it would cause confusion to the users when rendered in the UI.
\ No newline at end of file