title: scrollTo inside a primefaces dialog
body: <p>I am looking for a way to scroll the scrollBar of a primefaces dialog to the top. </p>
  
  <p>Use case:
  I am having a form inside a dialog and there are some input validation when the form submitted. If an error is detected on one of the input fields, a message should be displayed at the top of the dialog wich has a scrollbar.</p>
  
  <p>Java actual code with no effect (no error on consols):
  // modifierUrgenceDelaiForm:exception is the clientID of the p:messages component
  RequestContext.getCurrentInstance().scrollTo("modifierUrgenceDelaiForm:exception");</p>
  
  <p>Thanks for your help.</p>