Alex,

I've worked around this - here's what I was doing and what I discovered:

I have a form that has a sub-forum that is popped up using PopUpAnchor. I then 
could add a new item to the sub form and edit it. Then I would send the main 
form and subform data to the server using Remoting.  But in my case, the newly 
added item was getting orphaned ano not inserted, and when the returned form 
contents came back, the itemrenderer that was being used for the new item 
wasn't there - possibly FocusManager was expecting it to be there. When I fixed 
the cause of the orphaning, the problem went away.  I still feel like shouldn't 
be happening but for the time being I can move forward.

Jeff
________________________________
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Wednesday, June 16, 2010 12:32 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] FocusManager Bug in Flex 4



Unfortunately got deferred because we didn't have a real-world, but simple test 
case.  Do you have one?  It seems to be caused by something not being on stage 
and having visibility flipped.  I think one user was binding visible to 
something that was supposed to evaluate to true, but didn't always because the 
binding chain wasn't fully created.

What does your call stack look like?


On 6/16/10 7:45 AM, "Battershall, Jeff" <jeff.battersh...@dowjones.com> wrote:





Hi,

I too am getting the DisplayObject(form).stage.focus = null error.  In my case, 
I'm using a PopUpAnchor to show and hide a form.

Is there a definitive fix for this?

Jeff Battershall
Application Architect
Dow Jones Indexes
jeff.battersh...@dowjones.com
(609) 520-5637 (p)
(484) 477-9900 (c)






--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui




Reply via email to