Announcement Announcement Module
Collapse
No announcement yet.
Feeding the input-values of a flow Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Feeding the input-values of a flow

    Hallo,

    I have a flow that should take a parameter on startup. So reading the reference my first guess was:

    Code:
    <flow xmlns="http://www.springframework.org/schema/webflow"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://www.springframework.org/schema/webflow
                              http://www.springframework.org/schema/webflow/spring-webflow-2.0.xsd
     ">
     <input name="clone" type="long" />
    ....
    No I was faced with the question how to feed something into this input-slot? The reference show something for the case to hand some data over to a subflow. But my flow is not a subflow. So I tried to adapt the input-element as follows:
    Code:
    <input name="clone" value="requestParameters.clone" type="long" />
    No I should be able to invoke the flow by adding a get-Parameter named clone as follows:
    Code:
    http://192.168.1.100:8080/flows/placeAd.html?clone=2
    But I got a ugly stack-trace:
    Code:
    ...
    Caused by: org.springframework.webflow.engine.FlowInputMappingException: Errors occurred 
    during input mapping on startup of the 'placeAd' flow; errors = [[TargetAccessError@1f938886 
    mapping = clone -> requestParameters.clone, code = 'propertyNotFound', error = true, errorCause = 
    org.springframework.binding.expression.PropertyNotFoundException: Property not found, 
    originalValue = '2', mappedValue = [null]]]
    ...
    Can anyone help me out?

    Regards,
    Marc

  • #2
    try to use h:commandLink with param attribute tag.

    Comment


    • #3
      Sorry I don't understand this hint

      Originally posted by jackura View Post
      try to use h:commandLink with param attribute tag.
      is this something jsf-related? I don't use jsf.

      I using now this "workaround":

      <on-start>
      <evaluate expression="requestParameters.cloneAd" result="flowScope.cloneAd"/>
      </on-start>
      I don't know wheter this is the best way to achive what I need. But it works :-)

      Thank you for your reply.

      Marc Gorzala

      Comment

      Working...
      X