Task - Create a complex navigation component with java helper | Community
Skip to main content
DuttAbhishek
Level 2
September 18, 2021
Solved

Task - Create a complex navigation component with java helper

  • September 18, 2021
  • 1 reply
  • 1133 views

Hi community members ,

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

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

Here are  the code snapshots:

According to the guide my desired output should be this -

but I am getting this :

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

Can someone help me to figure out ?

Thanks in Advance 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Kishore_Kumar_

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

 

 

1 reply

Kishore_Kumar_
Level 9
September 18, 2021

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>

 

DuttAbhishek
Level 2
September 18, 2021

it is there 

Kishore_Kumar_
Kishore_Kumar_Accepted solution
Level 9
September 18, 2021

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