Bruno,
Indeed, <jx:if test="#{$savebuttonvisible='true'}"> finally did the trick!
(cross # and single quotes ' are needed)
Regards,
Gunter
| Bruno Dumon <[EMAIL PROTECTED]>
23/07/2004 14:44
|
|
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
[EMAIL PROTECTED] [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
