When I set dynamic atribute to "false" or not add it at all, i get nullpointer exception on the commandButton when i try to open the dialog, this commandButton is