Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to add elements to an ArrayCollection and display them with DataGrid

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

I am trying to add elements to an ArrayCollection using


and provided this ArrayCollection as a dataprovider to the DataGrid and when running the page it is displaying an exception that variable "Ravi" is not defined .

Please share your ideas , why is it happening so ??

Thanks in advance .
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Ravi" (as your current code has is) is not a variable it is a value. Can you show the code that causes the error? (FlexBuilder will break at the line that causes it).
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Paul ,

Its not at my work place , i will post later .
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic