The above link is similar to your requirement except the Poplist and yours is LOV. (In this exercise we will implement the Partial Page Rendering. Depending upon the value in Position Poplist will change the "Render Property" of Manager.)
// Form was submitted because the user selected
// a value from the LOV modal window,
// or because the user tabbed out of the LOV input.
// Find out which LOV input triggered the event.
String lovInputSourceId = pageContext.getParameter(SOURCE_PARAM);
// Find out the result values of the LOV.
Hashtable lovResults =
if (lovResults != null)
// Update the page depending on the value chosen by the user.