I think Spring may be trying to bind to the company property on your user
object. The way I would recommend you manage the relationship is to inject a
custom property editor in your controller using the initBinder() method from
the parent controller. That way you can get rid of the companyId prope
Hi,
Yes I have a property called Company, I use 'companyId' to assign the
company in the UserFormController... actually hibernate is the one that
manages the relationship...here it is part of my pojo..
What can be the problem??
Thanx
/**
* Returns the company object that a certa
Hi,
I assume you are using Hibernate to do the persistence? In which case I
would recommend you let Hibernate do the hard work. In your user model you
should have a property called company is of type Company, and Hibernate will
manage the relationship for you?
Mike.
On 12/19/06, hquinn <[EMAIL
I checked in my userForm.jsp, and I don't think the problem is there... . My
User pojo has a property called 'companyId' which is the property I used
for my relationship many-to-one (user-company). This part of the jsp shows a
'select' with all the existing companies... and it works... but for so
Hi,
From the exception stack trace you posted I don't think the problem is in
your controller, but rather in the userform itself. Look for any Spring form
field where the path is of the form "company.x" where x could be any
attribute of the company.
Mike
On 12/18/06, hquinn <[EMAIL PROTECTED
Yeah, for some reason I'm getting that 'null' property, but I don't
understand why...
Here it is the part of my userformcontroller where I use the
companyManager.. I can't see where is the problem..
public void setCompanyManager(CompanyManager companyManager){
this.companyManager = comp
Hi,
It would seem you are trying to navigate the relationship between a user and
a company, but that the company on the specified user is null. So in your
userform you have a path of the form 'user.company.x' and for this specific
user the company attribute is null?
Mike
On 12/18/06, hquinn <[
Greetings everyone!
When I'm testing my application I get this error during the test-web. Can
someone tell me why? It seems it has to do with a relationship I have
(User-Company), but I'm not sure... any comments??
Thanx
Testcase: testSave(mx.edu.um.musas.webapp.action.UserFormControllerTest):
C