cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremy Quinn <jer...@media.demon.co.uk>
Subject Re: dynamic selection-lists
Date Thu, 17 Jun 2004 10:29:55 GMT

On 17 Jun 2004, at 11:17, Sylvain Wallez wrote:

> Jeremy Quinn wrote:
>
>> Hi All
>>
>> I am trying to generate a selection-list for CForms via JXTemplate,  
>> so  it can be populated by static constants from Java Objects. No  
>> bizdata  is being passed to the template.
>>
>> something like this:
>>
>> <fd:selection-list
>>     xmlns:jx="http://apache.org/cocoon/templates/jx/1.0"
>>     xmlns:i18n="http://apache.org/cocoon/i18n/2.1"
>>     xmlns:fd="http://apache.org/cocoon/forms/1.0#definition"
>> >
>>     <fd:item   
>> value="${Packages.org.apache.cocoon.bean.query.SimpleLuceneCriterion.A 
>> NY _MATCH}">
>>         <fd:label><i18n:text  i18n:  
>> catalogue="local">search.${Packages.org.apache.cocoon.bean.query.Simpl 
>> eL uceneCriterion.ANY_MATCH}.match</i18n:text></fd:label>
>>     </fd:item>
>>     . . .
>> </fd:selection-list>
>>
>> The expressions result in empty strings.
>>
>> Can anyone see what I am doing wrong?
>
>
> The Packages.xxx notation is JavaScript. The expression here are JEXL,  
> in which I guess you should directly write "org.apache....".

Thanks for your reply, Sylvain.

I have used the Packages.xxx notation before ( though a very long time  
ago ;) )

I tried this without the 'Packages.' and I still get empty strings.

regards Jeremy



--------------------------------------------------------

                   If email from this address is not signed
                                 IT IS NOT FROM ME

                         Always check the label, folks !!!!!
--------------------------------------------------------


Mime
View raw message