Hi, Glad it worked!
On Wed, Jan 28, 2015 at 3:06 PM, klaus meier <[email protected]> wrote: > Hi, > > thanks a lot, it works great! I'll raise a ticket, because we think that > is it very common use case. > We looked at different annotations and think that @DomainObjectLayout > looked like the right place, for example a new field like viewable or > similar. > I don't find it very intuitive, but I don't have a better suggestion at the moment. > If the apache isis devs/users find it useful too, I could try to create a > github patch? > > 1. create a new Facet > 2. CollectionContentsAsAjaxTablePanel.java or ObjectAdapterTitleColumn.java > => checking for the facet and suppress the link or change it to normal > html text + image (without link tag)? > > Cheers, H2000 > > Am 26.01.2015 um 23:11 schrieb Dan Haywood <[email protected]>: > > > +1 to Martin's answer, there is no configuration setting but it is > possible > > to hack it using Javascript and CSS and the new #cssClass in > 1.8.0-SNAPSHOT. > > > > 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. > > > > > > ~~~ > > I imagine you can adapt the above to your situation, but if you need > better > > support than this, please raise a ticket. > > > > Cheers > > Dan > > > > > > > > > > > > On 26 January 2015 at 21:27, Martin Grigorov <[email protected]> > wrote: > > > >> Hi, > >> > >> The column is added at > >> > >> > https://github.com/apache/isis/blob/master/component/viewer/wicket/ui/src/main/java/org/apache/isis/viewer/wicket/ui/components/collectioncontents/ajaxtable/CollectionContentsAsAjaxTablePanel.java#L96 > >> and I see no way how to suppress the addition in current master branch. > >> > >> The column is marked with "title-column" CSS class so it is easy to hide > >> with: visibility:hidden;, but I'm not sure how easy is to detect on > which > >> page to apply this CSS rule. > >> If you use 1.8.0-SNAPSHOT then maybe you can combine it with the new > >> #cssClass() special method that may be used to set a custom CSS class. > See > >> http://issues.apache.org/jira/browse/ISIS-1000 > >> > >> HTH > >> > >> Martin Grigorov > >> Wicket Training and Consulting > >> https://twitter.com/mtgrigorov > >> > >> On Mon, Jan 26, 2015 at 11:04 PM, klaus meier <[email protected]> > wrote: > >> > >>> Hello Apache ISIS Users, > >>> > >>> 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? > >>> > >>>> You 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 6 mins > ago > >>> > >>> Correct! I want suppress/disable the link in the first column. > >>> > >>> PS. For some reputation points see Stackoverflow [1]. > >>> > >>> Greetings, > >>> H2000 > >>> > >>> [1] > >>> > >> > http://stackoverflow.com/questions/28146962/apache-isis-how-should-i-mark-a-table-so-that-all-entries-are-not-openable > >> > >
