Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Pattern Detector- content.area.violation

simranjkm
Level 1
Level 1

While performing aem 6.3 to 6.5 in-place upgrade activity, I have run Pattern Detector. As most of the things have been greyed out under /libs and can't be overlayed/inherited. I have found the below-mentioned issue. Can anyone help me with this?   

 

Pattern/ Type: content.area.violation

Pattern/ Code: CAV

Item/ Message: 

Untitled.png

 

4 Replies
Theo_Pendle
Community Advisor
Community Advisor

Hi,

What do you need help with specifically? As you mentioned, you currently are overriding nodes that should not be overridden. The CAV page describes the final area:

/**
  * Defines a node as final, so that it cannot be overlaid
  * or inherited by sling:resourceSuperType.
  */
 [granite:FinalArea] mixin

So the Pattern Detector is warning you that you are violating this mixin on the node at /apps/xxx/granite/ui/components/coral/foundation/form/textfield by overriding /libs/granite/ui/components/coral/foundation/form/textfield. I assume you've done this to create a customized TextField widget?

 

simranjkm
Level 1
Level 1

Hi,

 

Yes, it was done to customize Textfield component. As overlay is not allowed anymore for this component is there any alternate way to achieve the same to make customization work.

Theo_Pendle
Community Advisor
Community Advisor
Out of curiosity, how did you customize it?