Hi this might not be the best way of doing it but here goes...
<SCRIPT type="text/javascript">
function func_1(AgentId) {
document.getElementById("form1:text1").value = AgentId;
}
</SCRIPT>
<h:form styleClass="form" id="form1">
<!-- pc_Agent.agents returns a array of agents -->
<h:dataTable id="table1" value="#{pc_Agent.agents}"
var="varagents"border="0"
style="background-color:#efebef;font-weight:bold">
<h:column id="column1">
<hx:outputLinkEx
styleClass="outputLinkEx"
id="linkEx1"
onklick="return func_1(#{varagents.id});"
value="#">
<h:outputText id="text2" styleClass="outputText"
value="#{varagents.id}"></h:outputText>
</hx:outputLinkEx>
</h:column>
</h:dataTable>
<h:outputText styleClass="outputText" id="text1" value="#{param.slectedAgentID}"></h:outputText>
</form>
this way you send the id to the next page as a parameter.
Hope this helped or give you new ideas
[ May 19, 2005: Message edited by: Marius Cloete ]