* Post button doesn't work.

This commit is contained in:
Heng Sin Low 2008-07-25 23:08:00 +00:00
parent 275258c921
commit a5927fa4f5
1 changed files with 5 additions and 0 deletions

View File

@ -23,6 +23,7 @@ import org.adempiere.webui.component.WConfirmPanel;
import org.adempiere.webui.component.Window; import org.adempiere.webui.component.Window;
import org.adempiere.webui.exception.ApplicationException; import org.adempiere.webui.exception.ApplicationException;
import org.adempiere.webui.window.LoginWindow; import org.adempiere.webui.window.LoginWindow;
import org.compiere.db.CConnection;
import org.compiere.util.Env; import org.compiere.util.Env;
import org.compiere.util.KeyNamePair; import org.compiere.util.KeyNamePair;
import org.compiere.util.Login; import org.compiere.util.Login;
@ -71,6 +72,10 @@ public class RolePanel extends Window implements EventListener
rolesKNPairs = login.getRoles(userName, password); rolesKNPairs = login.getRoles(userName, password);
if(rolesKNPairs == null) if(rolesKNPairs == null)
throw new ApplicationException("Login is invalid, UserName: " + userName + " and Password:" + password); throw new ApplicationException("Login is invalid, UserName: " + userName + " and Password:" + password);
//set app server credentials
CConnection.get().setAppServerCredential(userName, password);
initComponents(); initComponents();
init(); init();
this.setId("rolePanel"); this.setId("rolePanel");