Try <t:output format="testFormat" value="currentDate"/> instead - that
is, just the property name instead of an expansion. The expansion will
expand to a String, which won't format correctly.

-Filip

On 2008-06-10 19:21, Konstantin wrote:
in markup:

<t:output format="testFormat" value="${currentDate}"/>

in page class:

    private Format testFormat = DateFormat.getInstance();

    private Date currentDate = new Date();

    public Format getTestFormat() {
        return testFormat;
    }

    public Date getCurrentDate() {
        return currentDate;
    }

result:

org.apache.tapestry.internal.services.RenderQueueException
Render queue error in BeginRender[test/Page:output]: Cannot format given
Object as a Date

Can you, please, tell me if this is a bug, or it's me doing something wrong
? Maybe there is a workaround ?


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to