A frequent request we got for ADF Faces in previous releases is for a method that allows developers to call JavaScript functions on a page from a managed bean. Trinidad implemented an API for this and because ADF Faces RC is based on Trinidad, this functionality now becomes available in ADF FAces as well
ExtendedRenderKitService service = Service.getRenderKitService(facesContext, ExtendedRenderKitService.class);
service.addScript(facesContext, "alert('foo');");
Note that calling a JavaScript method may fail if the command component uses PPR.
Tuesday, August 4, 2009
Calling JavaScript from a Managed Bean
Posted by Career IT Developers at 1:44 AM
Labels: Adf Faces, ADFContext, Calling JavaScript from ADF, JavaScript
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment