Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Adobe AD0-E134 Exam - Topic 2 Question 57 Discussion

A developer needs to create a new Title component. The requirements are:1. The layout must be the same as the Title core component2. The text property must have the page title as prefix (e.g., Page Title - )3. The component must be reusableWhich approach is recommended?
A) 1. Create a Proxy Component of Title core component 2. Create a Custom Sling Model that overrides the default behavior 3. Customize the component template B, 1. Create a custom component from scratch 2. Create a Custom Sling Model for the component that follows the requirement 3. Create a Model Exporter
C) 1. Create a Proxy Component from Title core component 2. Create a Custom Sling Model that overrides the default behavior

Adobe AD0-E134 Exam - Topic 2 Question 57 Discussion

Actual exam question for Adobe's AD0-E134 exam
Question #: 57
Topic #: 2
[All AD0-E134 Questions]

A developer needs to create a new Title component. The requirements are:

1. The layout must be the same as the Title core component

2. The text property must have the page title as prefix (e.g., Page Title - )

3. The component must be reusable

Which approach is recommended?

Show Suggested Answer Hide Answer
Suggested Answer: A

A proxy component is a site-specific component that inherits from a core component and allows customization of the component name, group, dialog, and behavior. A proxy component can refer to any version of the core component by changing the sling:resourceSuperType property. A custom sling model can be used to implement the logic for adding the page title as prefix to the text property. A component template can be used to define the layout of the component.


Contribute your Thoughts:

0/2000 characters
Rusty
25 days ago
Good point! But I prefer a simple functional approach for clarity.
upvoted 0 times
...
Herminia
1 month ago
What about using a higher-order component? It can enhance reusability.
upvoted 0 times
...
Nada
1 month ago
Agreed! Also, we can use props for the text prefix.
upvoted 0 times
...
Deja
3 months ago
I think using a functional component is best. It's reusable and clean.
upvoted 0 times
...
Alba
3 months ago
I think we should also consider adding props for customization.
upvoted 0 times
...
Patria
3 months ago
Sounds straightforward, but what about accessibility?
upvoted 0 times
...
Dominque
3 months ago
Wait, does the prefix mean we need to handle multiple languages?
upvoted 0 times
...
Lovetta
3 months ago
Totally agree, reusability is key!
upvoted 0 times
...
Brianne
4 months ago
Just extend the core Title component for layout consistency.
upvoted 0 times
...
Olen
4 months ago
Haha, I bet the developer is just hoping the core component doesn't change anytime soon! Better make that custom Title rock-solid.
upvoted 0 times
...
Kenneth
4 months ago
Hmm, the layout requirement might be tricky. Gotta make sure the custom component matches the core one exactly.
upvoted 0 times
...
Twanna
4 months ago
Agreed, a custom Title component is the way to go. Keeps the code modular and maintainable.
upvoted 0 times
...
Lashonda
4 months ago
The prefix requirement seems straightforward, but the reusability aspect is key. I'd go with a custom Title component.
upvoted 0 times
...
Stevie
4 months ago
I practiced something like this before, and I believe we should create a wrapper component that takes the title as a prop, but I’m not confident about the reusability aspect.
upvoted 0 times
...
Rodolfo
5 months ago
If I recall correctly, we should ensure that the new Title component maintains the same styling as the core one, but I’m a bit confused about how to implement the prefix dynamically.
upvoted 0 times
...
Gilberto
5 months ago
I remember a similar question about creating reusable components, and I think we might need to use props to pass the page title.
upvoted 0 times
...
Kristin
6 months ago
I think we need to extend the core Title component and override the text property, but I'm not entirely sure about the best way to handle the prefix.
upvoted 0 times
...
Michell
6 months ago
I've got a plan! I'll create a flexible component that can accept the page title as a prop and handle the prefix logic internally.
upvoted 0 times
...
Earleen
6 months ago
The prefix requirement is interesting. I'll need to think about how to handle that in a clean and efficient way.
upvoted 0 times
...
Malcom
6 months ago
Okay, this seems straightforward. I'll focus on making the component modular and easy to customize for different page titles.
upvoted 0 times
...
Kimberlie
6 months ago
Hmm, I'm a bit unsure about the reusability requirement. I'll need to make sure the component can be used in different contexts without any issues.
upvoted 0 times
...
Staci
6 months ago
I think I can handle this. I'll start by creating a new component and copying the layout from the core Title component. Then I'll add the page title prefix to the text property.
upvoted 0 times
Peggie
9 days ago
Good idea to copy the layout first.
upvoted 0 times
...
Jose
15 days ago
Don't forget to make it reusable!
upvoted 0 times
...
Tula
20 days ago
Sounds like a solid plan!
upvoted 0 times
...
...

Save Cancel