cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Olivier Billard <obill...@jouve.fr>
Subject Re: Antwort: Re: jxtemplate: jx:if strange behaviour :)
Date Mon, 26 Jul 2004 14:20:22 GMT
Stephane,

Do you check the output just after the JXTemplate generator ?

Stephane Delort wrote:
> 
> re,
> 
> Well after a check it appear that the namespace is included and I do not
> have any <jx:*> tags in the output.
> Still trying...
> 
> 
> Thanx,
> Stephane
> 
> 
>>Hi Stephane,
> 
> 
>>Are you sure you set the correct namespace ?
>>Are the jx tags really interpreted (in other, you may have <jx:*> tags
>>after your generation) ?
> 
> 
>>It happened to me when I forgot to declare the jx namespace.
> 
> 
>>--
>>Olivier Billard
> 
> 
>>Stephane Delort wrote:
>>Hi all,
>>
>>>sorry to post with the same title as a previous thread but my problem is
>>>quite the same :
>>>
>>>I would like to compare 2 values in a jxtemplate but I can't get it to
>>>work.
>>>here is my code :
>>>
>>><jx:forEach  items="#{language}" varStatus="status"  >
>>>  <jx:choose>
>>>    <jx:when test="#{status.current = $pagelang.pagelang}">
>>>        ${status.current.label}
>>>    </jx:when>
>>>    <jx:otherwise>
>>>        ${status.current.value} #{status.current.value = '8'}
>>>${pagelang.pagelang}
>>>    </jx:otherwise>
>>>  </jx:choose>
>>></jx:forEach>
>>>
>>>
>>>asa resault I have :   8 false 8
>>>this means that the program went to the "otherwise".
>>>
>>>I tried with #, $, "" and '' but still I am far away from the solution,
>>>if anyone have an ieda ....
>>>
>>>
>>>Thanx in advance,
>>>Stephane


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


Mime
View raw message