I'm not sure what you mean by "getting" the selected item", Are you wanting to get a handle on what is selected in the page Navigator? As far as documentation, I have been using this quite a bit.
http://www.openntf.org/xspext/xpages%20extension%20library%20documentation.nsf/xpages-doc/Complex.html
Thanks
-Toby