Expand my Community achievements bar.

Nomination window for the Adobe Community Advisor Program, Class of 2025, is now open!
SOLVED

Task - Create a complex navigation component with java helper

Avatar

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

Avatar

Correct answer by
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

Avatar

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>

 

Avatar

Level 2

DuttAbhishek_0-1631959947447.png

it is there 

Avatar

Correct answer by
Level 10

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

 

kishorekumar14_0-1631960983903.png

 

Avatar

Level 2

DuttAbhishek_0-1631966824994.png

got the desired output thanks for your help