> For example in beandisplay component
You will need to contribute a BeanBlockContribution to
BeanBlockOverrideSource. This will require you to create a page which
contains the block that you would like to use instead (the override).
eg:
MyPage.java
@Environmental
@Property
private PropertyOutputContext context;
MyPage.tml
<t:block id="myDate">
<t:output value="context.propertyValue" format="dd/MM/yyyy"/>
</t:block>
AppModule.java
public static void
contributeBeanBlockOverrideSource(Configuration<BeanBlockContribution>
configuration {
configuration.add(new DisplayBlockContribution(DataTypeConstants.DATE,
"MyPage", "myDate"));
}
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Global-setting-for-date-format-tp5716054p5716065.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]