Hello,
I tried to play a bit around with the components, like:
UIComponent tempcomp2 =
context.getViewRoot().findComponent("frmmenu:nav1:nav111");
[...]
HtmlCommandNavigationItem comp = (HtmlCommandNavigationItem)tempcomp2;
comp.setActive(true);
[...]
But it did not work with my experience and I ran out of time.
#
Solution for me:
I went back to my old version but added SNAPSHOT-components only as far as
needed:
- JSF-Core 1.1.3
- Tomahawk 1.1.2
- Tomahawk-Sandbox 1.1.5-SNAPSHOT
- Tomahawk 1.1.5-SNAPSHOT-MODIFIED
After removing the <h:form> around <t:panelNavigation2> and going back to
the old
TilesViewHandler, my application works again as expected, including the
<autoupdatetable>, which works nicely.
Thanks & regards
Christian
Christian Kölle wrote:
| Thanks a lot for your response.
|
| My case: I am just using a static <t:panelNavigation2> Panel, just as
| in IRIAN's examples, i.e. the static version but with tiles. During
| migration
|| from 1.1.2. > 1.1.5-Snapshot, I had to wrap the <t:panelNavigation2>
|| with
| <form>, otherwise the stylesheets did not apply on the
| <t:panelNavigation2>.
|
| My project ends this month. So
| a.) I will check wether <autoupdatetable> works as intended. If not,
| I will go back to to tomahawk-1.1.2. I have no other need for
| 1.1.5-SNAPSHOT.
| b.) If <autoupdatetable> works as intended, I will try to retrieve
| HtmlPanelNavigationMenu.java from context and call methods on it, out
| of my code. Hopefully this works otherwise I will kick all this.
|
| Regards,
| Christian
|
| Madhav Bhargava wrote:
|| I faced a similar problem. I included the source code of tomahawk
|| and debugged it.
||
|| I found that the encodeBegin has a method which will restore opened
|| states. Now this method will not be called when the tree is
|| constructed afresh.
||
||
|| Check to see if the tree is getting constructed again. In my case I
|| had a panelNavigation2 inside a custom component and therefore it
|| made it easier for me to debug it. I am not sure what is the case
|| with you.
||
||| -----Original Message-----
||| From: Christian Kölle [mailto:[EMAIL PROTECTED]
||| Sent: Friday, January 26, 2007 2:13 AM
||| To: [email protected]
||| Subject: My 1.1.5 <t:panelNavigation2> looses its state.
|||
||
||| Hello,
|||
||
||| Prenotes:
||| I am not very familiar into the JSF-Myfaces deep-ends. I consider
||| myself more as a pure user.
|||
||
||| Problem:
||| Under certain conditions, my <t:panelNavigation2> looses its state.
||| More precisely: Sometimes I receive a page response, where the
||| panalNavigation is collapsed, also the previously selected sub-item
||| should stay selected.
|||
||
||| "Sometimes" and "under certain conditions" means, that the problem
||| only occurs when i write something into the managed beans from
||| within my java-code, i.e. like adding an error-message to the
||| context [context.addMessage("", errMsg);] or when I retrieve a
||| managed bean from application's variable resolver and amend the
||| content of the managed bean.
|||
||
||| The problem did not occur with
||| - tomahawk 1.1.2 and
||| - myfaces 1.1.3
||| With those versions mentioned, the <panelNavigation2> behaved
||| exactly as I expected.
|||
||
||| The problem occurs with
||| - tomahawk-1.1.5-SNAPSHOT and
||| - tomahawk-sandbox-1.1.5-SNAPSHOT
||| with either myfaces-core 1.1.3 or myfaces-core 1.1.5-snapshot.
|||
||
||| You might ask, why I use 1.1.5-SNAPSHOT? Well I want to have a try
||| on the Sandbox's <autoUpdateDataTable>. Therefore I need
||| tomahawk-sandbox-1.1.5-SNAPSHOT. For me it seems that I cannot use
||| tomahawk-sandbox-1.1.5-SNAPSHOT in combination with tomahawk-1.1.2,
||| where the <panelNavigation2> is defined.
|||
||
||| Any ideas, quick hacks?
||| Thanks in advance & regards
||| Christian