I've got a view-state I'm displaying with an attached bean. I'd like the view's fields to be pre-populated with data from the database. The user can then edit the fields and submit their changes. I'm having a lot of trouble getting the bean pre-populated, though. Here's what I'm trying; does anybody see what I should be doing differently?
Thanks,
Eric
Code:<view-state id="updateUserInfoView" view="updateUserInfoView" model="userInfoBean"> <on-entry> <set name="viewScope.username" value="flowScope.principal.id" /> <evaluate expression="updateUserInfoAction.current(viewScope.username)" result="flowScope.userInfoBean"/> </on-entry> <transition on="submit" to="updateUserInfo"/> </view-state>


Reply With Quote