isis-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Grigorov <mgrigo...@apache.org>
Subject Re: Overriden abstract properties not shown in parented tables
Date Mon, 02 Feb 2015 08:09:52 GMT
Hi Oscar,

On Sat, Jan 31, 2015 at 6:54 PM, GESCONSULTOR - Óscar Bou <
o.bou@gesconsultor.com> wrote:

> Hi all.
>
> I have Domain Entities similar to this ones:
>
> @PersistenceCapable
> public abstract class OrderedItem {
>
>    ...
>
>     // {{ Options (Collection)
>     @Persistent(mappedBy = "orderedItem", dependentElement = "true")
>     private SortedSet<OrderedItemOption> options = new
> TreeSet<OrderedItemOption>();
>
>     @XMSField(locales = { @XMSLocale(locale = "es", caption = "Opciones")
> })
>     @CollectionLayout(render = RenderType.EAGERLY)
>     @MemberOrder(sequence = "100")
>     public SortedSet<OrderedItemOption> getOptions() {
>         return this.options;
>     }
>
>     public void setOptions(final SortedSet<OrderedItemOption>
> optionGroups) {
>         this.options = optionGroups;
>     }
>
>    ...
>
> }
>
>
> Being OrderedItemOption an abstract class with many descendants, that
> declares the following abstract properties:
>
> @PersistenceCapable
> public abstract class OrderedItemOption {
> ...
>     // {{ ValueSelected (property)
>     @MemberOrder(sequence = "030")
>     @PropertyLayout(hidden = Where.NOWHERE)
>     public abstract String getValueSelected();
>
>     // }}
> ...
>
> }
>
>
> The doubt I have is that, when the Wicket viewer renders the "Options"
> collection inside the "Item" entity, it does not show "Value Selected" as
> one of its columns.
>
> I tried both with and without @PropertyLayout(hidden = Where.NOWHERE)
>

"hidden" attribute is definitely not needed here.
I believe that the column should be there.
Please create a ticket with a demo app and I'll try to debug it.


>
> Perhaps Am I missing something?
>
>
> Thanks,
>
> Oscar
>
>
>

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