cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörn Heid <h...@agentsinaction.de>
Subject [C2] Urgent problem with selector inside resource
Date Wed, 05 Sep 2001 18:36:11 GMT
When using the parameter-selector
(org.apache.cocoon.selection.ParameterSelectorFactory) inside a resource

	<map:resources>
 	   <map:resource name="login">
               <map:act type="login-action">
                    <map:select type="parameter">
                        <map:parameter name="parameter-selector-test"
value="{myvar}"/>
                        <map:when test="true">
                          ...
                        </map:when>
                        <map:when test="false">
                          ...
                        </map:when>
                    </map:select>
               </map:act>
        </map:resource>
	</map:resources>

I get

org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error compiling
sitemap_xmap:
Line 1213, column 28:  Undefined variable: selector_parameter_N192_expr
Line 1228, column 30:  Undefined variable: selector_parameter_N199_expr

But the same selector inside a map:match does to work.

So, is it a bug or is there a workaround?

JOERN_HEID


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message