Answers to last comment:-
ContentStack
-singleView is only significant if you have a single column stack which must contain the menu. Otherwise, you can have as many columns in your layout that you want or have room for. Samples in mobitest only show this attribute in the singleView examples since it defaults to "false". No need to have it in the markup for anything other than a singleView layout.
ContentPanel
-menuOrHome denotes the panel you wish to configure with the "menu" button option on the contentNavBar. If a panel is denoted this, then the menu (or home or whatever you want to call it), will automatically be the selected id when pressing it. It is necessary if you want to always be able to find "home/menu".
LayoutMenu
-agreed on rename which I had proposed several weeks back, but then everyone else deemed it was not necessary at the time.
-good idea to allow the single feature of the item.
-perhaps a defaultPane attribute would be better than a selected one?
-was considering allowing the contentStack to do the entire thing and just have the menuItems declared within it, but wasn't sure how to accomplish it. (not having the menu component but an attribute that would determine the menu was to be used with it and take all attributes from the contentStack and it's children).
contentNavBar
-If your panel is designated as menuOrHome="true" then the menu button will always take you there.
- perhaps another type of button (navButton?) that would allow you to go quickly to any other page (I was considering previous as a button here but was waiting for your feedback
UpdatedTests.
-will take a look but you may want to consider the notes above and then revise tests again, so let me know. Test on layout/layoutMenu2.xhtml definitely sounds like something that needs to be fixed.
I've taken some time to review the LayoutMenu components and here are my findings.
ContentStack
consistently
ContentPanel
of a selected pane, currentId and selectedPane respectively which are used to define the currently
selected pane.
LayoutMenu
consistent with the series pattern.
in the view without an Bean value binding.
reference by Id has the same value binding.
ContentNavBar
"menuButtonTarget" is no longer respected and navigation is always to the "menuOrHome" definition.
refreshign the page shows the correct page.
I would suggest targetContentPaneId
Updated Tests
takes the user to panel4. The panel 4 contentPane has a child contentNavbar with a
menuButtonTargetId="panel3". However when clicked on the menu panel is shown.
);
back button should point back to panel3 which doesn't seem to work.