Hello,
Our requirement is to launch a popup / component after login to webtop.
I have tried customizing the login component by extending the login class as below. But the action is not getting launched and it simply logins to webtop without any error.
public class CustomLogin extends Login{
@Override
public void onLogin(Button arg0, ArgumentList arg1) {
// TODO Auto-generated method stub
super.onLogin(arg0, arg1);
try {
System.out.println("Inside onLogin");
ArgumentList args = new ArgumentList();
ActionService.execute("accept_agreement_action",args,getContext(),this,null);
} catch (DfException e) {
e.printStackTrace();
}
}
protected void handleSuccess()
{
System.out.println("Inside handleSuccess");
ArgumentList args = new ArgumentList();
ActionService.execute("accept_agreement_action",args,getContext(),this,new IActionCompleteListener() {
public void onComplete(String arg0, boolean arg1, Map arg2)
{
System.out.println("Inside onComplegte");
callHandleSuccess();
}
});
}
public void callHandleSuccess()
{
System.out.println("Login completed");
super.handleSuccess();
}
}
Is My approach wrong / Is there anything wrong in the above code?