I have a long form, and the client have to scroll vertically the screen to see all fields.
But, every time one of those components with the property update=@form
is fired, the screen get back to the top position.
So, the question is:
- There is a way to keep the scroll bar in the same position after an
update=@form
?
Important: The scroll bar back to the top only in the first update=@form
, after that, the screen keeps the current position.
I am not sure if it's a bug or I am doing something wrong that is causing that behavior.
And yes, i really have to update the whole form
e.g.
<p:commandButton id="btnVerifyLogin" update="@form" value="Verify"
actionListener="#{demandController.VerifyLogin()} />