Richard23 wrote:
> 
> Wold you be so kind to post the relevant parts of the jsp and the
> setUser method?
> 
> Are you using @StrictBinding?
> 
> 

this is the action bean and there is no strict binding.

public Resolution update() {
 System.out.println(updateuser.getLastName());
 System.out.println(updateuser.getFirstName());
 System.out.println(updateuser.getName());
 userManager.updateUser( updateuser);

 return new JavaScriptResolution(resolutionObject);
}
private User updateuser;
public User getUpdateuser(){
 updateuser = userManager.getCurrent();
 return updateuser;
}

public void setUpdateuser(User user){
 this.updateuser = user;
}


this is jsp :

<s:form action="${contextPath}/settings/profile/update"
onsubmit='ajaxify({e: event, form: this});'>
<input type="text" name="updateuser.firstName"
value="${actionBean.currentUser.firstName}" />
<input type="text" name="updateuser.name"
value="${actionBean.currentUser.name}" />
<input type="text" name="updateuser.lastName"
value="${actionBean.currentUser.lastName}" />
<s:submit name="update">update</s:submit>
</s:form>

and this is model

public class User extends ProfileBase {

@Column(name = "first_name", length = 40)
private String firstName;
@Column(name = "last_name", length = 40)
private String lastName;

}

only one of the firstname or lastname fields bind. userManager is also an
ejb local interface. 
What can be the problem? 


-- 
View this message in context: 
http://old.nabble.com/Stripes-Binding-Problem-tp28411715p28416439.html
Sent from the stripes-users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to