Results 1 to 2 of 2

Thread: AbstractWizardFormController wiered behaviour on Firefox/3.0.14

  1. #1
    Join Date
    Jul 2007
    Location
    Faridabad India
    Posts
    138

    Default AbstractWizardFormController wiered behaviour on Firefox/3.0.14

    Hi All,

    AbstractWizardFormController works fine for me on IE but on Firefox it keep getting into formBackingObject() on every next button hit. This inturn sets my form object to null everytime it visits the controller. However this doesn't happen in case of IE.

    Any ideas?

    --
    Leo

  2. #2
    Join Date
    Jul 2007
    Location
    Faridabad India
    Posts
    138

    Default

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •