A nice tutorial describing using the PGi components for LiveCycle can be found on the Adobe developer community, at http://www.adobe.com/devnet/livecycle/articles/pgi_components.html.