Sorry,
I have found issue just after having clicked the send button ;-)
Julien Chanséaume.
Julien C. a écrit :
Hi list,
(Spring MVC)
I'm using the class Address in my Entreprise class. It's the same
class and use as the Address in User class. so I have copied the part
of form in userForm in my EntrepriseForm.
It's working when my entreprise/address exist but I've gota error when
I want to add a new entreprise :
--------------------------------
ERROR [btpool0-11] InputTag.doStartTag(84) | Invalid property
'address' of bean class [com.cogem.model.Entreprise]: Value of nested
property 'address' is null
org.springframework.beans.NullValueInNestedPathException: Invalid
property 'address' of bean class [com.cogem.model.Entreprise]: Value
of nested property 'address' is null
at
org.springframework.beans.BeanWrapperImpl.getNestedBeanWrapper(BeanWrapperImpl.java:443)
at
org.springframework.beans.BeanWrapperImpl.getBeanWrapperForPropertyPath(BeanWrapperImpl.java:418)
--------------------------------
In fact, it's exactly the same way as The userForm. but I haven't
seen something special in userForm and its controller.
If you have an idea...
regards, Julien Chanséaume.