• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

HElp in Map-backed ActionForm

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys. I am really stuck in something.

I have a dynamically generated form (meaning that you can add or remove textfields ) using Map-backed ActionForms. It's actually doing what it supposed to do meaning submitting the values to the action class.
the thing is when I am adding a new textfield the values from the previous textfields are reset. And of course I don't want this to happen. So I need to do is get the values from the formbean and populate the text fields. The thing is that this formbean seems to be available only when I am performing the action for submitting the form and not when trying to modify the form (like adding or deleting textfields)

So what I tried to do is use LookupDispatchAction so that the different actions are gonna be sharing the same formbean. But seems that is only populated when I am calling the assigned method in the action
When I am calling from the other two methods I am getting null values
It's a bit confusing I know. But I am really stuck. Any help is higly appreciated

Thanks a lot
reply
    Bookmark Topic Watch Topic
  • New Topic