composite-multifield - Order of fields | Community
Skip to main content
Level 4
Jun 14, 2017 11:37 AM UTC
Solved

composite-multifield - Order of fields

Hello.

I’m using AEM 6.2 SP1 CFP2.

I’m using the composite-multifield in a dialog with attribute acs-commons-nested="NODE_STORE". https://github.com/Adobe-Consulting-Services/acs-aem-commons/tree/master/content/src/main/content/jcr_root/apps/acs-commons/touchui-widgets/composite-multifield

I can see the nodes in the CRXDE, and the order in the JCR is always the same than in the dialog, which is perfect. But, when I use the data-sly-list HTL statement, the order of the elements in the HTL list is different.

I don’t know if the problem is with the composite-multifield or with HTL data-sly-list (or with my implementation).

Anybody with the same issue? Any idea?

Any help would be appreciated.
Kind regards,

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Julio_BaixauliAccepted solution
Level 4
Jun 21, 2017 10:33 AM UTC

The problem was related to the use of oak:Unstructured nodes, which are not ordered nodes. I changed it to nt:unstructured nodes and the problem was solved.

Thank you very much!

3 replies

Julio_BaixauliAuthorAccepted solution
Level 4
Jun 21, 2017 10:33 AM UTC

The problem was related to the use of oak:Unstructured nodes, which are not ordered nodes. I changed it to nt:unstructured nodes and the problem was solved.

Thank you very much!

Translate
shivadixith
Level 2
Jun 20, 2017 6:58 PM UTC

I believe he already is or is using a collection that doesn't store elements in insertion order.

Translate
smacdonald2008
Level 10
Jun 14, 2017 5:37 PM UTC

If you have  backed Java code and a List, like an ArrayList, you can use app logic to order the list.

Translate