[ 
https://issues.apache.org/jira/browse/ISIS-1698?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16136467#comment-16136467
 ] 

Andi Huber commented on ISIS-1698:
----------------------------------

Different case, different strange behavior:

Given a domain object with 2 collections, having the first (_surveyData_) as a 
class member, the other  (_dataCorrections_) contributed via mixin:

The defaultView selected for the first collection (_surveyData_) is always that 
specified for the second (_dataCorrections_). 

{code:xml}
<bs3:col span="8" unreferencedCollections="true">
   <cpt:collection defaultView="table"  id="surveyData"/>
   <cpt:collection defaultView="excel" id="dataCorrections" />
</bs3:col>
{code}

Replace "excel" with "hidden" and both collections render with "hidden" view.

see screenshot
(screenshot taken after _Clear Hints_)





> CollectionLayout.defaultView not honored
> ----------------------------------------
>
>                 Key: ISIS-1698
>                 URL: https://issues.apache.org/jira/browse/ISIS-1698
>             Project: Isis
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.15.0
>            Reporter: Andi Huber
>             Fix For: 1.16.0
>
>
> It seems setting the defaultView for Collections does no longer work. (Since 
> release 1.15.0)
> The collection's view instead always defaults to "table", no matter if set 
> via Annotation or layout.xml.
> However the 'hinting mechanism' does work. The framework remembers the last 
> view as selected via user-interface . ('table, 'excel, ...')
> Steps to reproduce ...
> Take the SimpleObject demo app and test the following snipped:
> {code:java}
>     @javax.inject.Inject
>     SimpleObjectRepository simpleObjectRepository;
>     @CollectionLayout(defaultView="hidden")
>     public List<SimpleObject> getAll(){
>       return simpleObjectRepository.listAll();
>     }
> {code}
> The collection should default to view type 'hidden' but renders as 'table'. 
> (Same applies if we try to default to 'excel', in case the excel-addon is 
> available.)



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to