Completely aside from typos and other user-input errors, there's always been an uneasy relationship between displaying formatted numeric text and receiving numeric text input from the same field.
完全排除了键入和其他的用户输入错误,在显示格式化的数字文本和从同一个字段中接受数字文本输入之间的关系还是不太好处理。
Although the code doesn't focus on extracting regular expressions from a ResourceBundle, it does include a good example of extending the default behavior of the formatted text field.
虽然其中的代码不是着重于从ResourceBundle提取正则表达式,但是它的确包含了一个扩展格式化文本域的默认行为的好例子。
As it is, though, the code doesn't do anything to make sure that clumsy users or programmer bugs don't cause incorrectly formatted data to be put into the number field.
尽管如此,代码不能确保笨拙的用户或程序员漏洞不会导致未正确格式化的数据放入number字段中。
Figure 5 shows the data properly formatted as it appears in the original file; the first row displays the field headings, and each subsequent row provides the data.
图5展示了出现在初始文件时被正确格式化的数据;第一行显示字段标题,后续的每一行提供数据。
This template then USES the apply-templates tag to handle its child field tags, which are formatted by the second template.
该模板使用apply - templates标签处理其子标签,这些标签是用第二个模板格式化的。
You could also just use a plain text field and optionally add a validator, or a date-time field if you actually want the time (+ date) formatted.
你也可以只使用一个纯文本字段和选择添加一个验证器,或日期时间字段如果你真正想要的时间(+日期)格式化。
Whay I need is to have a field in a form where I can put formatted text.
为什么我需要的是有一个领域中的一种形式,我可以把格式化文本。
Whay I need is to have a field in a form where I can put formatted text.
为什么我需要的是有一个领域中的一种形式,我可以把格式化文本。
应用推荐