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
ActionListener does not fire on commandLink
sneha patil
Greenhorn
Posts: 15
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I am using primefaces...I have simple code of commanlink....
<p:commandLink id="ajax" ajax="true" actionListener="#{studentAdmissionFormAction.copyAddress(evt)}" style="margin-right:20px;"> <h:outputText value="Temporary address as permanent address" /> </p:commandLink>
and inside actionlistener
public void copyAddress(ActionEvent evt) { System.out.println("inside action listener"); }
but actionListener does not get called...
please help me..
Thanks...
Mark Reyes
Ranch Hand
Posts: 426
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Can you try removing the evt in this line?
actionListener="#{studentAdmissionFormAction.copyAddress(evt)}"
Also check the scope of your bean.
Sean Clark ---> I love this place!!!
Me ------> I definitely love this place!!!
sneha patil
Greenhorn
Posts: 15
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Thanks for reply mark..
I tried by removing "evt" from
actionListener="#{studentAdmissionFormAction.copyAddress(evt)}"
line..but still it does not fire action listener..And my bean is in session scope...
Sachin Yewale
Greenhorn
Posts: 21
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
How did you remove evt from the line ?
use following code for that:
actionListener="#{studentAdmissionFormAction.copyAddress}"
if still not work ckeck where the component in the h:form or not
else check if there are any errors occurs by attaching h:message for the given component .
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
?
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
DataTable Sortby does not work
Selected Row in primefaces
Disabling a cell in Datagrid
GUI classes, implementing ActionListener.
Inner class accessing outer class object
More...