aspose file tools
The moose likes JSF and the fly likes JSF-DWR Components not adding to viewroot Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSF
Reply Bookmark "JSF-DWR Components not adding to viewroot" Watch "JSF-DWR Components not adding to viewroot" New topic
Author

JSF-DWR Components not adding to viewroot

Amit Nair
Greenhorn

Joined: May 23, 2006
Posts: 16
Hi Team

I am trying to integrate the JSF & DWR.

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.

Thanks in Advance
Amit
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSF-DWR Components not adding to viewroot
 
Similar Threads
DWR with Struts 1.3 to update the Formbean and refresh part of JSP page
JSP or JSF?
dataTable question
Creating Datatable dynamically
JSF Vs Struts (Portlets perspective)