cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luca Morandini <luca.morandi...@tin.it>
Subject Re: Server-side image map in CForms ?
Date Mon, 23 May 2005 20:43:41 GMT
Sylvain Wallez wrote:

> Luca Morandini wrote:
>> Well, but I should be able to change the image's src attribute 
>> dynamically, wich is not allowed in action widget... right ?
> 
> Yes you can, as the image src is in the form template. Of course you 
> have to use a dynamic template (e.g. JXTG):
>  <ft:action id="map">
>    <fi:styling type="image" src="images/${image_name}.jpg"/>
>  </ft:action>

Sure, but I'd rather avoid using dynamic templates for otherwise static 
forms... morever, setting the image source from a action-handler flow 
script would be more elegant.

Regards,

--------------------
    Luca Morandini
www.lucamorandini.it
--------------------


Mime
View raw message