• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Adding grids in MapBacked form

 
Nick Sher
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I am using map-backed form in Struts.
I am trying to achieve the following:
1. Create a form where user can add one or more editable grids, the columns of the grid are user-defined.
2. Provide 'Add' button to insert new row to the grid.
3. Each cell inserted in a row is text field.
4. user saves the data entered in the text field.
5. User restores the saved values and will see the results as a table.

I have done Steps 1 to 3 using simple javascript. However, i am unable to come up with an approach to save the grid and restore the table.

Can anyone provide pointers on how can I save the Grid object? Shall I append the values entered in text field as one string so that one row represents one string with some delimiting characters in between?

Please help
 
Nick Sher
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any help please
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Nick Sher:
Hi

I am using map-backed form in Struts.


Pardon for my little knowledge , but can you explain me what is map-backed form ? Is it a bean which contains single property which is of type map ?

Or this links may fulfill your requirement !
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic