Search
Recent Topics
Action links on the menubar component
Forum Index
->
Menu
Author
Message
06/18/2007 10:57:03
Subject:
Action links on the menubar component
benoutram
Joined: 06/18/2007 00:00:00
Messages: 1
Offline
Hello
I have a menubar component declared using e:menubar.
Within this I've got menu cells defined for each of the menu components.
Instead of using actionListener events I want to use the action parameter as follows.
<e:menucell value="Log Off" action="#{userBean.logoutAction}"/>
In userBean logoutAction is declared as follows:
public String logoutAction() { System.out.println("got here!"); return "logout"; }
In faces-config.xml I have the following navigation rule to direct the user to login.jsp.
<navigation-rule> <description>Global navigation rules.</description> <from-view-id>*</from-view-id> <navigation-case> <from-outcome>logout</from-outcome> <to-view-id>/login.jsp</to-view-id> </navigation-case> </navigation-rule>
When the menu cell is clicked the action is called and I see the print statement "got here!". However the page does not redirect. Any ideas? Thanks.
06/19/2007 12:20:43
Subject:
Re:Action links on the menubar component
stefan.itu
Simplica Team
Joined: 06/12/2007 00:00:00
Messages: 4
Offline
In our current version navigation rules (changing page) are not working using an ajax request. You have to set ajax="false" to that menu cell since by default it is true.
Simplica Support.
Forum Index
->
Menu
Go to:
Select a forum
General
DataTable
Tree
Menu
Tab
Layout
Window
Calendar/Date Input
Lookup/Suggest Input
LIMS News App
Powered by
JForum 2.1.7
©
JForum Team
Home
|
News
|
Contact
|
About
|
License
|
Privacy
|
Documentation
Copyright © 2012 Simplica Corporation. All rights reserved.