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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to