Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Primefaces datatable var attribute not working

 
amarshi mohanty
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
 
Hany Shafik
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic