PropertyModel « wicket « Java Enterprise Q&A

1. Wicket PropertyModel strangeness?

I'm new to Wicket and was trying the following configuration:

class User {
   private String password;


   public void setPassword(String password) {

2. PropertyModel Expression's Exception : org.apache.wicket.WicketRuntimeException: No get method defined for class:

I used PropertyModel as the part of my DropDownChoice as following:

    List<String> choices = Arrays.asList(new String[] { "Library", "School Office", "Science Dept" });
    String selected ...