I think yours managed-bean declaration is a little mistaken:
package com.acme; public class Person{ public String Name; //you have to be careful with case ;) public String name; public String getName() { return name; } public void setName(String name) { this.name = name; } public Person(){ } public Person(String name) { super(); this.name = name; }
} Java class in property file <managed-bean>
<managed-bean-name>person</managed-bean-name>
<managed-bean-class>com.acme.Person</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
<managed-property>
<property-name>name</property-name>
<value>Thomas</value>
</managed-property> <managed-bean> |
The above creates a object instance named "person" of a type "Person". And sets the property "name" of that object with the value "Thomas".
This is part of JSF platform that XPages implements and, the java code have to use Java Bean convention with getters and setters.
The advantage of this is that object is declared globally to your XPages application and you can access even in you SSJS code.
So, if you write your faces-config.xml with that declaration, You can create a XPages, put a editbox on it and bind the data with that bean.