Olá pessoal, hoje irei falar sobre a ADF, mais especificamente sobre Double Click.
Criei um Managed Beans chamado de “DoubleClickBean”
public DoubleClickBean()
{
super();
}
public void goEditCurrentRow(ClientEvent clientEvent)
{
System.out.println("------doubleclick------");
}
No arquivo “jspx”, dentro da tag “document”, antes da tag “form”
<f:facet name="metaContainer">
<af:resource type="javascript">
function dblkfunction(event)
{
var source = event.getSource();
AdfCustomEvent.queue(source, "doubleClickOnRow",{},false);
}
</af:resource>
</f:facet>
No mesmo arquivo “jspx” , declara na tag “table”, antes da declaração das colunas
<af:clientListener method="dblkfunction" type="dblClick"/>
<af:serverListener type="doubleClickOnRow" method="#{doubleclick.goEditCurrentRow}"/>



Deixe um comentário