This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSF and the fly likes  DataModel is not generic; it cannot be parameterized with arguments <T> Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark " DataModel is not generic; it cannot be parameterized with arguments <T> " Watch " DataModel is not generic; it cannot be parameterized with arguments <T> " New topic
Author

DataModel is not generic; it cannot be parameterized with arguments <T>

Nandur Kishore
Greenhorn

Joined: Nov 10, 2011
Posts: 3

Hello,I developed my application using primefaces-3.0.M3-sources.jar.But now want migrate to primefaces-3.2.jar to use the orderList and dragdrop components.So the only thing I did was change the old jar primefaces-3.0.M3-sources by primefaces-3.2.jar.But now I am getting the - type DataModel is not generic; it cannot be parameterized with arguments <T> error with LazyDataModel since I extended it to my LazyDataModelService class and implemented all the methods.I can't figure out what it is.Even I tried using primefaces-3.0.jar, primefaces-3.1.jar and getting the same error.

public class LazyDataModelService<T> extends LazyDataModel<T>{
....
}


Thanks
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15960
    
  19

DataModel is part of the core JSF class set. In JSF1, it was not generic, but in JSF2 it is.

Once you throw IceFaces into the mix, I'm out of my depth, however. I don't know what your copy of IceFaces is using as the basis.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: DataModel is not generic; it cannot be parameterized with arguments <T>
 
Similar Threads
Email compose onclick a link in JSF Primefaces.
Why HashTable does not support Generics
Generic Array creation Doubt
Generics and jar files
Sorting an ArrayList is giving me fits