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

Output of method "title()" is not shown as object title in Wicket Viewer

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 2.0.0-RC1
    • None
    • Core
    • None

    Description

      An implementation of the title() method on a DomainObject is not used when displaying the name of the object in the Wicket Viewer. It's quite a problem if the meaningful title of the object can't be constructed via @Title annotations (common for me).

       

      Steps to reproduce

      1. curl SimpleApp from github as per https://causeway.apache.org/docs/2.0.0-RC1/starters/simpleapp.html
      2. Delete existing @Title annotation from property in SimpleObject.java
      3. Implement a trivial title() method:
        1. public String title() {return "Marmot";}
      1. Install and run as per instructions
      2. Login and run fixture scripts to create SimpleObjects
      3. View several SimpleObjects
      4. Actual result: The viewed SimpleObjects have their title in page header and Bookmark list incorrectly showing the default title (e.g.  "SimpleObject(name=Baz)"), rather than the output of the title() method . See screenshots.

       

       

      Attachments

        1. image-2023-04-10-14-02-46-633.png
          63 kB
          Simon Titheridge
        2. image-2023-04-10-14-04-21-608.png
          68 kB
          Simon Titheridge

        Activity

          People

            Unassigned Unassigned
            stitheridge Simon Titheridge
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: