问题
How to pass a parameter through another bean's object inside a method called from <f:event listener="...">
?
I am trying to pass a parameter generated by another bean inside a showData()
method that is to be called on using
<f:event listener="#{myTransformerBeans.showData}">
The parameter would be #{myDataBean.myId}
.
回答1:
you could also try
<f:event listener="#{myTransformerBeans.showData(myDataBean.myId)}">
来源:https://stackoverflow.com/questions/10013343/how-to-pass-a-parameter-through-another-beans-object-inside-a-method-called-fro