Xpages日期时间选择器字段默认为今天的日期 [英] Xpages Date Time Picker field defaults to today's date
本文介绍了Xpages日期时间选择器字段默认为今天的日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
运行ND9服务器并浏览带有日期字段的Xpage时,该字段的默认值始终是今天的日期.
Running a ND9 server and when browsing a Xpage with a date field, the default value for this field is always today's date.
在8.5.3服务器上,控件的呈现方式如下:
On a 8.5.3 server the control is rendered like this:
<input class="dijitReset dijitInputInner" dojoattachpoint="textbox,focusNode" autocomplete="off" type="text" aria-valuenow="undefined" aria-invalid="false" id="view:_id1:_id2:main:fromTDate" tabindex="0" value="">
<input style="display: none;" type="text" name="view:_id1:_id2:main:fromTDate">
在ND9服务器上,相同的控件呈现如下:
On a ND9 server the same control renders like this:
<input class="dijitReset dijitInputInner" type="text" autocomplete="off" data-dojo-attach-point="textbox,focusNode" role="textbox" aria-haspopup="true" aria-invalid="false" tabindex="0" id="view:_id1:_id2:main:fromTDate" maxlength="10" size="10" value="">
<input type="hidden" name="view:_id1:_id2:main:fromTDate" value="2013-03-26">
我可以通过添加Dojo日期文本框来绕开它,但是此功能一定是错误的,对吧?
I've been able to circumvent it by adding a Dojo Date Text Box instead but this feature must be wrong, right?
推荐答案
这实际上是v9.0中的修复程序.默认情况下,今天的日期现在是预期的行为
This was actually a fix put into v9.0. Today's date appearing by default is now the expected behaviour
这篇关于Xpages日期时间选择器字段默认为今天的日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文