Win a copy of Murach's Python Programming this week in the Jython/Python 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: 18531
61
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).
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!