[
https://issues.apache.org/jira/browse/CAUSEWAY-3448?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17716693#comment-17716693
]
Andi Huber commented on CAUSEWAY-3448:
--------------------------------------
Terminology might be a bit ambiguous in this case. Sorry for that!
> Icon defined in DomainObject iconName() method not shown in wicketviewer
> ------------------------------------------------------------------------
>
> Key: CAUSEWAY-3448
> URL: https://issues.apache.org/jira/browse/CAUSEWAY-3448
> Project: Causeway
> Issue Type: Bug
> Components: Viewer Wicket
> Affects Versions: 2.0.0-RC1
> Reporter: Simon Titheridge
> Priority: Major
>
> Implementing the method iconName() on a DomainObject does not present the
> corresponding icon file in the UI.
> To recreate the issue:
> # curl SimpleApp from github as per
> [https://causeway.apache.org/docs/2.0.0-RC1/starters/simpleapp.html]
> # Edit SimpleObject.java adding iconName() method:
> #
> {code:java}
> @ObjectSupport
> public String iconName() {
> return "Foo";
> } {code}
> # Add an icon file "Foo.png" to the same directory as SimpleObject.java
> # Maven Install/run as per instructions
> # Login and run fixture scripts to create SimpleObjects
> # Navigate to several SimpleObject views from the list of objects
> # Actual result: The listed SimpleObjects are displayed with the default
> ("wireframe cube") icon, not the icon shown in "Foo.png"
--
This message was sent by Atlassian Jira
(v8.20.10#820010)