voyent
Icefaces 1.8.2->3.3.0_P03 ace:datatable dblclick migrated from rowSelector clickAction..  XML
Forum Index -> General Help
Author Message
avadFaces

Joined: 13/Nov/2007 00:00:00
Messages: 4
Offline


how can we migrate the ice:rowSelector clickAction in 1.8.2 to 3.3.0_P03 ace:datatable?
in 1.8.2 we use it for navigate by dblclick (get Information if single or dblclick from ClickActionEvent.isDblClick)
in Version 3.3.0 P03 we found
ace:ajax event="cellDblClick" listener="..."
but we don't know how to trigger an action-Methode on the ace:datatable
can anyone give us an example?
ken.fyten

Joined: 26/Oct/2004 00:00:00
Messages: 1338
Offline


Hi,

See http://icefaces-showcase.icesoft.org/showcase.jsf?grp=aceMenu&exp=dataTableClick for a usage example.

Regards,
Ken

Ken Fyten
VP Product Development
ICEsoft Technologies, Inc.
avadFaces

Joined: 13/Nov/2007 00:00:00
Messages: 4
Offline


there we found no ClickAction,
so my Question is if we should navigate from within the cellDlbClick-Listener like that:

String destinationOutcome="myDestination";
FacesContext fc = FacesContext.getCurrentInstance();
fc.getApplication().getNavigationHandler().handleNavigation(fc, null, destinationOutcome);

this works, but is this what we should do?

(in Icefaces 1.8.2-Version of our application we only navigate from action-Methods with explizit outcome/rc and we normaly don't need to call NavigationHandler for handleNavigation from a Listener)

ken.fyten

Joined: 26/Oct/2004 00:00:00
Messages: 1338
Offline


The ajax client event listeners aren't wired to support the direct navigation handler like the action events would, but your approach above should work just fine.

Note that you could use either the ace:dataTable "cellClick" or "cellDblClick" client event to trigger the navigation, depending on your preference.

Regards,
Ken

Ken Fyten
VP Product Development
ICEsoft Technologies, Inc.
 
Forum Index -> General Help
Go to:   
Powered by JForum 2.1.7ice © JForum Team