you could use EL expressions in reRender and point it to list of strings or comma separated single string of ids. then generate the needed list using parameters in your listeners.
I used the way as Ilya suggested. it's working :)
Thanks all for your reply.
Current piece of code specifies 4 ids in the rerender attribute of the command button as comma separated strings and not as el expression.
Please let me know if in the current page context only 2 ids among them are required to be rerendered will jsf try to rerender all the 4 components whose ids are mentioned in the rerender attribute of commandbutton.
Excuse me if I asked a basic question but please help me understand the reRender attribute execution.
the number of ID's you pass in reRender, that number of components will be rerendered by JSF
Yes, all four IDs will be searched for. But only the existing ones will be re-rendered.