Hi,
I still cannot figure out the reason and solution to the bug. I have tried a dirty way of making it work. I am just putting this up for people who face same issue and are struggling to find any solution and also if anyone has better idea/solution kindly suggest.
Code:
protected Object formBackingObject(HttpServletRequest request)
throws ServletException {
this.setAllowDirtyBack(true);
ProfileForm profileForm = null;
String attributeName = RegistrationWizardFormController.class.getName().concat(".FORM.profileForm");
Object object = request.getSession().getAttribute(attributeName);
if (object instanceof ProfileForm)
{
if(null!=((ProfileForm)object).getHomePhone1());
profileForm = (ProfileForm)object;
}
else
{
profileForm = new ProfileForm();
profileForm.setProfile(new User().getProfile());
}
return profileForm;
}
--
Leo