On 26.11.2010 10:46, Ulrich Stärk wrote:
> The default binding prefix for the format parameter is literal; use
> t:format="prop:dateFieldFormat".
This explains a lot, thanks.
> Also, in your onPrepare method you are setting the myFormat field
> while your DateFormat field is called dateFieldForm
The default binding prefix for the format parameter is literal; use t:format="prop:dateFieldFormat".
Also, in your onPrepare method you are setting the myFormat field while your DateFormat field is
called dateFieldFormat.
Uli
On 26.11.2010 10:07, Stephan Windmüller wrote:
Hi!
I am trying to
Hi!
I am trying to set the format of two DateFields with this code
-
@Property
private DateFormat dateFieldFormat;
@Inject
private Locale currentLocale;
void onPrepare() {
myFormat = DateFormat.getDateInstance(DateFormat.DEFAULT,
currentLocale);
}
-
In the tml I tried to def