Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Invalid
-
2.0.0-RC1
-
None
-
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
- curl SimpleApp from github as per https://causeway.apache.org/docs/2.0.0-RC1/starters/simpleapp.html
- Delete existing @Title annotation from property in SimpleObject.java
- Implement a trivial title() method:
public String title() {return "Marmot";}
- Install and run as per instructions
- Login and run fixture scripts to create SimpleObjects
- View several SimpleObjects
- 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.