cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dennis Dam" <d....@hippo.nl>
Subject RE: choose don't work
Date Thu, 12 Aug 2004 07:54:25 GMT
Your test is not correct. it should be ..

<jx:when test="${role} == 'admin'"> 

.. I reckon 

DD

-----Original Message-----
From: Noureddine BEKRAR [mailto:nbekrar@rennes.jouve.fr]
Posted At: Wednesday, August 11, 2004 5:08 PM
Posted To: Cocoon User List
Conversation: choose don't work
Subject: jx:choose don't work


Hi all,

I have in my template page this jxtemplate code, the problem is that the "
do some thing " action and " do other thing " action are the two performed.

<jx:set var="role"

value="#{getAttribute($session,'user-role-id')}"/>



<jx:choose xmlns:jx="http://apache.org/cocoon/templates/jx/1.0">

<jx:when test="${role == 'admin'}">

</jx:when>

do something

<jx:otherwise>

do other thing

</jx:otherwise>

</jx:choose>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.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