posted 17 years ago
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