jeypijeypi
jeypijeypi

Reputation: 55

How to clear data ina DataTable in JSF?

How can I clear the contents of a dataTable??

The user will import a textfile and then the data from that textfile will be displayed in a dataTable. When the user navigate to other pages and then decided to make an import again, the data from the previous import is still there.

Upvotes: 1

Views: 574

Answers (1)

BalusC
BalusC

Reputation: 1109865

Put the bean in the request or view scope instead of the session scope.

Upvotes: 1

Related Questions