tags:

views:

226

answers:

1

I'm new to Seam and I've been searching the internet and the Seam in Action book for this, but I'm looking for way to insert today's date in a seam page (myReport.xhtml or myPdfReport.xhtml)

+7  A: 

Hey,

There is a built-in component in Seam in order to get the current date.

Just put

#{currentDate}

Nothing else. You do not need to declare managed bean as @BalusC has said when using this built-in component.

Arthur Ronald F D Garcia
I'm glad BalusC mentioned the managed-bean route because that solves other problems, but yeah, I figured there would be something like this. And look, there it is on page 205 of Seam in Action. So, thanks!
mcgyver5