I’m creating a screen with an large outputArea where the log results of a separate batch job are shown (kind of a tail functionality where the last lines are shown, however all previous lines should be also accessible by scrolling up.
So the batch job logs all kinds of information and the screen will show every new line in the outputArea.
I used to have a ListSelect component where I could easily do a listSelect.select(<>) which forced the component to automatically scroll down to the last line.
However the drawback here was that a user was not able to select one line and do a copy/paste to paste the information in an TextEditor for example.
So I swichted to a TextArea component but now the automatic scroll down to the last line does not work anymore.
Does anyone have any ideas on which component to use (which one is most suitable) and how to use it ?
As stated these are the requirements:
automatic scroll down to the last line
copy/paste support
scrollbars because some lines are to long to show in the outputArea
Copy/paste works out of the box. Scrollbars show up automatically in my app. Unfortunately, some browser don’t scroll to the end, but FF and Opera do scroll down. I did already filed a
ticket . If you have a pro account you can mark this ticket as priority.