cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <sylv...@apache.org>
Subject Re: dynamic selection-lists
Date Thu, 17 Jun 2004 10:17:57 GMT
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.ANY 
> _MATCH}">
>         <fd:label><i18n:text  i18n: 
> catalogue="local">search.${Packages.org.apache.cocoon.bean.query.SimpleL 
> 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....".

Sylvain

-- 
Sylvain Wallez                                  Anyware Technologies
http://www.apache.org/~sylvain           http://www.anyware-tech.com
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }


Mime
View raw message