WOTextField looses value when disabled has been unset
WOTextField looses value when disabled has been unset
- Subject: WOTextField looses value when disabled has been unset
- From: René Bock <email@hidden>
- Date: Thu, 9 Dec 2010 19:48:21 +0100
Hi all,
I just ran into a curious problem (WO 5.4.3, Current Wonder)
In a Form, I have a WOTextfield
aText : WOTextField { value = aValue; disabled = application.viewOnly; WODebug=true; }
After a request/response cycle (1), there is
Dez 09 19:16:18 HelloText[52423] DEBUG NSLog - Main ==> aText:WOTextField { disabled=application.viewOnly; } value false Dez 09 19:16:18 HelloText[52423] DEBUG NSLog - Main <== aText:WOTextField { value=aValue; } value "foo" Dez 09 19:16:18 HelloText[52423] DEBUG NSLog - Main ==> aText:WOTextField { disabled=application.viewOnly; } value true Dez 09 19:16:18 HelloText[52423] DEBUG NSLog - Main ==> aText:WOTextField { value=aValue; } value "foo"
application.viewOnly = true and aValue = "foo"
Now, application.viewOnly will be set to false (e.g by an other thread) before the next request/response cycle.
After the next request/response cycle (2) (caused by a do noting submitAction) there is
Dez 09 19:17:49 HelloText[52423] DEBUG NSLog - Main ==> aText:WOTextField { disabled=application.viewOnly; } value false Dez 09 19:17:49 HelloText[52423] DEBUG NSLog - Main <== aText:WOTextField { value=aValue; } value null Dez 09 19:17:49 HelloText[52423] DEBUG NSLog - Main ==> aText:WOTextField { disabled=application.viewOnly; } value false Dez 09 19:17:49 HelloText[52423] DEBUG NSLog - Main ==> aText:WOTextField { value=aValue; } value null
application.viewOnly = false and aValue = null
Has anybody noticed this before? Is there workaround?
regards,
René Bock Software Engineering
-- Salient GmbH - the interactive advantage
|
_______________________________________________
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