I reviewed my code lot of times and didnt find questions about it.
I have a problem with p:commandButton rendered property. The p:commandButton is allways displayed even
You can only ajax-update a component which is always rendered (i.e. when it does not have a rendered
attribute). JSF ajax engine does not support addition/removal of a HTML element. It only supports the change of a HTML element.
So, wrap it in a component which is always rendered and ajax-update it instead.