gpt4 book ai didi

jsf - 使用 with

转载 作者:行者123 更新时间:2023-12-04 21:20:24 26 4
gpt4 key购买 nike

我看到了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>

最佳答案

<h:outputText>里面 <h:commandLink> .

<h:commandLink action="#{managerBean.searchQuestion}">
<h:outputText value="#{question.creationDate.time}">
<f:convertDateTime type="both" dateStyle="short" />
</h:outputText>
<f:setPropertyActionListener target="#{managerBean.questionID}" value="#{question.ID}" />
</h:commandLink>

关于jsf - 使用 <f :convertDateTime> with <h:commandLink>,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20573115/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com