You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "Kevin Meyer (JIRA)" <ji...@apache.org> on 2011/07/14 17:01:02 UTC
[jira] [Commented] (ISIS-105) Implement support for value parameter
choices, defaults, etc.
[ https://issues.apache.org/jira/browse/ISIS-105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13065307#comment-13065307 ]
Kevin Meyer commented on ISIS-105:
----------------------------------
By inserting a check into the scalar panel base class (ComponentFactoryScalarAbstract), that creates a ValueChoicesPanel if the ScalarModel has choices present, all value types now present the user with a drop-down list of value in edit mode.
This works for both choicesXXXX for properties, and choicesNXXXX for parameters.
An outstanding problem is that the drop-down list is not initialised with the existing value of the property / parameter.
> Implement support for value parameter choices, defaults, etc.
> -------------------------------------------------------------
>
> Key: ISIS-105
> URL: https://issues.apache.org/jira/browse/ISIS-105
> Project: Isis
> Issue Type: New Feature
> Components: Viewer: Wicket
> Reporter: Kevin Meyer
> Priority: Minor
> Labels: wicket
>
> Currently the Wicket viewer only supports Entity choice support (i.e. if a choicesXXXX() method exists, it is only used if the item is an entity, not a value).
> This should be extended to include support for values.
> This also extends to defaultXXX(), etc, if it isn't already supported.
> I have added "ValueCollectionFactory" and a "ValueCollection" skeleton classes, and included a "addComponentFactoriesForValueChoices" to "ComponentFactoryListDefault". I have also added a "VALUE_COLLECTION" to the ComponentType enum.
> But I can't quite see where to go from here!
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira