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?
Joined: Jan 23, 2008
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 remember for your help forever.
Joined: Jun 11, 2002
Hi Again Tun,
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.