Tuesday, August 4, 2009

Doubts related to JavaScript

go through
http://thepeninsulasedge.com/frank_nimphius/adf-faces-rich-client-javascript-programming/

Calling JavaScript from a Managed Bean

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.

Thursday, July 23, 2009

Assert enable in jdeveloper

JDK 1.4 and the Assert Keyword (2394626,2394613)
The parser and the code editor do not know about the 'assert' keyword yet. The workaround to enable JDK 1.4 assert keyword support
in the code editor is to uncomment the following line in the $(JDEV_INSTALL_DIR)\jdev\bin\jdev.conf file, and restart JDeveloper:


AddVMOption -DEDITOR_ENABLE_ASSERT=true

Or
go to weblogic bin folder and edit setDomainEnv.bat file
and search
'set JAVA_OPTIONS=%JAVA_OPTIONS% %enableHotswapFlag% -da'
then change it to

'set JAVA_OPTIONS=%JAVA_OPTIONS% %enableHotswapFlag% -ea'
if you want to change default server then you will find bin folder in
system11.1.1.1.33.54.07\DefaultDomain\