在本例中,这个帮助并不是很智能,因为它并不能说明用户所请求的现场,确定日期格式就需要用到该现场。
In this case, this helper isn't terribly intelligent as it does not account for the user's requested locale, which should be used to determine the proper date format.
这个例子展示了如何用 <f:convertDateTime/>确保用户的生日可以转换为 格式为 MM/yyyy(月 / 年)的日期对象。
This example demonstrates how to use <f:convertDateTime/> to ensure the user's birth date is convertible into a date object formatted as MM/yyyy (month/year).
当用户从下拉菜单中选择了一个日期后,它必须被格式化为相应的字符串,需要进行反向查找,也就是根据索引查找缩写。
When a user selects a date from the drop down menu, it has to be formatted into the corresponding string, requiring the opposite lookup, namely the acronym given the index.
应用推荐