Results 1 to 2 of 2

Thread: How do I prepopulate a view?

  1. #1
    Join Date
    Jan 2013
    Posts
    3

    Default 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>

  2. #2
    Join Date
    Jan 2013
    Posts
    3

    Default

    Sorry, this is probably the wrong forum for this question. Please disregard.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •