Honestly I am not sure understand what you are trying to accomplish. I will say one thing is you need to change your calls to reqest.getSession with using jut request.getAttribute and request.setAttribute. Using session attributes for sharing objects across components is definitely not best practice.
Why do you have both an inheritance paragraph system and a normal paragraph system embedded in your first component? Are you assuming that users will drop your second component in the paragraph system and then those components will drive the contents of your drop down? Or is your navigation supposed to be based on the content tree?
Thanks for your reply.
Yes, I am going to change the request.getSession to request.getAttribute.
You are right with respect to the paragraph system. Users will drop the sub item component and add content that would get dispalyed in the sub menu. Iparagraph is for the main Menu item. As an example Shoes would be the main menu item and when a user hovers on it I would want to display all the sub menu items in the navigation bar which would be Nike, Adidas, New Balance, Sketchers etc.. My question is lets say if there are multiple items in the navigation bar "Shoes" "Shirts" "Pants" when I add content in the sub items how would I link the correct sub items with "Shoes" "Shirts" and "Pants". I hope this clears my requirement.
Awaiting your reply
Did you figure out this issue?
I am also having the same kind of requirement and try to resolve this.
Could you please send me the code snippet to my email id email@example.com, if you have working code.