[
https://issues.apache.org/jira/browse/ISIS-1633?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16066252#comment-16066252
]
ASF subversion and git services commented on ISIS-1633:
-------------------------------------------------------
Commit de0b34f883ae399e0a075e996a24cebe30407c98 in isis's branch
refs/heads/master from [~danhaywood]
[ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=de0b34f ]
ISIS-1633: updates docs for INLINE_AS_IF_EDIT
> Allow properties to be "edited" using an action (ie using multiple parameters)
> ------------------------------------------------------------------------------
>
> Key: ISIS-1633
> URL: https://issues.apache.org/jira/browse/ISIS-1633
> Project: Isis
> Issue Type: New Feature
> Components: Core
> Affects Versions: 1.14.0
> Reporter: Dan Haywood
> Assignee: Dan Haywood
> Fix For: 1.15.0
>
>
> eg to support name, address and so on.
> Design I've come up with is:
> {code|language=java}
> @Property(editing = Editing.DISABLED)
> public String getName() { ... }
> @MemberOrder(named="name", sequence="1")
> @ActionLayout(promptStyle=INLINE_AS_IF_EDIT)
> public ReferenceObject editName(
> @Nullable @ParameterLayout(named = "First name") String firstName,
> @ParameterLayout(named = "Last name")
> String lastName) {
> setName(firstName + " " + lastName);
> return this
> }
> public String default0EditName() {
> return ...
> }
> public String default1EditName() {
> return ...
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)