この問題に似たJavaBeanからssjsを呼び出す必要があります。問題は、実行する必要のあるコードが構成ドキュメントからのものであり、次のようになっている可能性があることです。
getComponent("xxx").getValue();
私は次のようなバージョンを作成しました:
String compute = doc.getItemValueString("SSJSStuff");
String valueExpr = "#{javascript:" + compute + "}";
FacesContext fc = FacesContext.getCurrentInstance();
Application app = fc.getApplication();
ValueBinding vb = app.createValueBinding(valueExpr);
String vreslt = vb.getValue(fc).toString();
しかし、私は得る"Exception in xxx: com.ibm.xsp.exception.EvaluationExceptionEx: Error while executing JavaScript computed expression"
近くにいると思いますが、丘の向こうには見えません。