Hi Ohad,
I am trying to apply a transformation on the first host screen after login. The transform must be applied only once.
In GXInstantLogicContext, I have the following:
public void gx_onInit()
{
super.gx_onInit();
getGXAppConfig().setIsInstant(true);
GXRenderConfig instantConfig = getGXAppConfig().getInstantConfig();
if (getSession().getAttribute("fromLogin").equals("yes"))
{
instantConfig.addCompletionListener(new transforms.UserCompletionTransform1());
}
}
public void gx_preRender()
{
super.gx_preRender();
registerInstantTransforms();
}
public void registerInstantTransforms()
{
GXRenderConfig instantConfig = getGXAppConfig().getInstantConfig();
if (getSession().getAttribute("fromLogin").equals("yes"))
{
getSession().setAttribute("fromLogin", "no");
}
else
{
instantConfig.removeAllListeners();
}
}
…and then my code in UserCompletionTransform1.
I have System.out.println in UserCompletionTransform1 to verify that the code is being executed.
The transform however is not applied.
I have another application where user tranforms are being applied without problem. This application does not use AJAX (gx_updatePagePart).
This is why I though that gx_updatePagePart may be the problem.
Are you testing using gx_updatePagePart(PanelId) / supportPartialPageRendering=true?
Regards…
#Mainframe-Integration#webMethods#ApplinX