Important: If the component, whose value
you want to use as a parameter is contained by a data table, you must manually
add
$$AJAXROW$$<component client id> to
the parameter set. Where
<component client id> is a
client ID of the component whose value you want to send as the parameter.
For example,
<h:form id="form1" styleClass="form">
<hx:dataTableEx border="0" cellpadding="2" cellspacing="0"
columnClasses="columnClass1" headerClass="headerClass"
footerClass="footerClass" rowClasses="rowClass1, rowClass2"
id="tableEx1" styleClass="dataTableEx" value="#{company.employeeList}"
var="varEmployee">
<hx:columnEx id="columnEx1">
<f:facet name="header">
<h:outputText id="text1" styleClass="outputText" value="Id">
</h:outputText>
</f:facet>
<h:outputLink id="link1">
<h:outputText id="text2" styleClass="outputText"
value="#{varEmployee.name}">
</h:outputText>
<hx:behavior event="onclick" behaviorAction="get;stop"
targetAction="detailsBox"/>
</h:outputLink>
<h:inputHidden id="empId" value="#{varEmployee.Id}"/>
</hx:columnEx>
</hx:dataTableEx>
<hx:panelBox id="detailsBox" styleClass="panelBox">
<h:outputText id="text2" styleClass="putText"
value="#{company.employeeList[param.empId].department}">
</h:outputText>
</hx:panelBox>
<hx:ajaxRefreshRequest id="ajaxExternalRequest1" target="detailsBox" params="$$AJAXROW$$form1:tableEx1:empId" >
</hx:ajaxRefreshRequest>
</h:form>
The parameter set is a list of IDs separated by semicolons.
The value of these components are retrieved and appended as params to the
URL used to get the new content. The name of the param is the ID of the component.