Luca Morandini wrote:
Sylvain Wallez wrote:
Luca Morandini wrote:
morever, setting the image source from a action-handler flow script
would be more elegant.
That's exactly what the ${image_name} is, e.g.:
form.showForm("my-form-pipeline", {image_name : "map-" + areaId});
Sure, you set the value and pass that parameter from within flow, but
to understand its use you should take a look at the form template as
well... while the setValue() is completely understandable from the
flow code.
I mean, nothing really substantial here... only I'd like it to be done
in more straightforward way: suppose there's a developer willing to
add a dynamic image using CForms, which way he would find easier to
understand ?
You may be right. I don't want to refrain you from writing a special
widget, but just want to outline the possible options we have today! Now
if you feel the itch, just scratch it ;-)
Sylvain
--
Sylvain Wallez Anyware Technologies
http://apache.org/~sylvain http://anyware-tech.com
Apache Software Foundation Member Research & Technology Director