isis-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Grigorov <mgrigo...@apache.org>
Subject Fwd: "Marker" view model
Date Fri, 13 Mar 2015 11:27:45 GMT
Hi,

I tried to use a "marker" view model, i.e. a view model without any
properties.
I need it to trigger instantiation of a custom component(factory).
I thought that I may put all the "properties" in the component, so the view
model won't need to have them. It will be just a marker, like marker
interfaces.
This didn't work because of the code at
https://github.com/apache/isis/blob/master/core/viewer-wicket/ui/src/main/java/org/apache/isis/viewer/wicket/ui/pages/entity/EntityPage.java#L124
I will put the properties in the view model to overcome this check.
Is this something that could be relaxed or this check has to stay there for
some other functionality ?

Martin Grigorov
Freelancer, available for hire!
Wicket Training and Consulting
https://twitter.com/mtgrigorov

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message