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

SOLVED

Task - Create a complex navigation component with java helper

DuttAbhishek
Level 2
Level 2

Hi community members ,

I have been following developer guide for learning purposes and I am on the following task :

DuttAbhishek_0-1631953653068.png

and I have pasted the code as mentioned in it and my structure in crxde is the following :

DuttAbhishek_1-1631953792181.png

Here are  the code snapshots:

DuttAbhishek_2-1631953878474.pngDuttAbhishek_3-1631953903152.png

According to the guide my desired output should be this -

DuttAbhishek_4-1631953985247.png

but I am getting this :

DuttAbhishek_5-1631954010896.png

I am not able to figure out what I am doing wrong here .

Can someone help me to figure out ?

Thanks in Advance 

 

1 Accepted Solution
kishorekumar14
Correct answer by
Level 10
Level 10

Please check your TopNav.Java package name. It should be apps.training.components.structure.site_topnav;

 

kishorekumar14_0-1631960983903.png

 

View solution in original post

4 Replies
kishorekumar14
Level 10
Level 10

Hi @DuttAbhishek ,

 

Could you please check if you have included this sitenav in your header.html ?

 

<div data-sly-resource="${'site-topnav' @ resourceType='training/components/structure/site-topnav'}"></div>

 

kishorekumar14
Correct answer by
Level 10
Level 10

Please check your TopNav.Java package name. It should be apps.training.components.structure.site_topnav;

 

kishorekumar14_0-1631960983903.png