The developer is presented with a component "Component A" which inherits from a component "Component B". The dialog of C

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

The developer is presented with a component "Component A" which inherits from a component "Component B". The dialog of C

Post by answerhappygod »

The developer is presented with a component "Component A" which inherits from a component "Component B".
The dialog of Component A on path ../cq:dialog/../../items looks like:

The dialog of Component B on path ../cq:dialog/../../items looks like:

The requirement for the dialog is that the "Align text" field is shown after the "Title" field.
What should the developer do without changing Component B?
The Developer I 1
The Developer I 1 (25.91 KiB) Viewed 45 times
The Developer I 2
The Developer I 2 (43.99 KiB) Viewed 45 times
A. Move the align node from Component A to Component B and order them according the requirements.
B. Extend Component B with the functionality of Component A.
C. Add the property sling:orderBefore="description" to the align node.
D. Move all nodes under the item node from Component B to Component A and order them according the requirements.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!

This topic has 1 reply

You must be a registered member and logged in to view the replies in this topic.


Register Login
 
Post Reply