Question to Lead manager Sample Composite Application

Hi,i’m trying to build a simple composite application consisting of 3 components.

BUT I also have 2 pages in the page navigator.

These pages are set to hidden and I want to switch pages programmatically.

How to realize this? I suppose it’s impossible to do this with Script functions and I have to create an Eclipse component with the logic, but how to do this? How it was realized in Lead manager Sample Composite Application?

Please help !

Page1:

form with a drop down field to be able to switch to Page 2

view Adresses

view Contacts

Page2:

form with a drop down field to be able to switch to Page 1

view My Adresses

view My Contacts