I also tried a translator:
/**
* Tapestry-Komponente: Formularfeld Ankunft (Dojo Widget)
*/
@Component(
bindings = {
"value=ognl:arrivalDate",
"validators=ognl:{beans.required, beans.arrivalDateValidator}",
"translator=translator:date,pattern=dd.MM.yyyy"
}
)
public abstract DropdownDatePicker getArrivalDatePicker();
The outcome is that the displayed content changes from
"NaN-NaN-NaN"
to
"NaN.NaN.NaN"
I tried to feed the DropdownDatePicker with a String representation of
the date "03.03.2007", but no luck either: DropdownDatePicker insist to
recieve a java.util.Date.
It worked a while ago, I am sure.
Andy
Andy Pahne schrieb:
I am playing around with 4.1-SNAPSHOT, trying a few things.
I had a DropdownDatePicker that was working just fine but recently
stopped working:
@Component(
bindings = {
"value=ognl:arrivalDate",
"validators=ognl:{beans.required, beans.arrivalDateValidator}"
}
)
public abstract DropdownDatePicker getArrivalDatePicker();
The corresponding page property is:
@Persist
public abstract Date getArrivalDate();
public abstract void setArrivalDate(Date arrivalDate);
And the value of getArrivalDate is not null, because in
pageBeginRender() I have:
if(getArrivalDate() == null) {
setArrivalDate(
DateUtil.addDays(DateUtil.getTodaysMidnight(), 5);
LOG.debug("Arrival Date set, is now " + getArrivalDate());
}
The error I see now is:
The date-pickers text field says "NaN undefined NaN"
The debugging messages says "DEBUG: invalid date string: NaN-NaN-NaN"
I have no idea. Do you?
Andy
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]