2009/11/18 Pieter Degraeuwe <[email protected]>

> Don't want to be rude; did you import the correct types (Component / Form)
>
I think so , since I can new a Form object, but  can not use the add
method.

> ?... some IDE's have the 'exclude import' funtionallity, which is great
> (don't want to mention its name, but it starts wich Intelli, and ends with
> J
> :-) --> I'm loving it :-)
>
> Pieter
>
> On Wed, Nov 18, 2009 at 4:07 PM, Igor Vaynberg <[email protected]
> >wrote:
>
> > you need to tweak your ide to enable java5 functionality i think.
> >
> > -igor
> >
> >
> > On Wed, Nov 18, 2009 at 5:26 AM, maven apache <[email protected]>
> > wrote:
> > > I create a class Loginpage which extends WebPage,how the IDE show me
> many
> > > errors when I use wicket 1.4 :
> > >
> > > public LoginPage() {
> > > User user = new User();
> > > Form logForm = new Form("form", new CompoundPropertyModel(user)) {
> > >
> > > protected void onSubmit() {
> > >
> > > }
> > >
> > > };
> > > logForm.setMultiPart(true);
> > > logForm.setMaxSize(Bytes.kilobytes(1000));
> > >
> > > add(logForm);  //////////// Here it says :"The method add(Component[])
> in
> > > the type MarkupContainer is not applicable for the arguments (Form)"
> > >
> > > TextField accountTextfield = new TextField("account");
> > >
> > > logForm.add(accountTextfield); ///////////// here It says:"The method
> > > add(IFormValidator) in the type Form is not applicable for the
> arguments
> > > (TextField)"
> > > }
> > >
> > > Why?
> > >
> > > Since I did not got the errors when I use wicket-1.3.
> > >
> > > BTW, is the class DatePicker deprecated?
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
> >
>
>
> --
> Pieter Degraeuwe
> Systemworks bvba
> Belgiƫlaan 61
> 9070 Destelbergen
> GSM: +32 (0)485/68.60.85
> Email: [email protected]
> visit us at http://www.systemworks.be
>

Reply via email to