Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JSF
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
JSF
<rich:menuItem> unable to fire actionListener
Srinivasan thoyyeti
Ranch Hand
Posts: 558
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hello there,
Rich Faces version: 3.3.1
JSF
: 1.2
Problem: actionListener could not be fired on click of menu Item. Please suggest an ideas.
1.menu.xhtml: <rich:menuItem value="#{messages.view}" action="/sample.xhtml" actionListener="navigationTracker.trackLink" /> 2. Listener @Name("navigationTracker") @Scope(ScopeType.CONVERSATION) public class NavigationTracker { @Out(scope=ScopeType.CONVERSATION, required=true) private String breadcrumb; /** * @param actionEvent */ public void trackLink(ActionEvent actionEvent) { breadcrumb = getBreadcrumb(actionEvent.getComponent()); } }
Thanks & Regards, T.Srinivasan
SCWCD 1.4(89%), SCJP 5.0(75%)
Srinivasan thoyyeti
Ranch Hand
Posts: 558
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I did a silly mistake in writing EL expression.
error
actionListener="navigationTracker.trackLink"
corrected:
actionListener="#{navigationTracker.trackLink}"
Thanks & Regards, T.Srinivasan
SCWCD 1.4(89%), SCJP 5.0(75%)
CAUTION! Do not touch the blades on your neck propeller while they are active. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
JSF-Facelets Dynamic Navigation Problem
Multiple buttons... how does the actionlistener handle it?
JSF UiComponent help required
javax.el.MethodNotFoundException
Trouble with ContextMenu and ModalPanel of RichFaces
More...