This week's book giveaway is in the Open Source Projects forum.
We're giving away four copies of Eclipse Collections Categorically: Level up your programming game and have Donald Raab on-line!
See this thread for details.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Arraylist in bean cant be displayed in jsp

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have bean with an list property which will returning list of values, i want to display this list values on ep.jsp. can anybody help me. thanks in advance.
Database.java


faces-config.xml


ep.jsp
 
Ranch Hand
Posts: 30
Mac OS X Spring AngularJS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't think you can access your exposed JSF bean with ${Database}. I think you have to dig deeper in your context if you use ${}

What you CAN use is #{Database}, ofcourse that isn't compatible with the c:forEach tag, but it's what you have the h:datatable tag for.
 
jayachandra madopothula
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have used h:dataTable and also i used #{Database} but still i didnt find the display of list. please tell where do i do mistake.
 
Dylan Honorez
Ranch Hand
Posts: 30
Mac OS X Spring AngularJS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That indeed looks better. Now, what you're facing is probably your temporaryMehod that is not being called, so your list doesn't get values.

Try just giving it some values in the bean constructor to start with, so you know your jsp is allright. From then on, try building your navigation structure because yours doesn't make much sense to me...

Good luck.
 
Yeah, but is it art? What do you think tiny ad?
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic