Wednesday, November 14, 2012

Examine contents of a JavaScript Object

Here is a bit of a code to peek into the contents of a JavaScript object:

1:  for( key in inst ) {  
2:        console.log( "key is " , [ key ] , ", value is " , inst[ key ] );  
3:        if ((key == "input")||(key == "dpDiv")||(key =="settings")||(key == "trigger" )){  
4:             var subObj = inst[key];  
5:             for (key1 in subObj) {  
6:                  console.log( "key1 is ", [ key1 ] , ", value is " , subObj[ key1 ] );  
7:             }  
8:        }  
9:  }  
The above writes out the object state to the browser's console. Note the comma separation in the log() call.

Thursday, October 25, 2012

WAS 7.0 app will not start inside RAD 7.5

PROBLEM:

The following error message appears when a J2EE app is attempted for deployment-
A composition unit with name  already exists. Select a different application name.

RESOLUTION:

Delete the /blas and /cus directories for the bad application from the configuration.
The resources will be located in the config directory of the profile.:

/config/cells/qcell/blas
/config/cells/qcell/cus 

See the following URL for more details:

Once the above directories are deleted, add projects to WAS Server inside RAD and then publish the application.