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

getting string representation from java object

 
steve kelly
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK this ones got me scratching my head and I would think its an easy one. I have this chunk of code below. The "getExpandedRows" is working correctly. The "view" is a java viewModel object. Its getting a list of strings. All this works.
My problem is how do I get the actual string value? Right now the alert always pops up as "[Object]" I want the string value from "eachRow" that is in the java object. What am I doing wrong?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65115
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Showing us the server code for a JavaScript issue isn't very helpful. What's this actually look like once it hits the browser? That's what would be helpful.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic