hi *!

i have trouble understanding how usecase parameters are typed.
org.apache.avalon.framework.parameters.Parameters in avalon uses string values exclusively. however, sometime we pass vectors, so i'm sure we're using a different implementation, right?

here's a weird thing: in javaland, i do
            Boolean canRollback;
            try {
                canRollback = new Boolean(WorkflowUtil.canInvoke(
                    this.manager,
                    getDocumentFactory().getSession(),
                    getLogger(),
                    sourceDoc,
                    WORKFLOW_EVENT_EDIT));
            } catch (final Exception e) {
                throw new RuntimeException(e);
            }
            setParameter("canRollback", canRollback);
and in the jxtemplate, i use
<jx:when test="${usecase.getParameterAsBoolean('canRollback')">

the java Boolean evaluates to true, but the jexl evaluates to false.

when i work on strings exclusively by changing the condition to
<jx:when test="${usecase.getParameter('canRollback') == 'true'}">,
it works correctly.

can anyone explain?

thanks,

jörn



--
Jörn Nettingsmeier

Kurt is up in heaven now.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to