• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to check this rendered condition

 
deepan thiagu
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai every one

I need to display the product information in single page.
Each product has the release date.
I need to display the flag for particular product, if it is new release (the release date within one year)
How to check this condition in the JSF page

By
Thiagu.m
 
Tim Holloway
Bartender
Posts: 18414
58
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Add a column to your jsf DataTable's model whose value is the boolean expression that evaluates to whether the release date is <= 1 year from today (or whatever expression best suits you).
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!