Selected index in radiogroup is set to -1 while detached (because Radio#onPageDetached fires, causes selected index to set to -1 in radiogroup during Radiogroup#fixOnRemove)
Selected index remain -1 after component is reattached (because Radio#onPageAttached fires, but doesn't trigger Radiogroup#fixOnAdd)
When reattached to the same radiogroup, the selected radio should trigger radiogroup#fixOnAdd
Radiogroup#onPageAttached has following condition to trigger fixOnAdd:
will only fire is the radiogroup is not a descendant of the rootParent, or if rootParent is the radiogroup.
If the radiogroup is a descendant of rootParent (as per fiddle), fixOnAdd doesn't trigger.
attached java class RadioExt.java.
deploy globally with lang-addon: