A developer creates a custom component. The component dialog includes the following two fields:
he component should display the first ‘X’ characters of the text entered in the ‘text’ input where ‘X’ is the number entered in the ‘charLimit’ input. If zero, or no value, is entered in the ‘charLimit’ input then the text shouldbe unaltered. The developer creates the following Sling Model to perform the trancation:
A Null Pointer Exception occurs if NO charLimit values is set in the component dialog. What should the developer do to resolve this issue?
Correct Answer:B
How should a developer configure the replication agent to flush the dispatcher cache for a newlyactivated page?
Correct Answer:A
The structure section of an editable template has a locked component.
What happens to the content of that component when a developer unlocks it?
Correct Answer:B
Too many pages are invalidated in the dispatcher cache when a page is published. What is most likely causing this issue in the dispatcher configuration?
Correct Answer:B
Refer to the following Client Library node structure.
+clientlibs
- jcr:primaryType="cq:ClientLibraryFolder"
- categories="[clientlibs.example]"
+ js.txt
- jcr:primaryType="nt:file"
+ css.txt
- jcr:primaryType="nt:file"
+ js
- jcr:primaryType="nt:folder"
- javascript1.js
- javascript2.js
The js.txt looks like javascript1.js javascript2.js
The JavaScript is NOT present in the Client Library when it is loaded. What should a developer do to resolve this issue?
Correct Answer:C