AW: PanelNavigation2 not saving state - solved

2005-12-13 Thread Jan








Hi Thomas,



finally I got it working.
I thought, if even you cant think of what might be the failure, it has
to be something you havent seen yet.

.so  I had
a look into the web.xml and found the missing part:



context-param


param-namejavax.faces.STATE_SAVING_METHOD/param-name


param-valueclient/param-value


description


State saving method: client or server (= default)


See JSF Specification 2.5.2


/description


/context-param



Now it works like it
should. 



Nevertheless thank you
for your support :)



Cheers - Jan










AW: PanelNavigation2 not saving state

2005-12-12 Thread Jan
Hi Mario,

I don't use redirect/ in my navigation rules.

I already thought it might be the use of tiles:insert, but I already moved
the panelNavigation2 tags to the main template, so the panelNavigation would
only be aware of the same jsp (main template). But this didn't change
anything.
Or does panelNavigation2 generally not work with tiles?

Any more ideas? 

Jan


-Ursprüngliche Nachricht-
Von: Mario Ivankovits [mailto:[EMAIL PROTECTED] 
Gesendet: Montag, 12. Dezember 2005 15:02
An: MyFaces Discussion
Betreff: Re: PanelNavigation2 not saving state

Hi Jan!
 But if the outcome String in the action of the backingbean matches an
 navigation-rule, faces changes (redirect/forwards...whatever) the *.jsp /
 *.jsf as it should do. Unfortunately panelNavigation2 loses its state and
 all nodes which need to stay opened are closed.
Do you use redirect / in your navigation rules?
Then this is the cause.

---
Mario





AW: PanelNavigation2 not saving state

2005-12-12 Thread Jan








Hi Thomas,



clientId ??? 



Do you mean the id of the
tags ?

Or did I miss a chapter ?
 what is clientId ? and where do I configure it?



t:div id=subnavigation_outer styleClass=subnavigation_outer

        t:div id=subnavigation_inner styleClass=subnavigation_inner

    t:panelNavigation2 styleClass=mypage id=nav1 layout=list itemClass=mypage activeItemClass=selected openItemClass=selected 

            t:navigationMenuItems id=navitems value=#{SubNavigationBackingBean.panelNavigationItems} /

          /t:panelNavigation2

        /t:div

   
  /t:div











Von: Thomas Spiegl
[mailto:[EMAIL PROTECTED] 
Gesendet: Montag, 12. Dezember
2005 16:01
An: MyFaces Discussion
Betreff: Re: PanelNavigation2 not
saving state





Jan,

panelNavigation2 is statefule and it works with tiles.
Does your panelNavigation still have the same clientId after navigation to
another page?

Thomas





On 12/12/05, Jan
[EMAIL PROTECTED]
wrote: 

Hi Mario,

I don't use redirect/ in my navigation rules.

I already thought it might be the use of tiles:insert, but I already
moved 
the panelNavigation2 tags to the main template, so the panelNavigation would
only be aware of the same jsp (main template). But this didn't change
anything.
Or does panelNavigation2 generally not work with tiles? 

Any more ideas?

Jan


-Ursprüngliche Nachricht-
Von: Mario Ivankovits [mailto:[EMAIL PROTECTED]
]
Gesendet: Montag, 12. Dezember 2005 15:02
An: MyFaces Discussion 
Betreff: Re: PanelNavigation2 not saving state

Hi Jan!
 But if the outcome String in the action of the backingbean matches an
 navigation-rule, faces changes (redirect/forwards...whatever) the *.jsp / 
 *.jsf as it should do. Unfortunately panelNavigation2 loses its state and
 all nodes which need to stay opened are closed.
Do you use redirect / in your navigation rules?
Then this is the cause. 

---
Mario









-- 
http://www.irian.at

Your JSF powerhouse - 
JSF Consulting, Development and
Courses in English and German 

Professional Support for Apache MyFaces