Jörn Nettingsmeier schrieb:
> 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.

Did you introduce this method?

http://lenya.apache.org/apidocs/2.0/modules/usecase/org/apache/lenya/cms/usecase/impl/UsecaseProxy.html

In the trunk, there is no UsecaseProxy.getParameterAsBoolean() method
(yet).

-- Andreas

> 
> 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
> 
> 
> 


-- 
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch


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

Reply via email to