Search code examples
springspring-webflow

Spring Web Flow


How do I get or pass in the flow xml the value from a selectoneMenu field in an XHTML page.


Solution

  • I'm not sure if I understood what you've said, but you can do this at your xhmtl:

    <selectOneMenu value="#{flowScope.value}">
    ...
    </selectOneMenu>
    

    This will store the value of your selectOneMenu into your flowScope. You can also try other scopes, according to what you want (viewScope, flashScope, etc ... - take a look at SWF documentation).