Rich faces panel menu item rendering same page - jsf-1.2

Rich faces panel menu item.There are 4 menus. Of that 4th menu contains a menu item where action=”#{Test.t1}”.Managed Bean : Test /// Property : t1 [getters & setters]. In t1[getter], loads contents of 4th page.
PROBLEM:
on clicking 4th menu, 4th menu contents loads. Then on clicking 1st or 2nd or 3rd menu again 4th menu’s page renders but not 1st or 2nd or 3rd.
Tried:
1. actionListener to menuItems
where I tried to redirect to some other page on clicking 1st or 2nd or 3rd menu items.
Code in action listener: FacesContext.getCurrentInstance().getExternalContext().redirect("test1.faces");
What happened: Does not redirect. What expected: Should redirect before action is performed.

Related

How to programmatically push a new page modally on top of a children of a tabbed page in xamarin forms

I'm having a requirement where I click a button then I need to initialise the tab and its children, and also I need to push a new page on top of this, which shouldn't show the tabs below, and when I press back it should go back to the previous tabbed page with the children being active from where I navigated from
I know that I can do this by
CurrentPage = Children[2];
This would give me the result of navigating to the specific child of a tabbed page, but how can I navigate to a page further is something I'm not able to figure out

getting information from a different view in javafx

i have a main view with a combo box and its controller, and a second view which gets loaded when a button is clicked on the main view.
the second view contains a button and a label and has its different controller.
what i want to do is, when the button on the second controller is clicked, the selected item on the combo box on the main view should be displayed on the label..
so that when i go back and change the item on the combo box and go back and click the button on the second view ,the text on the label would be changed to the currently selected item.
any help..???
thanks

navigation item not showing on first time

I am using navigation controller for each tab, and the first controller in each tab not showing any item in the navigation, but if I click on cell and return back the items on the navigation shows normally.
Why?
Thanks,

display parent menu name and corresponding sub menu name in the sub menu pages in wordpress

I created parent and sub menus in word press.
Parent menus are custom links and don't have pages.
Sub menus are pages.
The menus are displayed in header area horizontally.
On hover the sub menus are displaying.
when clicking the sub menu,the corresponding page opens.
On that page i need to display corresponding parent menu and siblings of sub menu in left side of the page.
On the "About Us" page, the left-side navigation has been created manually.
I'd like to have similar submenus on other parts of website, too (About NDT, Membership etc.). How can I achieve that?
For example, this is About NDT section - note that on the left side we have "About Us" contents.
What I need is to have "About NDT" contents there - as annotated on image.
thanks

flex tab navigator

I have a flex application mxml file with 3 tabs.the first tab having the link button to select the value in the 3rd tab.
Suppose, i have a link button in first atab. And the 3rd tab contains the combobox with values:"basic", "advanced". by default the vaule is displaying "default".
Wheni select the linkbutton on the first tab, the "advanced"should be displayed in the comboBox on the 3rd tab.
and the problem is , when click on the first tab link button , at that time the 3rd tab is not initialized.So it is not displaying the "advanced" in the comboBox. selecting the 2nd time on the link button it is displaying fine. But not first time.
code: thirdTab.comboBoxId.selectedItem.data = 1;
Please help me out if need any changes
A tab is initialized when it is activated the first time, so your code should not work.
You can separate data model and bind all the UI controls to the model.
Add an event listener to the 3rd tab that is handled by the parent of the TabNavigator. The handler for that event should be able to get the value from the first tab (which may be stored in the common parent) and return it to the 3rd tab so that the ComboBox there may be correctly set. Listen for the creationComplete event from the 3rd tab.
The dirty way is setting the creationPolicy property of your tab navigator to ContainerCreationPolicy.ALL. This will insure that all the tabs are initialized at once.
The right way is separating the model from the view and using binding as Yuras says.

Resources