On Dec 9, 2010, at 10:48 AM, René Bock wrote: > 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?
Yes. > Is there workaround? Not an easy one. I try to view the R-R cycle as appendToResponse - takeValues - invoke action. The best course of action is to not allow things like disabled to change during this chain of events. That often means looking at and caching the value at the start of appendToResponse. Chuck -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com