Announcement Announcement Module
Collapse
No announcement yet.
Casting inside a web flow Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Casting inside a web flow

    Hi to all,

    I would like to cast a primitive type inside my web flow. Is it possible to do that? I will illustrate my needs pasting some invented code.

    Code:
    <evaluate-action expression="flowScope.pager.setEnd(Math.ceil((double)flowScope.numberOfItems)/((double)flowScope.properties.getNumberOfResultsPerPage())))" />
    Thanks in advance.

  • #2
    Someone any ideas on how this can be done ? Thanks

    Comment


    • #3
      Take a look at the OGNL specs for details on what you can and can't do:
      http://www.ognl.org

      As an aside, I'm not sure I would advise putting this kind of logic inside OGNL expessions in your flow. Once things get non-trivial it's best to move the code into a custom action and implement it in Java.

      Erwin

      Comment

      Working...
      X