Refactoring of Create Client/U_WebMenu in Posterita
This commit is contained in:
parent
af8ece2610
commit
77cf91bb81
|
@ -31,7 +31,6 @@ import javax.servlet.http.HttpServletResponse;
|
||||||
import org.apache.struts.action.ActionForm;
|
import org.apache.struts.action.ActionForm;
|
||||||
import org.apache.struts.action.ActionForward;
|
import org.apache.struts.action.ActionForward;
|
||||||
import org.apache.struts.action.ActionMapping;
|
import org.apache.struts.action.ActionMapping;
|
||||||
|
|
||||||
import org.posterita.struts.login.LoginAction;
|
import org.posterita.struts.login.LoginAction;
|
||||||
|
|
||||||
public class GenericLoginAction extends LoginAction
|
public class GenericLoginAction extends LoginAction
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
|
|
||||||
package org.posterita.core.bean;
|
package org.posterita.core.bean;
|
||||||
|
|
||||||
|
import org.apache.struts.upload.FormFile;
|
||||||
import org.posterita.beans.UDIBean;
|
import org.posterita.beans.UDIBean;
|
||||||
|
|
||||||
public class ClientBean extends UDIBean
|
public class ClientBean extends UDIBean
|
||||||
|
@ -160,5 +161,13 @@ public class ClientBean extends UDIBean
|
||||||
{
|
{
|
||||||
this.city = city;
|
this.city = city;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public FormFile getFile()
|
||||||
|
{
|
||||||
|
return file;
|
||||||
|
}
|
||||||
|
public void setFile(FormFile file)
|
||||||
|
{
|
||||||
|
this.file = file;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,6 +37,6 @@ public class ClientForm extends DefaultForm
|
||||||
public ClientForm()
|
public ClientForm()
|
||||||
{
|
{
|
||||||
this.setBean(new ClientBean());
|
this.setBean(new ClientBean());
|
||||||
this.addRequiredFields(new String[]{"clientName", "address1", "countryId", "currencyId", "email", "orgName", "postalAddress", "confirmPassword", "password", "userPIN", "roleName", "username", "city"});
|
this.addRequiredFields(new String[]{"clientName", "address1", "countryId", "currencyId", "email", "orgName", "postalAddress", "confirmPassword", "password", "userPIN", "roleName", "username", "city","file"});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue