DynaActionForm f = (DynaActionForm)form;
org.jayasoft.woj.portal.model.registration.Registration r = (org.jayasoft.woj.portal.model.registration.Registration)request.getSession().getAttribute(Params.REGISTER.SESSION.CURRENT_REGISTRATION);
UserImpl u = (UserImpl)r.getUser();
Purchaser p = r.getPurchaser();
// Set Form attributes
if (p != null) {
ActionsHelper.setIfNotSet(f, Params.REGISTER.PURCHASER.VALIDATE.PARAMS.PURCHASER_TYPE, p.getType());
ActionsHelper.setIfNotSet(f, Params.REGISTER.PURCHASER.VALIDATE.PARAMS.COMPANY_EEC_IDENT, p.getEECIdent());
ActionsHelper.setIfNotSet(f, Params.REGISTER.PURCHASER.VALIDATE.PARAMS.COMPANY_NAME, p.getCompany());
ActionsHelper.setIfNotSet(f, Params.REGISTER.PURCHASER.VALIDATE.PARAMS.FIRST_NAME, p.getFirstName());
ActionsHelper.setIfNotSet(f, Params.REGISTER.PURCHASER.VALIDATE.PARAMS.LAST_NAME, p.getLastName());
ActionsHelper.setIfNotSet(f, Params.REGISTER.PURCHASER.VALIDATE.PARAMS.ADRESS, p.getAdress());
ActionsHelper.setIfNotSet(f, Params.REGISTER.PURCHASER.VALIDATE.PARAMS.POSTAL_CODE, p.getPostalCode());
ActionsHelper.setIfNotSet(f, Params.REGISTER.PURCHASER.VALIDATE.PARAMS.CITY, p.getCity());
ActionsHelper.setIfNotSet(f, Params.REGISTER.PURCHASER.VALIDATE.PARAMS.COUNTRY, p.getCountry());
} else {
ActionsHelper.setIfNotSet(f, Params.REGISTER.PURCHASER.VALIDATE.PARAMS.PURCHASER_TYPE, Purchaser.COMPANY);
ActionsHelper.setIfNotSet(f, Params.REGISTER.PURCHASER.VALIDATE.PARAMS.COMPANY_NAME, u.getCompany());
ActionsHelper.setIfNotSet(f, Params.REGISTER.PURCHASER.VALIDATE.PARAMS.FIRST_NAME, u.getFirstName());
ActionsHelper.setIfNotSet(f, Params.REGISTER.PURCHASER.VALIDATE.PARAMS.LAST_NAME, u.getLastName());