aspose file tools*
The moose likes Struts and the fly likes dynamic row in javascript by using list of beans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "dynamic row in javascript by using list of beans" Watch "dynamic row in javascript by using list of beans" New topic
Author

dynamic row in javascript by using list of beans

rajan Kayarohanam
Greenhorn

Joined: Jan 24, 2008
Posts: 12
Hi All,
i've a issue. i've a JSP page where in there are 2 rows of dropdown list as one column and input text as the other. like this by default there are 2 rows.
Now i've already written a JS function for adding and removing a new row below the existing row. now the issue is i've to take the values of the dynamically created rows to my action as a list till my command class to save in DB.
The approch i've followed is by having a bean which will consists of id,val and percent with getter and setters. and this bean as a list in my form in a list variable.

i'm trying to create a dynamic row with the property of list.bean.property, so that when i save my dynamically created row will have the values in the bean property.
ex. "list[0].somebean.someid".....
this is my approach but i'm not able to procees further... could somebody help me out!!!

Thanks in Advance.
KMR
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: dynamic row in javascript by using list of beans
 
Similar Threads
Using SimpleFormController with dynamic form objects
add collection values
problem using ui:repeat
Hibernate cache problem?
How do I Call a Bean Function Using JSP?