aspose file tools*
The moose likes JSF and the fly likes Primefaces datatable var attribute not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Primefaces datatable var attribute not working" Watch "Primefaces datatable var attribute not working" New topic
Author

Primefaces datatable var attribute not working

amarshi mohanty
Ranch Hand

Joined: Jul 01, 2008
Posts: 110

Hi All,
I am getting warning in the eclipse editor itself for the line "#{car.Model}" .
It seems the var="car" is not working properly, because i have setter/getter for Model in Car class.



Please tell me if there is some alternative approach for this .


Regards,
Amarshi


SCJP (97%), SCWCD (95%))
Hany Shafik
Ranch Hand

Joined: Jun 21, 2008
Posts: 80
eclipse is not intelligent enough to recognize that the car var is of type Car class, actually unless you are using generics and you have the required plugin that can support it, there is no way for eclipse to know what type of items are in this list and what is the car var variable is referencing.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Primefaces datatable var attribute not working