I have a complex entity which is displayed in tables in different places. In one place I want to show a subset of properties only. For this projection I made a special in-memory object, which wraps the complex entity and has getters for the subset of properties only. How can I mark this inmemory object to be not openable?
Asked
Active
Viewed 128 times
0
-
Interesting name they chose. – simonzack Jan 26 '15 at 08:50
-
1You might want to ask this on the mailing list; I only noticed it here by chance. Could you also clarify what you mean by "openable"; I'm guessing you want to disable the hyperlink on the icon? – Dan Haywood Jan 26 '15 at 20:40
-
correct, i want suppress/disable the link in the first column. I'll ask the question on the mailing list :) – H2000 Jan 26 '15 at 20:45
1 Answers
2
as per the Apache Isis mailing list, can use the #cssClass() UI hint coupled with some custom CSS and Javascript.

Dan Haywood
- 2,215
- 2
- 17
- 23
-
Dans anwser from the mailing list inline: For example, the todo app uses #cssClass() so that completed todo items are shown in a table with a strikethrough. This comes from the "done" CSS class: public String cssClass() { return !isComplete() ? "todo" : "done"; }` In webapp/css/application.css, if we add: tr.done a { pointer-events: none; cursor: default; } and in webapp/scripts/application.js, if we add: $(document).ready(function() { $('tr.done a').click(function() { return false; }); }); then the icon for each completed item cannot be clicked. – H2000 Jan 28 '15 at 18:47