Hi,

Looking at this situation myself, I'd say that actionscript is what you want. Looking at AddChild and State, the createInstace() method does say it only creates the instance once.

So, if the form wasn't to big, is there a problem with just implementing a reset() method onSubmit() ?

private function resetForm
{
   name.text = "";
   resonTownComboBox.selectedIndex = 0;
   // ...
}

Anyway, I have been messing with states in as and there is a lot you can do different since you not locked into the mxml part of it.

Peace, Mike



On 5/7/06, sof4real03 <[EMAIL PROTECTED] > wrote:
I have a panel that has multiple view states:

default: empty
createPerson: populates the panel with an accordion/form

So after I fill out the accordion/form I submit my data and change my
view state back to default. Then I want to add another person I click
on a button that once again puts me in the createPerson view state
that has a "AddChild" tag which adds the accordion/form. The problem
is that it adds back the accordion/form that I previously fill out. I
tried to play around with all kinds of caching properties of the
various components, but it still keeps on bringing back the same form.
Essentially I want to instantiate an entirely new form when I go to
the createPerson view state. I'm thinking I may need to create the
state via actionscript to accomplish this instead of mxml. Any thoughts?

Thanks,
Sof





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS






--
What goes up, does come down.

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to