use selectedPanel attribute. Just manage its value and reRender the panelBar via ajax.
it was nice progress but it works ONLY one time, example:
when the first time I open the page it's already positioned to the first panelBarItem, so naturally I fill in the field and press submit.
in fact, with your trick it did open the second panelBarItem. If I go back to the first one again and edit some data and press submit, it will not change back to the second one huh.... how come ?
is this a bug? or I'm doing something wrong ?
again Thank you for your help it was very helpful. can you give me more explanation why mine is not working properly ?