Try using elements instead of targets:
@EventListener(elements = "someDiv", events = "clickRadio", submitForm =
"form")
Henri Dupre wrote:
>
> I have seen some suggestions on how to handle @RadioGroup and
> @EventListener
> here but none of them works for me.
> One suggestion is to add a function to any div element
> document.getElementById('someDiv').clickRadio=function(radio) {};
>
> add a onclick to the @Radio that calls that function
>
>
> plus something like
>
> @EventListener(targets = "someDiv", events = "clickRadio", submitForm =
> "form")
>
> This doesn't seem to do anything unfortunately.
> Does it matter where the
> "document.getElementById('someDiv').clickRadio=function(radio)
> {};" is declared in the page?
> I've been lazy and made a <script> block after the 'someDiv' element for
> that line.
> And how could I even trace this in firebug?
>
> Thanks
>
> --
> Henri Dupre
> Actualis Center
>
>
--
View this message in context:
http://www.nabble.com/%40radiogroup-and-%40EventListener-tp14091403p14250261.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]