Passing URL parameter from JSF page to bounded task flow within region
725165Jan 28 2010 — edited Jan 28 2010I'm using JDeveloper 11gR1 PS1 and I'm trying to pass a parameter via page URL into a bounded task flow contained in a region on that page. What is the best way to accomplish this?
If I reference the value directly in the JSF fragment being used within the region like so: #{facesContext.externalContext.requestParameterMap\[ 'myParamName ']} then I get the correct value. For better reuse I'd like the value to be passed into the bounded task flow via the task flow parameter though. Whenever I try to do this though, the parameter value in the task flow (#{pageFlowScope.myParamName}) always evaluates to null.
Here is specifically how I have this set up:
Top level page in unbounded task flow has a parameter 'myParamName' defined with the value #{facesContext.externalContext.requestParameterMap\[ 'myParamName ']} (this is defined in the bindings / pageDef for the page itself).
The region binding within the top level page passes the input parameter 'myParamName' with value #{bindings.myParamName} (this should take the value from the parameter as defined above).
The bounded task flow itself has the input parameter defined as 'myParamName' taking the value #{pageFlowScope.myParamName} - so the value passed in should be exposed in pageFlowScope.
When I reference #{pageFlowScope.myParamName} on the JSF fragment contained within the region it evaluates to null, but #{facesContext.externalContext.requestParameterMap\[ 'myParamName ']} gives the correct value.
Thanks for any suggestions.
Edited by: Mike Rokitka on Jan 28, 2010 9:29 AM