The problem is solved. I needed to change compiler for 1.6 BR Rafal
Dnia 26-01-2010 o godz. 10:31 Rafał Laczek <rafal_lac...@wp.pl> napisał(a): > Hi, > > In Wicket project that I try to make in Eclipse I have a problem with > "add" method. There is communicate "..is not applicable for the > argument(Form)". > In this case I want to add form component to my application. > The project works fine in NB and both for NB and Eclipse I have used the > same jars. > > I don't know what's going on. > Bellow I give whole page. > > Thanks in advance for advices. > > BR > Rafal > > > > > import java.util.Arrays; > import java.util.List; > import org.apache.wicket.markup.html.WebPage; > import org.apache.wicket.markup.html.form.Button; > import org.apache.wicket.markup.html.form.Form; > > > import org.apache.wicket.markup.html.form.RadioChoice; > > > > public class HomePage extends WebPage > { > private static final List SITES = Arrays.asList(new String[] { "The > Server Side", "Java Lobby", "Java.Net" }); > > public HomePage(){ > // Add a form > Form form = new Form("form"); > > add(form); > > RadioChoice radioChoice = new RadioChoice("sites",SITES); > form.add(radioChoice); > > } > } -- You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming with Passion!" group. To post to this group, send email to java-ee-j2ee-programming-with-passion@googlegroups.com To unsubscribe from this group, send email to java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en