Hi @trungdv
Thanks for your comment.
I really like to do everything in ManagedBean. Fortunately, i found new way to achieve my goal.
use actionListener to call ManagedBean method, and action to call ivy method, when managedBean is done, ivy method start to call.
<p:commandButton <p:commandButton actionListener="#{sPDocumentBean.prepareFile}" action="#{logic.uploadDocument}" value="Save"/>
styleClass="button-orange"
style="margin:10px 15px 0 0"
actionListener="#{sPDocumentBean.prepareFile}"
action="#{logic.uploadDocument}"
value="#{ivy.cms.co('/de.eon.funke.core.ui/Common/Button/save')}"/>
Thank you :)