Hi René,
Framework does seem to generate a javascript for commandButton. Following is
the extract from the view source. See the "clear_frm124()". That is not my
code..
<input id="frm124:commandPanel:_idsc22" name="frm124:commandPanel:_idsc22"
type="submit" value="Save" onclick="javascript:return
validateForm();clear_frm124();" onmouseover="javascript: if
(this.disabled==0) this.className='Btn1Hov'" onmouseout="javascript: if
(this.disabled==0) this.className='Btn1'" class="Btn1" onfocus="javascript:
if (this.disabled==0) this.className='Btn1Hov'" onblur="javascript: if
(this.disabled==0) this.className='Btn1'" />
extract from clay-config.xml
<component jsfid="saveBtn" extends="baseCommand">
<attributes>
<set name="value" value="#{labels['save']}" />
<set name="actionListener" value="[EMAIL PROTECTED]" />
<set name="binding" value="[EMAIL PROTECTED]" />
<set name="disabled" value="[EMAIL PROTECTED] < 2}" />
<set name="onclick" value="javascript:return validateForm()"
/>
</attributes>
</component>
(Don't bother about userPrivs.. it's related to my logic)
Thanks
--Vish
--
View this message in context:
http://www.nabble.com/Javascript-integration---on-ActionListner-event-tf2039511.html#a5615613
Sent from the Shale - User forum at Nabble.com.