Hi Johan,

Use the @Render(Type.EAGERLY) annotation [1] to eagerly load the collection

[1] http://isis.apache.org/reference/recognized-annotations/Render.html

Cheers,

Jeroen


On Fri, Aug 8, 2014 at 10:32 AM, <[email protected]> wrote:

> Hi,
>
>
>
> I am displaying a list that shows default collapsed in the Wicked Viewer.
> How can I show it default expanded?
>
>
>
> I use the follwing code:
>
>
>
>
>             // {{ Profiles (Collection)
>
>             @Persistent(mappedBy = "owner", dependentElement = "false")
>
>             private SortedSet profiles = new TreeSet();
>
>
>
>             @MemberOrder(sequence = "1")
>
>             public SortedSet getProfiles() {
>
>                 return profiles;
>
>             }
>
>
>
>             public void setProfiles(final SortedSet collectionName) {
>
>                 this.profiles = collectionName;
>
>             }
>
>             // }}
>
>
>
>         And the for the list itself:
>
>
>
>         public class Profiles extends AbstractFactoryAndRepository {
>
>
>
>             @ActionSemantics(Of.SAFE)
>
>             public List allUsers() {
>
>                 return allInstances(Profile.class);
>
>             }
>
>
>
>         }
>
>
>
>
>
>

Reply via email to