• 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
Re: takeFormValuesFromRequest problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: takeFormValuesFromRequest problem


  • Subject: Re: takeFormValuesFromRequest problem
  • From: Mike Schrag <email@hidden>
  • Date: Wed, 14 May 2008 08:20:00 -0400

It should. The javascript is only adjusting the display:none or otherwise.
Wait, so you're saying it's display:none and you're making NO structural changes to the form on the server side and it's still being passed a null? I'm calling shenanigans :) That doesn't make sense at all.
Yeah, I just tested this:

<html><body>
<wo:form multipleSubmit = "$true">
	<div style = "display: none">
		<wo:textfield value = "$something"/>
	</div>
	<wo:textfield value = "$somethingElse"/>
	<wo:submit action = "$go" value = "submit"/>
</wo:form>
</body></html>

public class Main extends WOComponent {
	public String _something;
	public String _somethingElse;

	public Main(WOContext context) {
		super(context);
		_something = "initialSomething";
		_somethingElse = "initialSomethingElse";
	}

	public WOActionResults go() {
	  System.out.println("Main.go: " + _something + "," + _somethingElse);
	  return null;
	}
}

If you click submit, both values display, so something is NOT taking a null. Maybe I'm not understanding your case exactly right, but display:none should have no effect on page structure, and it sounded like you're saying you are not making any structural changes to the page on the server, so this should be working. So there's a fact missing or confused (by me) here.

ms

_______________________________________________
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


References: 
 >takeFormValuesFromRequest problem (From: Lachlan Deck <email@hidden>)
 >Re: takeFormValuesFromRequest problem (From: Andrew Lindesay <email@hidden>)
 >Re: takeFormValuesFromRequest problem (From: Lachlan Deck <email@hidden>)
 >Re: takeFormValuesFromRequest problem (From: Stephane Guyot <email@hidden>)
 >Re: takeFormValuesFromRequest problem (From: Lachlan Deck <email@hidden>)
 >Re: takeFormValuesFromRequest problem (From: Mike Schrag <email@hidden>)

  • Prev by Date: Re: Generated SQL failing to execute cleanly with PostgreSQL: a fix
  • Next by Date: iBox - Javascript - Form Help
  • Previous by thread: Re: takeFormValuesFromRequest problem
  • Next by thread: Re: takeFormValuesFromRequest problem
  • Index(es):
    • Date
    • Thread