@@ -0,0 +1,761 @@
+package com.xfyre.tapestry5.xtensions.components;%0A%0Aimport java.text.DateFormat;%0Aimport java.text.SimpleDateFormat;%0Aimport java.util.Date;%0A%0Aimport org.apache.tapestry5.BindingConstants;%0Aimport org.apache.tapestry5.MarkupWriter;%0Aimport org.apache.tapestry5.annotations.Parameter;%0A%0Apublic class FormatDate %7B%0A    @Parameter(required=true,defaultPrefix=BindingConstants.PROP)%0A    private Date date;%0A    %0A    @Parameter(required=true,defaultPrefix=BindingConstants.LITERAL)%0A    private String format;%0A    %0A    void beginRender ( MarkupWriter writer ) %7B%0A        if ( date == null ) %7B%0A            writer.writeRaw ( %22%22 );%0A        %7D else %7B%0A            DateFormat df = new SimpleDateFormat ( format );%0A            writer.writeRaw ( df.format ( date ) );%0A        %7D%0A    %7D%0A%7D%0A

add formatdate