use opened attribute binded to some bean property. change it on action execution.
Is it a good practice for just a simple open and close togglepanel to go BackEnd control everytime? Is there anyway else to solve it?
fyi.. I have set ajax=client .
Ilya, do we have client-side API to toggle STP?
Igor at the time it was created open JS API for this component wasn't in our plans.
After 3.1.0 releases all the components will be reviewed to specify all the functions that can be needed for the developers. After we'll describe it in our guides.
At present only components from 3.0.2 and higher releases has JS API described.