14.01.2013 Views

Oracle JHeadstart Developer's Guide - Downloads - Oracle

Oracle JHeadstart Developer's Guide - Downloads - Oracle

Oracle JHeadstart Developer's Guide - Downloads - Oracle

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

6.8. Generating a Date (time) Field<br />

By default, you will get display type ‘dateField’ when the attribute in the ViewObject is<br />

of type ‘Date’. In a dateField you can enter only the date.<br />

You can change the Display Type property for an attribute to ‘dateTimeField’. In a<br />

dateTimeField you can enter a date and a time.<br />

6.8.1. Specifying display format for date and datetime field<br />

By changing the service level properties Date Format and DateTime Format, you can<br />

define the display format of both dates and datetimes. The format strings used here, are<br />

as defined in java.text.SimpleDateFormat. The JAG takes the values of these<br />

properties and puts them in the ApplicationResources.properties file (under datepattern<br />

and datetimepattern). This file is used at runtime. In case of changes in the<br />

Internationalization properties on the service level, these properties can be stored in<br />

another locale.<br />

6- 22 Generating User Interface Widgets <strong>JHeadstart</strong> Developer’s <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!