I don't think you're going to be able to do this; it isn't natural JSF
style. JSF el expressions don't support parameters.
You should look at other approaches to resolve whatever your problem is.
Regards,
Simon
Lisa wrote:
I looked at the docs on this tag <f:param> but there were no examples on how
to pass a String param to the getters in the value="#{bean.getMethod}"
I want to pass a string to getMethod(String s) listed above. If you have
any specific examples on how to do this, it would be greatly appreciated.
L
Lisa wrote:
I want to build a SelectItem list by calling a method in my backing bean,
but I want to be able to pass the backing bean a String (from the XHTML).
---
This is what I currently have:
<h:selectOneListbox
rendered="#{carBean.listMode}"
id="idSelectVehicleType"
value="#{carBean.vehicleType}"
size="1">
<f:selectItems id="idCarBeanTypeList"
value="#{carBean.vehicleTypeList}"/>
</h:selectOneListbox>
where vehicleTypeList is a method in CarBean.getVehicleTypeList()
---
So I want to change the method signature to accept a String like so:
CarBean.getVehicleTypeList(String s)
and in the XHTML pass String s to CarBean.getVehicleTypeList(String s).
Is this possible?
value="#{carBean.vehicleTypeList("myString")}"
thanks
Lisa