页面到Bean的参数传递
页面中设置参数:
页面中设置参数:
<h:form>
<h:commandButton action="#{paramBean.test3}" value="Test14">
<f:setPropertyActionListener value="hujilie" target="#{paramBean.name}"/>
</h:commandButton>
<h:commandLink action="#{paramBean.test3}" value="Test15">
<f:setPropertyActionListener value="hujilie" target="#{paramBean.name}"/>
</h:commandLink>
</h:form>
后台取参数:直接使用属性的值。