cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruno Dumon <br...@outerthought.org>
Subject Re: JX expression - strange jx:if behaviour
Date Fri, 23 Jul 2004 12:44:12 GMT
On Fri, 2004-07-23 at 13:47, Gunter D'Hondt wrote:
> Hi,
> 
> I've got the following JX-code inside my xml:
>         <jx:set var="savebuttonvisible"
> value="#{getAttribute($request,'savebutton')}"/>        
>         Value=<jx:out value="${savebuttonvisible}"/>
>         <jx:if test="${savebuttonvisible}">
>         button
>         </jx:if>
> 
> And the following outcome:
>         Value=false
>         button
> 
> I've already tried other expressions like
> test="${savebuttonvisible}=true" or test="${savebuttonvisible}='true'"
> but it always evaluates as true.

The expression is always inside the ${} or #{}, so putting "=true"
outside of these won't do anything.

Try:

${savebuttonvisible=true}

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno@outerthought.org                          bruno@apache.org


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


Mime
View raw message