You were rigtht, I added "= new User()" to initialize the bean. It works now.
Thanks Rene -----Urspr�ngliche Nachricht----- Von: "Ricardo R. Ram�rez Valenzuela" [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 25. Mai 2005 21:52 An: MyFaces Discussion Betreff: Re: nested value binding In your AdmMgr class, how are you initializing the edituser property? Something like User editUser = new User(), it seems as if editUser were null, that could happen especially if your bean is request Rene Guenther wrote: >Hello, > >my jsp has following line: > ><h:inputText id="firstname" value="#{AdmMgr.editUser.firstname}" /> > >AdmMgr is a managed bean with the instance editUser of class User. editUser >has property firstname (includes getters and setters). >Reading AdmMgr.editUser.firstname works, writing AdmMgr.editUser.firstname >failed: > >ERROR - Cannot set value for expression '#{AdmMgr.editUser.firstname}' to a >new value of type java.lang.String >javax.faces.el.PropertyNotFoundException: Base is null: .editUser > at >org.apache.myfaces.el.ValueBindingImpl.resolveToBaseAndProperty(ValueBindin g >Impl.java:537) > at >org.apache.myfaces.el.ValueBindingImpl.setValue(ValueBindingImpl.java:309) > at javax.faces.component.UIInput.updateModel(UIInput.java:252) > at javax.faces.component.UIInput.processUpdates(UIInput.java:191) > >How can I set a new value for AdmMgr.editUser.firstname? > >Thanks >Rene > > > >

