Can I save complete panel state ? I have many components in panel . I want to implement back button functionality for my application.

I used saveState() and given stateId but I could not able to restore state
Reason for it is View Class , is their any end -to -end example where I can llok into