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?
<view-state id="updateUserInfoView" view="updateUserInfoView" model="userInfoBean">
<set name="viewScope.username" value="flowScope.principal.id" />
<transition on="submit" to="updateUserInfo"/>