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/09/12 09:50:22 UTC
svn commit: r1522474 - in /isis/site/trunk/content: ./ applib-guide/how-tos/
Author: danhaywood
Date: Thu Sep 12 07:50:22 2013
New Revision: 1522474
URL: http://svn.apache.org/r1522474
Log:
conditional choices
Added:
isis/site/trunk/content/applib-guide/how-tos/how-to-03-022-How-to-specify-dependent-choices-for-action-parameters.md
- copied, changed from r1522455, isis/site/trunk/content/applib-guide/how-tos/how-to-03-029-How-to-specify-conditional-choices-for-action-parameters.md
Removed:
isis/site/trunk/content/applib-guide/how-tos/how-to-03-029-How-to-specify-conditional-choices-for-action-parameters.md
Modified:
isis/site/trunk/content/applib-guide/how-tos/about.md
isis/site/trunk/content/documentation.md
Modified: isis/site/trunk/content/applib-guide/how-tos/about.md
URL: http://svn.apache.org/viewvc/isis/site/trunk/content/applib-guide/how-tos/about.md?rev=1522474&r1=1522473&r2=1522474&view=diff
==============================================================================
--- isis/site/trunk/content/applib-guide/how-tos/about.md (original)
+++ isis/site/trunk/content/applib-guide/how-tos/about.md Thu Sep 12 07:50:22 2013
@@ -108,11 +108,12 @@ For actions:
* [How to specify a set of choices for an action parameter](./how-to-03-020-How-to-specify-a-set-of-choices-for-an-action-parameter.html)
+* [How to specify dependent choices for action parameters (eg category/subcategory)](./how-to-03-022-How-to-specify-dependent-choices-for-action-parameters.html)
+
* [How to specify an auto-complete for an action parameter](./how-to-03-025-How-to-specify-an-autocomplete-for-an-action-parameter.html)
* [How to specify default values for an action parameter](./how-to-03-050-How-to-specify-default-values-for-an-action-parameter.html)
-* [How to specify conditional choices for action parameters (eg category/subcategory](./how-to-03-029-How-to-specify-conditional-choices-for-action-parameters.html)
For both:
Copied: isis/site/trunk/content/applib-guide/how-tos/how-to-03-022-How-to-specify-dependent-choices-for-action-parameters.md (from r1522455, isis/site/trunk/content/applib-guide/how-tos/how-to-03-029-How-to-specify-conditional-choices-for-action-parameters.md)
URL: http://svn.apache.org/viewvc/isis/site/trunk/content/applib-guide/how-tos/how-to-03-022-How-to-specify-dependent-choices-for-action-parameters.md?p2=isis/site/trunk/content/applib-guide/how-tos/how-to-03-022-How-to-specify-dependent-choices-for-action-parameters.md&p1=isis/site/trunk/content/applib-guide/how-tos/how-to-03-029-How-to-specify-conditional-choices-for-action-parameters.md&r1=1522455&r2=1522474&rev=1522474&view=diff
==============================================================================
--- isis/site/trunk/content/applib-guide/how-tos/how-to-03-029-How-to-specify-conditional-choices-for-action-parameters.md (original)
+++ isis/site/trunk/content/applib-guide/how-tos/how-to-03-022-How-to-specify-dependent-choices-for-action-parameters.md Thu Sep 12 07:50:22 2013
@@ -1,5 +1,5 @@
-How to specify conditional choices for action parameters
--------------------------------------------------------
+How to specify dependent choices for action parameters
+------------------------------------------------------
Sometimes there is a dependency between the value of one parameter and the set of values to another. For example, if selecting a particular category, then this implies a set of subcategories belonging to that category. Or, if selecting a particular country, then this implies a set of states/counties within that country.
@@ -14,15 +14,19 @@ where N indicates the 0-based parameter
For example:
public class Book {
- public void categorize(
+ public void describeAndCategorize(
+ @Named("Description") String description
Genre genre,
Subgenre subgenre) {
...
}
- public Collection<Subgenre> choices1Categorize(Genre genre) {
+ public Collection<Subgenre> choices2Categorize(
+ String description,
+ Genre genre) {
return genre.getSubgenres();
}
....
}
-> NOTE: at this writing this capability does not exist for properties that have dependencies. Instead, make the properties read-only (using `@Disabled`) and provide an action to update them instead.
\ No newline at end of file
+
+> **NOTE**: at this writing this capability does not exist for properties that have dependencies. Instead, make the properties read-only (using `@Disabled`) and provide an action to update them instead.
\ No newline at end of file
Modified: isis/site/trunk/content/documentation.md
URL: http://svn.apache.org/viewvc/isis/site/trunk/content/documentation.md?rev=1522474&r1=1522473&r2=1522474&view=diff
==============================================================================
--- isis/site/trunk/content/documentation.md (original)
+++ isis/site/trunk/content/documentation.md Thu Sep 12 07:50:22 2013
@@ -10,7 +10,7 @@ Title: Documentation
- [Screencasts](getting-started/screencasts.html)
- [Wicket/Restful/JDO Archetype](getting-started/quickstart-archetype.html) ([1.0.3](getting-started/release-notes/about.html))
-- [Programming Model and How-tos](applib-guide/about.html)
+- **[Programming Model and How-tos](applib-guide/about.html)**
- [Applib utility classes](applib-guide/reference/Utility.html)
- [Static and dynamic layouts](core/dynamic-layouts.html)
- [Programming Model Cheat Sheet](getting-started/cheat-sheet.html)