This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
now every time I click command link, Constructor for EquityAccountMenu gets called and accountList gets fetched from the database, even if the a4j:repeat is not reRendered by the command link.
EquityAccountMenu is request scope bean
How can I avoid unnecessary calling of accountList?
When you clicked the link, <a4j:commandLink> will reload the whole page that's why EquityAccountMenu is being called again. So, instead of putting <a4j:commandLink> inside <a4j:form>, put it inside <a4j:region> instead. After all, <a4j:form> there is useless because links are automatically GET methods.