Hello Greg:

  I solved the problem. This happens if the state saving method is
client and if there is a h:form tag surrounding the panelnavigationItems
tag. But if I remove the h:form tag, then the javascript was not getting
properly generated; i.e, when I click on a parent navigation , I will
get a javascript error. I tried with tomahawk-1.1.15 snapshot and it is
working fine. So finally, I have for the dynamic panelnavigation2
working properly with client side state sacing with myfaces 1.1.13 and
tomahawk 1.1.15 snapshot.


-- thanks and regards,

-- Kannan  

-----Original Message-----
From: Greg Reddin [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 13, 2006 3:58 AM
To: MyFaces Discussion
Subject: Re: Dynamic PanelNavigation2 - Items getting duplicated on post


On Sep 7, 2006, at 11:17 AM, Kumar, Abhilash (Gok) wrote:

>   I have a dynamic panelnavigation2 in my application. I am using 
> faceletes for templating and the menu page is in the template. When I 
> request the template child, the menu and the template child page is 
> loading correclty. But when I submit the template child page, the menu

> ites are getting duplicated. If I submit again, the menu items be 
> duplicated again. I have observed that before calling my value method 
> of the menu itself, the items are populated. This behaviour will 
> appear only when I submit the page. Am I missing something ? Any 
> pointers will be really helpful.

I don't have an answer to your question, but just to confirm you're not
hallucinating I've seen the exact same behavior.  I was populating a
panelNavigation2 with a list of NavigationMenuItem objects.  If I ever
did a postback request (where the requesting page was re-rendered) the
menu was duplicated.  My environment is the same as yours.  I fixed the
problem by switching to a non-dynamic list of
t:commandNavigation2 tags.

If I find a better answer I will let you know.

Greg


Reply via email to