Hi Steven,

we're working on supporting nested value tags, in the meantime just use an empty value tag and a BV tag with the same name:
<!--V 'FORM:SELECT:foo'/-->
<!--BV 'FORM:SELECT:foo'-->onchange="[[[SOMETHING]]]"<!--/BV-->

Best regards,

Geert

On 24 Jun 2006, at 02:47, Steven Grimm wrote:

The cookbook (bottom of the Forms page) describes how to add static attributes to a form field. Is there a way to do the same thing with dynamic attributes?

For example, say I have a bunch of <select> and I want to put an "onchange" tag on each of them with some dynamically-generated JavaScript code.

<!--V 'FORM:SELECT:foo'-->onchange="[[[SOMETHING]]]"<!--/V-->

I can't use another <!--V--> because RIFE doesn't allow nested values. I tried calling setValue("FORM:SELECT:foo", ...) but that doesn't do it.

Obviously I can generate the <select> HTML myself, but then I lose RIFE's nice autogeneration based on my inList constraint and the current value from the bean.

-Steve
_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users


--
Geert Bevin
Uwyn "Use what you need" - http://uwyn.com
RIFE Java application framework - http://rifers.org
Music and words - http://gbevin.com


_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users

Reply via email to