【发布时间】:2013-12-13 18:06:23
【问题描述】:
我看到了BalusC提供的这个例子:
<h:outputText value="#{bean.calendar.time}">
<f:convertDateTime type="both" dateStyle="long" />
</h:outputText>
如何与 h:commandLink> 合作?
我试过了:
<h:commandLink value="#{question.creationDate.time}"
action="#{managerBean.searchQuestion()}">
<f:convertDateTime type="both" dateStyle="short" />
<f:setPropertyActionListener target="#{managerBean.questionID}"
value="#{question.ID}" />
</h:commandLink>
【问题讨论】:
标签: jsf datetime commandlink