cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ugo Cei <u....@cbim.it>
Subject [Flow] Passing values from the sitemap to the flow
Date Wed, 08 Jan 2003 21:00:34 GMT
Parameters passed from the sitemap to the flow functions are not 
strings. Here's an example:

<map:match pattern="test">
   <map:call function="test">
     <map:parameter name="param" value="testval"/>
   </map:call>
</map:match>

function test(param) {
   if (param == "testval") { /* THIS TEST FAILS! */ }
   if ("" + param == "testval") { /* THIS TEST SUCCEEDS! */ }
}

MHO is that sitemap parameters should be converted to strings before 
being passed to the flow. What do you think?

	Ugo

-- 
Ugo Cei - http://www.beblogging.com/blog/


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message