I tried to find a list of all possible events that can be used in the a4j: support event attribute. I can’t find the link that lists them, maybe someone can provide the link? I know about obvious ones like onclick, onchange, etc.
The reason I'm asking about this is because I have an input text box. It has an onkeyup event attached to it via the a4j: support tag. It should include a text field when an event fires. The event does not fire when the user right-clicks and inserts content into the field. Is there an alternative event that I could use to provide control of this case?
<h:inputText id="someName" value="#{myBean.example.exampleName}" maxlength="25" style="width:280px">
<a4j:support event="onchange" reRender="exampleTab"
action="#{myBean.activateTabPanel}" ajaxSingle="true"
ignoreDupResponses="true" />
</h:inputText>
<rich:tabPanel id="exampleTab" switchType="server"
style="width:100%;height:448px;" styleClass="top_tab"
inactiveTabClass="inactive_tab" activeTabClass="active_tab"
selectedTab="#{myBean.exampleTabState.selectedTab}">
</rich>
**** *****
, jQuery. . .
jQuery(document).ready(function() {
var common = new Site.Common();
});
Site.Common = function() {
if ( jQuery('input[id$="suggest"]') ) {
jQuery('input[id$="suggest"]').bind('paste', Site.Common.handleMousePaste.bind(this));
}
};
Site.Common.handleMousePaste = function(event) {
var idParts = event.target.id.split(':');
if (idParts.length >= 2) {
var formattedID = "#" + idParts[0] + "\\:" + idParts[1];
}
else {
var formattedID = "#" + event.target.id;
}
setTimeout(function() { jQuery(formattedID).keyup(); }, 10);
};