• Post Reply Bookmark Topic Watch Topic
  • New Topic

ActionListener does not fire on commandLink

 
sneha patil
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using primefaces...I have simple code of commanlink....


and inside actionlistener



but actionListener does not get called...

please help me..
Thanks...
 
Mark Reyes
Ranch Hand
Posts: 426
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you try removing the evt in this line?



Also check the scope of your bean.
 
sneha patil
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for reply mark..
I tried by removing "evt" from line..but still it does not fire action listener..And my bean is in session scope...
 
Sachin Yewale
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How did you remove evt from the line ?
use following code for that:


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 .

 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!