value="#{requestScope.error}" will only get you something that looks like this: "com.ibm.xsp.exception.EvaluationExceptionEx: Error
while executing JavaScript action expression"
I've found a way to get the "Control" with:
//code for control (button click etc.)
if(error instanceof com.ibm.xsp.exception.XSPExceptionInfo === false) {
var msg = requestScope.error.getCause();
return msg.getErrorComponentId();
}
//code for event (onClientLoad etc.)
else if (error instanceof com.ibm.xsp.exception.XSPExceptionInfo === true) {
return error.getErrorComponentId();
}
else {
""
}
I'm not sure how to get the "Page Name" the error occurred on yet, or how to display JavaScript code (where it highlights in red where it thinks the code erred at)