cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bertrand Delacretaz <bdelacre...@apache.org>
Subject Re: CForms: where and how to specify the suggestion-list?
Date Thu, 22 Sep 2005 11:43:33 GMT
Le 22 sept. 05, à 11:44, Sylvain Wallez a écrit :
> ...Another solution would be for the suggestion list in the definition 
> to be given using the same syntax as <fd:selection-list> and have a 
> system-provided default pipeline to render the list:
>
>  <fd:field id="foo">
>    <fd:suggestion-list src="cocoon:/foo-suggestion-list"/>
>    <!-- or use whatever implementation of selection list you want -->
>  </fd:field>
>
> This will automatically generate a
>  <fi:styling suggest-href="_cforms-suggest-foo"/>
>
> which will be answered to in the sitemap with something like:
>  <map:match pattern="_cforms-suggest-*">
...

This is my favorite option, mainly because it makes good use of the 
sitemap features, like your example:

> ...specify different renderings of the suggestion list by catching the 
> "_cforms-suggest-xxxx" pattern before the generic "_cforms-suggest-*".

-Bertrand

Mime
View raw message