Hi all, I'm using clay full html and i need to call a javascript function from a component. The component is defined in clay-config as <component jsfid="widgetsSelectOne" extends="selectOneMenu" id="@property" allowBody="false"> <attributes> <set name="value" value="[EMAIL PROTECTED]@property}" /> </attributes> <element renderId="0" jsfid="selectItems"> <attributes> <set name="value" value="[EMAIL PROTECTED]@choices}" /> </attributes> </element> </component>
<component jsfid="alertingSelectOne" extends="widgetsSelectOne"> <attributes> <set name="onSelect" value="alert('onSelect fired!')"/> <set name="onChange" value="alert('onChange fired!')"/> </attributes> </component> And my html is coded as ... <span jsfid="widgetsGroup" property="day" choices="days" required="true"> <tr> <td> <label class="label" jsfid="widgetsLabel"> Days </label> </td> <TD> <select jsfid="alertingSelectOne"> <option value="1"> Day 1 </option> <option value="2"> Day 2 </option> </select> </TD> <td> <span class="required" jsfid="widgetsRequired">required</span> </td> <td> </td> </TR> </span> But unfortunately when it's run through clay the rendered html doesn't contian any onClick or onSelect code. It renders like this... <tr> <td> <label class="label" for="clayView:_id0:_id24:day">Days:</label> </td> <TD> <select id="clayView:_id0:_id24:day" name="clayView:_id0:_id24:day" size="1"> <option value="1">Mon</option> <option value="2">Tue</option> ... </select> </TD> <td> <span class="required">*</span> </td> <td> </td> </tr> Can anyone see what I'm doing wrong, or suggest how I get my event handlers to render? Cheers, Ian --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]