Welcome to the JavaRanch, Gokmen! There's a "Code" button on our message editor that can wrap tags around sample
java code and XML. It makes it easier to read.
Personally, I don't like pop-up windows and for that matter, my browser isn't set to open new windows.
However, if you must do so, you need to specify the pop-up window target on your commandLink the same way you would on an HTML "<A HREF=>" tag.
Some people, when well-known sources tell them that fire will burn them, don't put their hands in the fire.
Some people, being skeptical, will put their hands in the fire, get burned, and learn not to put their hands in the fire.
And some people, believing that they know better than well-known sources, will claim it's a lie, put their hands in the fire, and continue to scream it's a lie even as their hands burn down to charred stumps.