Hi everybody,
I have extended the field display in order to provide a new attribute named customValue, that shows the literal text you specify if set a value.
Now, I want to set this value via Javascript, like the following code:
But it doesn't work, due to ${val} I think refers to a model atribute named val, and it doesn't exists, val is the name of the javascript variable.Code:<script type="text/javascript"> var val = function customValueSample() { return "sample"; }; </script> ... <field:display field="order" customValue="${val}" id="s_es_prodevelop_agroasesor_dominio_FasesCultivo_order" object="${fasescultivo}" z="cABnCeGChiN9tlBbTlHpITjnmA8="/>
I try call the function directly, customValue="${customValueSample()}", but it shows an error saying that this function needs to be referenced previously by a namespace.
How can I use this Javascript function?
Thanks a lot...


Reply With Quote
