You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@isis.apache.org by Dan Haywood <da...@haywood-associates.co.uk> on 2015/02/04 07:58:41 UTC

Re: render contributed action eagerly

Just got round to looking at this... can't reproduce the problem, I'm
afraid.

Well, I did find a slight issue... the default value for
@CollectionLayout#renderType() was set to EAGERLY, should've been LAZILY.
Fixed that.

Anyway, what you should see is:

- if the xxx.layout.json specifies the renderType, then this will be used
[1]
- otherwise, will use @CollectionLayout#renderType(), if present (and will
default to LAZILY if the renderType attribute is not specified)
- otherwise, if there is no @CollectionLayout, then will look at the
deprecated @Render.  That one defaults to EAGERLY.

Double check with the latest archetype (I just recreated it), see if you
can reproduce with that.  Give the build 30 mins or so from this email to
do its thang.

Thx
Dan





[1]
https://github.com/apache/isis/blob/94529f19bef246cadc667344873b382f16c751e6/example/application/todoapp/dom/src/main/java/dom/todo/ToDoItem.layout.json#L175




On 29 January 2015 at 12:01, <Jo...@filternet.nl> wrote:

> Hi Dan,
>
>
>
> The deprecated works correctly indeed.
>
>
>
> grtz Johan
>
>
>
>
> hmm, that looks correct.
>
> I wonder if there's a bug with that annotation.
>
> If you replace @CollectionLayout(render=...) with the deprecated
> @Render(Type.EAGERLY), does it work?
>
>
>
> On 29 January 2015 at 10:43,  wrote:
>
> > Hi,
> >
> >
> >
> > Is there a way to render the (list) result of a contributed action
> eagerly?
> >
> >
> >
> > I tried:
> >
> >
> >             @Action(semantics=SemanticsOf.SAFE)
> >
> >             @CollectionLayout(render=RenderType.EAGERLY)
> >
> >             public List showProfileMatches(Profile demandProfile) {
> >
> >
> >
> >         [1] line 39
> > grtz Johan
> >
> >
> >
> > [1]
> >
> >
> >
> https://github.com/johandoornenbal/matching/blob/master/dom/src/main/java/info/matchingservice/dom/Match/ProfileMatchingService.java
> >
> >
> >
> >
> >
>
>
>
>