You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "Dan Haywood (JIRA)" <ji...@apache.org> on 2017/06/02 14:01:04 UTC
[jira] [Created] (ISIS-1633) Allow properties to be "edited" using
an action (ie using multiple parameters)
Dan Haywood created ISIS-1633:
---------------------------------
Summary: 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
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.3.15#6346)