• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Adding grids in MapBacked form

 
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Any help please
 
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 !
 
His brain is the size of a cherry pit! About the size of this ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic