Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-1633

Allow properties to be "edited" using an action (ie using multiple parameters)

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.14.0
    • 1.15.0
    • Core
    • None

    Description

      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 ... }
      
      

      Attachments

        Activity

          People

            danhaywood Daniel Keir Haywood
            danhaywood Daniel Keir Haywood
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: