Results 1 to 4 of 4

Thread: Visible multiple entity objects from a controller to the view

Hybrid View

  1. #1
    Join Date
    Feb 2010
    Posts
    5

    Smile Visible multiple entity objects from a controller to the view

    I need to make visible multiple entity objects from a controller to the view.

    Spring webflow Version: 2.0.3

    Thank you for your attention

  2. #2
    Join Date
    Feb 2010
    Posts
    5

    Smile

    From one controller method making visible several entities to the view.

    thanks in advance

  3. #3
    Join Date
    Jul 2008
    Posts
    157

    Default

    I'm not sure about what you have and what you want exactly but what about a method returning a List or a Map with your entities.

    I mean, why isn't that an option?

  4. #4
    Join Date
    Feb 2010
    Posts
    5

    Default

    I saw a solution for my problem. Use ScopeType to save
    all objects that need to load the view.
    something like this:


    public String canSend(RequestContext context) {

    Entity entity ...
    List(Delegates) ....

    ScopeType.FLASH.getScope(context).put("delegates", delegates);
    ScopeType.FLASH.getScope(context).put("entity", entity);

    }


    Thanks for your response

Posting Permissions

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