• Post Reply Bookmark Topic Watch Topic
  • New Topic

Displaying simple read-only tabular data

 
Julien Martin
Ranch Hand
Posts: 384
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I am relatively new to JSF and I am stuck on a basic problem. I want a jsp page to diplay simple read-only tabular data. I just want the index.jsp page to retrieve data from a bean without going through an action nor to have any navigation rule associated to it.

I want the jsp to be roughly as follows (using the forEach tag):



My bean would be roughly as follows:


In addition I have the following in the DD:



This does not seem to work. Can anyone help please??

Thanks in advance,

Julien.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why are you using JSTL in your JSP? You should be using JSF tags like a dataTable.
 
Julien Martin
Ranch Hand
Posts: 384
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you know of any jsf tag that support lists instead of tables. What's more I forgot to mention that I want to display a HashMap and not a list. Is this still possible??
Any help welcome,
Julien.
 
Kurt Boets
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use DataList from myfaces.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!