While page is reload, keep calling action method.
I only want to call this action method when link is clicked.
<li role="presentation">
<a role="menuitem" tabindex="-1" href="ViewAMC.xhtml" action="# {treeTableManagedBean.testingActionListener()}" >View AMC</a>
</li>
public void testingActionListener()
{
System.out.println("testing action listener!");
flag = false;
}