Uploaded image for project: 'Isis'
  1. Isis
  2. ISIS-1698

CollectionLayout.defaultView not honored

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.15.0
    • Fix Version/s: 1.16.0
    • Component/s: Core
    • Labels:
      None

      Description

      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:

          @javax.inject.Inject
          SimpleObjectRepository simpleObjectRepository;
      
          @CollectionLayout(defaultView="hidden")
          public List<SimpleObject> getAll(){
          	return simpleObjectRepository.listAll();
          }
      

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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hobrom Andi Huber
                Reporter:
                hobrom Andi Huber
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: