I hope this is the right list for wicket-rad questions? (The one on SourceForge is empty.)

I am trying to create a form using Wicket-RAD 0.6 and get

Caused by: java.lang.NoSuchMethodError: org.wicketrad.jpa.propertyeditor.CreateBeanForm.add(Lorg/apache/wicket/ Component;)Lorg/apache/wicket/MarkupContainer; at org .wicketrad .jpa.propertyeditor.CreateBeanForm.<init>(CreateBeanForm.java:27) at org .wicketrad .jpa .propertyeditor .DefaultCreateBeanForm.<init>(DefaultCreateBeanForm.java:47) at org .wicketrad .jpa .propertyeditor .DefaultCreateBeanForm.<init>(DefaultCreateBeanForm.java:35) at org.icarbasel.aris.ui.web.pages.ProfilesPage $1.<init>(ProfilesPage.java:11) at org.icarbasel.aris.ui.web.pages.ProfilesPage.<init>(ProfilesPage.java: 11)
        ... 31 more

Does anybody know where the problem could lie?

Kaspar

--
My page has markup <div wicket:id="form"></div> and constructor

  public ProfilesPage()
  {
    BeanForm<?> form = new DefaultCreateBeanForm("form", new Profile())
    {
      @Override
      protected void afterSubmit()
      {
        System.err.println("Done...");
      }

    };
    add(form);
  }

The Profile class looks like this:

@Table
public class Profile implements Identifiable<Long>
{
  @Column
  @Id
  @GeneratedValue
  private Long id;

  @Column(unique = true)
  private String name;

  public Long getId()
  {
    return id;
  }

  public void setId(Long id)
  {
    this.id = id;
  }

  @FieldOrder(1)
  @TextField
  @Length(min = 5, max = 255)
  @LabelProperty
  public String getName()
  {
    return name;
  }

  public void setName(String name)
  {
    this.name = name;
  }

}

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to