Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to check this rendered condition  RSS feed

 
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: 18662
71
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).
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!