For more information, see <G id = "1"> How-to handle and respond to mouse double clicks </G>.
When you double-click a row of a table, popup and sub-table data are displayed in popup.
Add the attribute at the end of the primary table
<Af: clientListener method = "handleTableDoubleClick" type = "dblClick"/>
<Af: serverListener type = "TableDoubleClickEvent" method = "# {empbean. handleTableDoubleClick}"/>
ClientListener captures the double-click row event on the client and sends it to the handleTableDoubleClick method of js;
Write the handleTableDoubleClick event under the af: document page.
<Af: resource type = "javascript">
Function handleTableDoubleClick (evt) {var table = evt. getSource ();
AdfCustomEvent. queue (table, "TableDoubleClickEvent", {}, true );
Evt. cancel ();
}
</Af: resource>
ManageBean code:
Method Control Server pop-up popup
Public void handleTableDoubleClick (ClientEvent ce ){
RichPopup popup = this. getGetpopup (); // popup is a RichPopup object bound to the popup component of the server.
// No hints means that popup is launched in
// Center of the page
RichPopup. PopupHints ph = new RichPopup. PopupHints ();
Popup. show (ph );
}
PS:
Popup is displayed when you double-click a row in table. The pop-up is about search help.
The field in the column is 1 to 12 months.
Double-click a column to input the month of the column.
Commandlink is required, regardless of double-click.