• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

I know this should work, so what is wrong?

 
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
MoviePage is a managed bean with a method getMovieListByLocation() that returns a map<String, Collection<Movie>> and #{movieItem.key} in the code below should then be a String and #{movieItem.value} should be the collection that is handed over to the datatable. But nothing is printed on the output page despite I know that there is data returned. I think I am doing something stupid with the JSF/JSP-syntax but can't see it myself.

 
Bartender
Posts: 1845
10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
From my experience the JSTL tags and JSF tags don't play so well together.

First suggestion: Start with one movieList. Make sure your Datatable is working as expected.
Then try adding the forEach tag and see if it breaks again.

 
Jonny Andersson
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have an another page where I have only one big movie list that is displayed with a data table and that works. But I think you are right in that it is a good idea to try this also with only one list first. But if JSTL and JSF don't play well together, could it be a good idea if the for each were replaced with a data table which then cause a data table to be nested within a data table? It is not as a beautiful solution as with the for each but if it works would it be good enough. I'll try to play with this again some time during the weekend.

Thanks for your advice!
 
I've never won anything before. Not even a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic