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

webdev91
webdev91
Online

Badges

Badges
6

Accepted Solutions

Accepted Solutions
0

Likes

Likes
4

Posts

Posts
5

Discussions

Discussions
0

Questions

Questions
5

Ideas

Ideas
0

Blog Posts

Blog Posts
0
Top badges earned by webdev91
Customize the badges you want to showcase on your profile
Re: Value conversion using ValueMap vs standard java methods
Avatar
Validate 1
Level 2
webdev91
Level 2

Likes

4 likes

Total Posts

5 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Give Back 3
Boost 3
Boost 1
Give Back
View profile
webdev91
- Adobe Experience Manager
Hi @BrianKasingli Thank you very much for your excellent explanation.Now, it makes sense why Adobe decided to use @ScriptVariable in this particular Breadcrumb case, as they can handle multiple conditions in a one-liner.

Views

17

Like

1

Replies

0
Re: Value conversion using ValueMap vs standard java methods
Avatar
Validate 1
Level 2
webdev91
Level 2

Likes

4 likes

Total Posts

5 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Give Back 3
Boost 3
Boost 1
Give Back
View profile
webdev91
- Adobe Experience Manager
@Jörg_Hoh Thank you for your quick response.In which case we should use @ValueMapValue over @Inject? or should we always use @Inject annotation as a best practice?Note: I have edited my question a bit. I was talking about @ValueMapValue annotation

Views

60

Like

1

Replies

0
Value conversion using ValueMap vs standard java methods
Avatar
Validate 1
Level 2
webdev91
Level 2

Likes

4 likes

Total Posts

5 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Give Back 3
Boost 3
Boost 1
Give Back
View profile
webdev91
- Adobe Experience Manager
I was looking into aem-core-wcm-components GitHub repo and noticed the different patterns for converting string to integer or boolean. Below is the code snippet from BreadcrumpImpl.java. @ScriptVariable private ValueMap properties; private boolean showHidden; private int startLevel; @PostConstruct private void initModel() { startLevel = properties.get(PN_START_LEVEL, currentStyle.get(PN_START_LEVEL, PROP_START_LEVEL_DEFAULT)); showHidden = properties.get(PN_SHOW_HIDDEN, currentStyle.get(PN_SHOW_...

Views

70

Likes

0

Replies

4
Re: Storybook and/or Component Library
Avatar
Validate 1
Level 2
webdev91
Level 2

Likes

4 likes

Total Posts

5 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Give Back 3
Boost 3
Boost 1
Give Back
View profile
webdev91
- Adobe Experience Manager
Hi @milind_bachani As you mentioned, we can implement the storybook without AEM dependency, and that's what I am doing right now. I am creating stories for a custom component by copying HTML code from publish mode and adding controls to a story to make it more interactive.I was just confused with the line mentioned in the doc that is "...you can install it and store your Storybook artifacts within the ui.frontend module. Then, when ready for testing within AEM, they can be deployed as ClientLibs...

Views

55

Likes

2

Replies

0
Storybook and/or Component Library
Avatar
Validate 1
Level 2
webdev91
Level 2

Likes

4 likes

Total Posts

5 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Give Back 3
Boost 3
Boost 1
Give Back
View profile
webdev91
- Adobe Experience Manager
I am looking for a solution to document a custom component, more like a Component Library or Storybook for the author team and developers. Searching for the same, I came across the ui.frontend module guide on experience league. The first thing is regarding Component Library, it has mentioned that "we could use Component Library and work at the component level rather than the page level." Is there any document/guide that shows how to implement this?Link to section Using Webpack Static Development...

Views

76

Likes

0

Replies

2
Likes given to
Likes from