Announcement Announcement Module
Collapse
No announcement yet.
How do I prepopulate a view? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How do I prepopulate a view?

    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>
    Note: originally posted in error to the Spring Workflow forum: http://forum.springsource.org/showth...opulate-a-view
Working...
X