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

Re: WOPopUpButton


  • Subject: Re: WOPopUpButton
  • From: "rene marxis" <email@hidden>
  • Date: Fri, 16 Mar 2007 09:33:54 +0100

Hello

Thanks for the answer. I ll try the get/set method.

But also some question to Project Wonder.

Could it be that most of the stuff is running just under WO5.3?
I'm forced to use 5.2.3 on Windows for developing ....


2007/3/16, Daniele Corti <email@hidden>:


2007/3/16, rene marxis <email@hidden>:
Hello

I am new to WO and have some question on WOPopUpButton.

I have one form with 2 fields (name, street) and 2 WOPopUpButtons (country, cities).
I like the cities popup to change dynamicly when the country changes. All 4 fields are in one WOForm.
To manage this i did the following:
Add one hidden field to the form that i set with
false;";

This feld is of course bound to one String in the class.
All other WOText elemets are bound to some item coming from DB.

On Submit of the form (which is an action DoSave) i do check the isSelectCountry and if it is .equals("1") i do set it back to "0" and just return null.

This seems to work ok. but i get some message on the console from the workerthread, that my entity "name" which is defined "not null" in the my model, is not allouwed to be null when adding a new item and don t have data entered for the name and/or street.

First question: Is this the way to manage such situations or is there some better one. Probaby something like ajax?

Exaclty: look the DependentListsExample int AjaxExample, you can download it in http://webobjects.mdimension.com/wonder/
 

Second: How can i overcome the "null" problem?

when you add the bind value to the TextField, don't use a variable, but the pair of get/set methods, and, in the set, check if the value passed is null, if so, use a default value ( e.g. "_NULL_").
 

Many thanks in advance

rene

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (



--
Daniele Corti
AIM: S0CR4TE5
Messenger: email@hidden

 _______________________________________________
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: 
 >WOPopUpButton (From: "rene marxis" <email@hidden>)
 >Re: WOPopUpButton (From: "Daniele Corti" <email@hidden>)

  • Prev by Date: Re: DOM Level 3 and JavaXML.Framework
  • Next by Date: Re: How to use NSTimeZone to select the date/time display to use [OT]
  • Previous by thread: Re: WOPopUpButton
  • Next by thread: XML file
  • Index(es):
    • Date
    • Thread