• 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
WOTextField looses value when disabled has been unset
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
http://www.salient.de http://www.openforms.de

 _______________________________________________
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

  • Follow-Ups:
    • Re: WOTextField looses value when disabled has been unset
      • From: Chuck Hill <email@hidden>
  • Prev by Date: OT: Which computing language is fastest?
  • Next by Date: Re: OT: Which computing language is fastest?
  • Previous by thread: Re: OT: Which computing language is fastest?
  • Next by thread: Re: WOTextField looses value when disabled has been unset
  • Index(es):
    • Date
    • Thread