Hi Dan,

Thanks for your response. Hereby the new version of the email:

--

Hi all,

I've noticed some inconsistency in the UI caused by the .layout.json files.
When you've downloaded the json file from the running webapp, the UI
changes. I'll give an example to illustrate the issue.

There is a function in my app called newAttribute(), which you can see in
http://i.imgur.com/JKCDymt.png at square 1. Normally, the button appears
right next to the "Download Layout" button. By adding @MemberOrder(name =
"attributes", sequence = "1") the button will appear as shown in the
aforementioned png file at sqaure 1. At this point there was no
category.layout.json in the module.

To change the position of the changeName() action (in the same picture, but
at square 2) the json file had to be downloaded and edited. As soon as I
downloaded the json file and copied it to the category module, the UI
changed. The New Attribute button (square 1) was relocated next to the
"Download Layout" button.

I've tested it several times, but the json file overrules the generated UI.
It looks like the "Download Layout" action doesn't take the @MemberOrder
annotation into account while generating the json file.

Has anyone noticed this before?
-- 
Kind regards,

Yu Ri Tan


http://i.imgur.com/JKCDymt.png

2015-09-04 16:08 GMT+02:00 Dan Haywood <[email protected]>:

> Hi Yuri,
>
> the ASF mailing lists strip out any pictures/attachments, so could you post
> it to imgur.com (or elsewhere) and link to it?
>
> thx
> Dan
>
>
>
> On 4 September 2015 at 15:06, Yu Ri Tan <[email protected]> wrote:
>
> > Hi all,
> >
> > I've noticed some inconsistency in the UI caused by the .layout.json
> > files. When you've downloaded the json file from the running webapp, the
> UI
> > changes. I'll give an example to illustrate the issue.
> >
> > There is a function in my app called newAttribute(), which you can see in
> > the picture below [1]. Normally, the button appears right next to the
> > "Download Layout" button. By adding
> > @MemberOrder(name = "attributes", sequence = "1") the button will appear
> > as shown in the picture below [1]. At this point there was no
> > category.layout.json in the module.
> >
> > To change the position of the changeName() action [2] the json file had
> to
> > be downloaded and edited. As soon as I downloaded the json file and
> copied
> > it to the category module, the UI changed. The New Attribute button [1]
> was
> > relocated next to the "Download Layout" button.
> >
> >
> >
> > I've tested it several times, but the json file overrules the generated
> > UI. It looks like the "Download Layout" action doesn't take the
> > @MemberOrder annotation into account while generating the json file.
> >
> > Has anyone noticed this before?
> >
> > --
> > Kind regards,
> >
> > Yu Ri Tan
> >
> >

Reply via email to