On an XPage I have in a viewScope an arraylist with json objects which I want to submit to a managed bean:
function createPersons(){
var json:java.util.ArrayList = viewScope.get("persons");
personBean.createPersons(json);
}
here is an example of the viewscope content:
[0]
area Compliance
mandatory true
newArea false
person Patrick Kwinten/Web
prio 2
[1]
area Credits
mandatory true
newArea false
person Patrick Kwinten/Web
prio 2
[2]
area Food
mandatory true
newArea true
person Patrick Kwinten/Web
prio 2
Now I would like to define in my java class the method:
public void createPersons(ArrayList json){ utils.printToConsole(this.getClass().getSimpleName().toString() + " - createPersons() json"); utils.printToConsole("size json = " + json.size()); //todo; }
but I get the error message:
Description Resource Path Location Type JsonJavaObject cannot be resolved to a type personBean.java
Any advice anyone?