87941

How to clear data ina DataTable in JSF?

Question:

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.

Answer1:

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

Recommend

  • Toggling(or Flashing) a particular cell in a Table for some time frame
  • Input Date in Struts2
  • How to convert Strings to into a phone number
  • How to change PhoneGap's screen size?
  • What is the best way to debug IL2CPP code?
  • Imprecise numbers with microtime and floating point addition in PHP
  • How to add an Auth Token in every request using AFIncrementalStore?
  • Is there a way to limit the duration of an audio capture in Codename One?
  • Define a symbol for an assembly (.s) source file in Android.mk?
  • How to use multi dimensional STL vector in MPI
  • How would I make a polygon based on the relative positions of markers in google maps?
  • java: reading large file with charset
  • Show QMainwindow in the middle of the screen
  • Is it possible to use LinkShare signatures in an iOS Smart Banner?
  • Failure to Read Updated AnyLogic DB Values
  • CameraPreviewImageSource empty preview frame
  • Copy Row if Cell Contains X to Different Sheet then delete row.
  • Background beacon detection and Notification (Both iOS and Android) for Eddystone beacon?
  • Gitlab: copy project to other git lab repository
  • Azure NodeJS Error: ENOENT, open 'D:\\home\\site\\wwwroot\\bin\\views\\'
  • Load php page results into div with ajax with link?
  • VBScript InputBox and Help Files
  • separate tokens in batch file
  • Building JavaFX 2.0 App on Mac, deploying on Windows
  • How to create subsets of a single set of elements with XSLT?
  • how to run a different select statement based on condition in Hive SQL
  • Floating parent div grows to hypothetical width of floating child div
  • Conflicting declaration using constexpr and auto in C++11
  • reshape/remould data frame to create normalized bar chart and pie chart
  • read part of h5 dataset python
  • php “page caching” solution suggestions for CMS Applications
  • How to encrypt Connectionstring written in web.config from codebehind?
  • Computing the discrete fourier transform of audio data with FFTW
  • Using Service Component Runtime
  • Jersey serializes character value to ASCII equivalent numeric string
  • CAS 4 - Not able to retrieve the LDAP groups after successful authentication
  • What does the “id” field in an Android “Google Play Music” broadcast intent correspond to?
  • convert json to excel in java
  • Create/delete users from text file using Bash script
  • How to check if object is null in Java?