Did you tried using #{srcElem[2].checked ? 'true' : 'false'} instead of $srcElem[2].checked ? 'true' : 'false' ??

Best Regards

Rafael Mauricio Nami

2005/11/30, Matthias Kahlau <[EMAIL PROTECTED]>:
Hi!


I tried to use the t:jsValueChangeListener to react, when a specific radio
button is selected or deselected, but got the following errors in the
Firefox 1.0 _javascript_ console (but didn't also work in Internet Explorer
6):


uncaught exception: Error encountered : srcElem has no properties
undefinedSource-Element id: _id1:ergPubBeginnRadios
Source-element: null
Type of source-element: object


I used the following approach inside a selectOneRadio (with
id="ergPubBeginnRadios") just to test:

<t:jsValueChangeListener for="">        property="value"
                expressionValue="$srcElem[2].checked ? 'true' : 'false'" />


Does anybody know what's wrong?


Regards,
Matthias


Reply via email to