You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@isis.apache.org by Martin Grigorov <mg...@apache.org> on 2015/02/02 09:09:52 UTC

Re: Overriden abstract properties not shown in parented tables

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
>
>
>