I can show the modalPanel with this
But without rerendering the panel, the content always stays the same.
For example when click on a commandButton
reRendering should only happen, when it is really needed, that means, before it is shown.
Write code showing panel in "oncomplete" attribute.