To know how to invoke a popup in various ways, please refer to the document on af:popup here. I've created a sample application that demonstrates how to invoke the popup declaratively for different purposes like showing a model popup, displaying note window or panel window, or tooltip text, or menu items, etc. You can download the sample application from here. It's self explanatory.
Below are some sample screen shots.