1) nested forms not supported in JSF at all
2) popup by default requires separate form inside. or you need to change domElementAttachment attribute value.
read more in reference.
okay i changed the code to this: http://pastebin.com/FbyiLH9Z
so one basic form with the page, than close it and open popup. inside popup open another form...
Now the problem is, that the button works only alwys the second time i click it.. so if i click it, the fields are resetted and if i click again, they are saved!