• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Multiple WOForms deleting values after submit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Multiple WOForms deleting values after submit


  • Subject: Multiple WOForms deleting values after submit
  • From: Amiel Montecillo <email@hidden>
  • Date: Fri, 9 Oct 2009 11:26:51 +0800

Hi, I have this weird problem.

My html page with multiple forms

.... snip ....

                          <wo:WOForm>
                            <strong>Change your EMail Preference</strong><br />
                            <wo:WOCheckboxMatrix list="$possibleEmailTypes" item="$dynamicBindings.currentSubscriptionType" selections="$user.emailPreferences" maxColumns="1">
                                <wo:WOString value="$dynamicBindings.currentSubscriptionType.displayName"/>
                            </wo:WOCheckboxMatrix>
                            <wo:WOSubmitButton value="Change" action="">                         </wo:WOForm>

                        <h2>Account Information</h2>
                          <p><b>Email Address:</b> <wo:WOString value="$user.email"/></p>
                          <wo:WOForm>
                            <strong>Change your E-Mail </strong><br />
                            Email Address:
                            <wo:WOTextField value="$user.email" size="30"/>
                            <wo:WOSubmitButton action="" value="Change" class="bodyTextSm"/>
                        </wo:WOForm>
         
                          <wo:WOForm>
                            <strong>Change your Password</strong><br />
                            Current Password:
                            <wo:ERXWOPasswordField value="$currentPassword" size="20"/>
                            <br />
                            New Password:
                            <wo:ERXWOPasswordField value="$newPassword" size="20"/>
                            <br />
                            New Password Again:
                            <wo:ERXWOPasswordField value="$newPasswordVerify" size="20"/>
                            <br />
                            <wo:WOSubmitButton action="" value="Change" class="bodyTextSm"/>
                        </wo:WOForm>

When the first form is submitted, the values in user.emailPreferences() are update correctly.

However, when I submit the second or third forms, the values that were set in user.emailPreferences() are now gone and I can see in the logs that they are being deleted.

Did I miss somthing in the forms I created? Even though user.emailPreferences where not included in the second and third forms, why is it being modified?

Amiel

--
socket error: unable to connect to 127.0.0.1
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Multiple WOForms deleting values after submit
      • From: Amiel Montecillo <email@hidden>
  • Prev by Date: Re: WO alternatives
  • Next by Date: Installation on SnowLeopard
  • Previous by thread: WOResponse / WOCookie domain
  • Next by thread: Re: Multiple WOForms deleting values after submit
  • Index(es):
    • Date
    • Thread