Hi,
Wicket RAD is actually not officially part of Wicket, so the right forum is
here: http://www.nabble.com/Wicket-RAD-f35257.html

However, looking at your code, what version of Wicket are you using, and is
it really on the classpath?
the add call on the line referred to in the stacktrace is actually the add()
method on Component, which should be there. 


hbf wrote:
> 
> 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: [email protected]
> For additional commands, e-mail: [email protected]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-wicket-rad--Problem-creating-form-tp22106358p22106869.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to