06-11-2009 08:50 AM
<bean id="avm-deploy-website" class="org.alfresco.repo.avm.actions.AVMDeployWebsiteAction" parent="action-executer">
<property name="callbacks">
<list>
<ref bean="deploymentCallbackPreview" />
</list>
</property>
public class DeploymentCallbackPreview extends SelfRenderingComponent implements DeploymentCallback, Serializable
{
public void eventOccurred(DeploymentEvent event){
if (event.getType().equals(Type.START))
{
//continue
}
else if (event.getType().equals(Type.END))
{
// if we get the END event the deployment was successful
FacesContext fc =FacesContext.getCurrentInstance(); // coming as null
fc.getApplication().getNavigationHandler().handleNavigation(fc,"", "dialog:customPriview");
}
}
}
06-11-2009 10:42 AM
06-12-2009 01:40 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.