I am trying to create a page using richfaces, I created the following field
<h:inputText value="#{petTest.pet.name}"/>
faces-config:
<managed-bean>
<managed-bean-name>petTest</managed-bean-name>
<managed-bean-class>petstore.PetTest</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
managed bean:
package petstore;
public class PetTest {
private Pet pet;
public Pet getPet(){
return pet;
}
public void setPet(Pet pet){
this.pet = pet;
}
}
But I get a field and within it the literal value #{petTest.pet.name}
instead of the value of the field. What am I doing wrong?