【发布时间】:2012-04-16 17:47:53
【问题描述】:
谁能告诉我在日期时间字段中向日期选择器添加最小日期/时间的正确语法。 这行得通
<fr:date mindate="2012-05-05" ref="mydate">
这不是
<fr:date mindate="current-date()" ref="mydate">
谢谢
【问题讨论】:
-
fr:date 可从哪个版本获得?
谁能告诉我在日期时间字段中向日期选择器添加最小日期/时间的正确语法。 这行得通
<fr:date mindate="2012-05-05" ref="mydate">
这不是
<fr:date mindate="current-date()" ref="mydate">
谢谢
【问题讨论】:
如果值为静态,则您只能在 fr:date 组件中使用 mindate 或 maxdate 的属性。如果该值由 XPath 表达式确定,则需要使用具有 ref 属性的嵌套元素。所以以下应该可以解决问题:
<fr:date ref="mydate">
<fr:mindate ref="current-date()"/>
</fr:date>
【讨论】: