Using parameters in dataTables

Is there anyway to make the dataTable's value attribute bind to a method that needs a parameter similar to the way the action attribute in a commandLink tag can set a parameter. In other words, is there some way to do something like the following?

<h:dataTable id="items" value="#{someBean.items}" var="item">

<f:param name="someParam" value="someValue"/>

<h:column>

...

</h:dataTable>

And the corresponding method in the someBean object would look like...

public Collection getItems()

{

HttpServletRequest req = (HttpServletRequest)(FacesContext.getCurrentInstance().getExternalContext().getRequest());

String param = request.getParameter("someParam");

...

}

[998 byte] By [jds@ku.edua] at [2007-10-2 23:56:15]
# 1
Nasty, but you can try using the binding attribute of f:param to bind the whole f:param component to the backing bean and then access the value in the getter of the datatable.
BalusCa at 2007-7-14 16:42:50 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
I don't totally follow what you're saying. I'm fairly new to JSF. Can you provide a little code snippet?
jds@ku.edua at 2007-7-14 16:42:50 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
See http://balusc.xs4all.nl/srv/dev-j2p-com.html , the 2nd way of passing params.
BalusCa at 2007-7-14 16:42:50 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...