Hi all,I am facing a scenario in which I am executing an action in the Alfresco web project.Suppose,1.In the user sandbox,when we click on deploy action from more actions menu,deploy snapshot is performed.2.If the deployment is success,I want to execute a preview icon in the monitor deployment page.3.(i.e)Preview action is executed depending on the result of first action(deploy).4.In the deployment callback mechanism, when the deployment is successful ,I tried getting the current facescontext so that we can atleast navigate to the new page,but facescontext is coming as null.5.Can we combine two actions together?6.Or atleast can we able to handle navigation using faces context in deployment callbacks.?Any help appreciated…Thanks.. <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");
}
}
}