In the jsp page I have got a dataTable which is iterating over a list of objects, based upon whose values the components are displayed inside DataTable. The final output of the dataTable is a series of questions against which there are various type of components which server as answer for the question. This comes fine.
But now my requirement is if I change certain value of component then it should trigger a server call & fetch some new questions & their answers. For this I am using DWR. Through DWR I am able to call a method of managed bean which return a List of Objects. Based upon the value of objects I am creating the components [text box, drop down etc] & adding it to the JSP. The components are coming on the page, but when the form is submitted these newly added components are not found in the view. On trying to find the value of component through java script I am getting the value. But since these newly added components are missing from the view root I am not able to save the correct data.
Could anyone through some light on this as where I am going wrong or what should I do to overcome this.