The managed beans siteRequirementBean & requirementDisplay both are in request scope.
The datatable has two columns. In the first column there 3 labels which displays some information. In the second column there is a command link. This command link is binded with an action method of managed bean. The page gets displayed with all the components including the commandlink , but on clicking the command link the action method is not getting called. The page gets refreshed & comes back again.
Infact I tried putting in arbitrary string in the action method�s name attribute of command link. There was no error & the page came back again on clicking the link. If the same command link is kept outside data table then the action method gets called.
Command Button also shows the same behavior as command link.
change your managed bean scope from "request" to "session"
MCSD, SCJP, SCWCD, SCBCD, SCJD (in progress - URLybird 1.2.1)
Joined: May 23, 2006
Thanks a lot Richard for your reply !!!
I changed the scope of bean from request to session. Now the action method is getting called. But I found that both the beans(siteRequirementBean & requirementDisplay) needs to be in session scope. But the command link is only calling the action method of requirementDisplay bean. So when only requirementDisplay is kept in session scope, action method is not getting called. Also my whole application is built on the top of logic that the bean would be in request scope. So changing the scope of bean from request to session would be night mare & real problem. So can you please tell me is there any other way out of it� Also one of my page is having the data table with the bean in request scope & it's calling the action method without any problem. But I am unable to figure out as what is getting wrong here....