特立尼达控制将参数传递给流
-
20-09-2019 - |
题
我新的JSF,Facelets的,SWF和特立尼达技术,以及我具有(使用<tr:commandButton>
)从XHTML页面上的<f:param>
到流动提交参数的问题。有趣的是,当我用,而不是<h:commanButton>
<tr:commandButton>
,一切工作正常。我需要使用特立尼达按钮的原因是,我不得不把它放在<tr:forms>
支持PPR。
我真的很感激你的帮助。
解决方案
在<f:param>
没有在<h:commandButton>
长期工作直到JSF 2.0。据intented与<h:outputFormat>
,<h:commandLink>
和<h:outputLink>
仅
这看起来像您使用JSF 2.0,但特立尼达和多巴哥不是“JSF 2.0准备”呢。那么你应该使用<f:setPropertyActionListener>
代替。
下面是一个例子:
<tr:commandButton value="submit" action="#{bean.submit}">
<f:setPropertyActionListener target="#{bean.someProperty}" value="someValue" />
</tr:commandButton>
您还可以考虑升级特立尼达到JSF 2.0兼容的版本,如果有可用的。
不隶属于 StackOverflow