I know that It's posible to do a better composition and include once in a separated form or panel and update only the another panel.
My question is about I thought the appendTo body tag must replace the another dialog if has the same id as the new one is trying to render in the DOM in 5.1 version as I saw in another post.
If the area where JSF originally rendered the PrimeFaces component is
updated using JSF's AJAX feature, JSF will remove area to update from
the DOM, then render the component again, as it does not know it was
moved elsewhere. In old versions of PrimeFaces, this caused the
component to appear in the DOM twice (with the same id), which caused
problems with later submits. This was fixed for PrimeFaces 4.0 ( Issue
5636: Dialog appendToBody & dynamic doesn't remove the old dom element
), but re-occurred in 5.0 (issue #367).