Volodymyr Levytskyi wrote:Hello!
If you want not to reload your page when command link is clicked and form is submitted (chatBean.refresh is executed) you can use AJAX<f:ajax execute='id1,id2' render='id1,id4'/>.
But if you simply need to hide your div via javascript without executing chatBean.refresh method, you should add 'return false'. Consider this link:
To disable page reloading when javascript is executed you should add 'return false'. It must work!
chets patel wrote:Get result.listIterator() outside while loop both in while condition and in first statement of while loop.