この会話は、活動がないためロックされています。新しい投稿を作成してください。
この会話は、活動がないためロックされています。新しい投稿を作成してください。
Hi Team,
We are using Sling context aware config. But we want to arrange order.
for eg:
@Property(label = "Enter the button Label", description = "Button Label")
String buttonLabel();
@Property(label = "Enter the title1, description = "Enter the title1")
String title2();
@Property(label = "Enter the title, description = "Enter the title")
String title();
@Property(label = "Enter the title1, description = "Enter the title1")
String title1();
When we deploy squence is random. How to show title as first attribute then title1, title2, buttonlabel?
TIA
Naina
解決済! 解決策の投稿を見る。
表示
返信
いいね!の合計
You can use "order=n" to @property. Below is the example:
@Property(label = "Enter the title, description = "Enter the title", order = 1)
String title();
@Property(label = "Enter the title1, description = "Enter the title1",order = 2)
String title1();
@Property(label = "Enter the title1, description = "Enter the title1",order = 3)
String title2();
@Property(label = "Enter the button Label", description = "Button Label",order = 4)
String buttonLabel();
Refer https://sunsushil.wordpress.com/2021/05/12/context-aware-configuration-in-aem/ for more details.
You can use "order=n" to @property. Below is the example:
@Property(label = "Enter the title, description = "Enter the title", order = 1)
String title();
@Property(label = "Enter the title1, description = "Enter the title1",order = 2)
String title1();
@Property(label = "Enter the title1, description = "Enter the title1",order = 3)
String title2();
@Property(label = "Enter the button Label", description = "Button Label",order = 4)
String buttonLabel();
Refer https://sunsushil.wordpress.com/2021/05/12/context-aware-configuration-in-aem/ for more details.
Its working.
Thanks
Hi @naina01 ,
you can use the "order" attribute at the annotation level where it will define the
ex:
@Property(label = "Enter the button Label", description = "Button Label", order=3)
String buttonLabel();
@Property(label = "Enter the title1, description = "Enter the title1", order=2)
String title2();
@Property(label = "Enter the title, description = "Enter the title")
String title();
@Property(label = "Enter the title1, description = "Enter the title1", order=1)
String title1();