我想远程命令内通过URL参数到JSF支持bean。传递URL参数到JSF支持bean与远程命令
如果我打印,页面,#{param.id}
与<h:outputLabel>
它的工作原理。
如果我将它传递给一个支持bean并将其打印在一个方法的bean中,那么如果仅传递参数{param}
,我也会得到null。在其他如果我传递一个静态值它的作品。
Page.xhtml:
<h:form>
<p:remoteCommand name="rmtinit" autoRun="true" immediate="true"
action="#{confirmbean.setta}" async="false">
<f:setPropertyActionListener target="#{confirmbean.id}" value="#{param.id}" />
<f:setPropertyActionListener target="#{confirmbean.idStatic}" value="900099" />
</p:remoteCommand>
</h:form>
删除即时属性并重试。 – mstzn
它的工作原理!谢谢你mstzn。 – Evribadi
不客气。 – mstzn