FocusManager breakage on return to a view with destructionPolicy="never"
Hi,
OK, so I have a view based application with an underlying view containing a core module of my application that I want to keep available. Therefore, I have set destructionPolicy="never" to keep it in memory. This works.
I also have a TextArea that I add to the view at various times and call TextArea.setFocus(); to draw up the soft keyboard on update complete. This works.
I also have a separate view that I push onto my ViewNavigator to perform a couple of related tasks, then pop it off to return to the main view once I am done. This works.
BUT...
When I return from displaying my subview, focusManager will no longer respond to my TextArea.setFocus() call.
EG: focusManager.getFocus() returns null no matter how often nor in what manner I call TextArea.setFocus();
This means that I can no longer edit any text in my main view.
Short of a (non-trivial and undesirable) workaround to replace the main view every time, which would mean re-architecting the core and unnecessarily reinitialising a number of display objects, is there any reason anybody can see for focusManager to fail in this way?
Cheers,
G
