Firstly, there is no database. The names are hard coded into an Array, and that array is manipulated depending on user selection.
Let's look at ArrayDataModel. I suggest you first look at DataModel, get the hang of that. Then look at ArrayDataModel. ArrayDataModel, is a DataModel that wraps Arrays. The getWrappedData method according to the API documentation "Return the object representing the data wrapped by this DataModel, if any." So that returns the original Array that you used to initialise that ArrayDataModel.
Person x = ...; //an array of Person objects... ArrayDatamodel adm = new ArrayDataModel(x); //passing the array of Person objects into ArrayDataModel.. adm.getWrappedData() is equals to x. So you can cast adm.getWrappedData to a Person array. like this. Person people = (Person) adm.getWrappedData(); Does that make sense?
The rest is pretty self explanatory. Do you have the API documentation?
Thank you very much for your reply. i am beginner in jsf UI frame library.i use tomahawk. if you have some other concepts for my problem,please guide me. i need many help for my problem.Please help me.
if i will use with mysql database,may i need other some concept? my email address is firstname.lastname@example.org.
I have read your post a couple of times now, and don't understand what your problem is. What is your problem. You asked about the getWrappedData and I explained. If you want to change the hard coding of the data, ie where you get the names from, then get the names from a a database, and in the TableData class populate the Name array with the new values.
I'm sorry, but your problem is not clear so the solution will also not be clear.
Every time you till, you lose 30% of your organic matter. But this tiny ad is durable:
Free, earth friendly heat - from the CodeRanch trailboss