Ta, I've just upgraded and prefixed all wicket imports with org.apache.

Only problemo seems to be that

wicket.extensions.markup.html.datepicker.DatePicker

has disappeared.

Any idea where it went?

Derek


-----Original Message-----
From: [EMAIL PROTECTED] on behalf of Matej Knopp
Sent: Mon 4/30/2007 2:10 PM
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Nested Forms and onSubmit()?
 
hi,

i just want to mentioned that there were a nasty bug in 1.3 nested
form processing that was fixed today, so if you have any issues with
it i suggest you upgrading wicket to see if it helps.

-Matej

On 4/30/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
> As for your first question, I think the following is a better approach:
>
>
> public AddressFieldsetPanel(String id, IModel address) {
>     super(id, new CompoundPropertyModel(address));
> }
>
> and :
>
> form.add(new AddressFieldsetPanel("billing", new
> PropertyModel(form.getModel(), "billing"))));
> form.add(new AddressFieldsetPanel("shipping", new
> PropertyModel(form.getModel(), "shipping"))));
>
> then the wiring of the addresses can be done in the model object itself:
>
> Invoice invoice = new Invoice();
> invoice.setBilling(new Address());
> invoice.setShipping(new Address());
>
> Martijn
>
> On 4/30/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > > imho all he should do is extend a panel, and make sure that panel is 
> > > always inside a form.
> > > there is no need to have a form to group a few fields together.
> >
> > Thanks, that's how I was thinking it should be a Fieldset so to speak. Have 
> > progressed a bit
> > down that route but still have a couple of related questions.
> >
> > Am new to Wicket and trying to learn how to do forms (binding and 
> > validation) the Wicket way.
> > Here's where I'm at so far with a simplistic example I'm using (abbreviated 
> > syntax for clarity):
> >
> > PurchaseOrder {
> >  String customerName
> >  PostalAddress deliveryAddress
> >  PostalAddress invoiceAddress
> > }
> >
> > PostalAddress {
> >  String addressLine
> >  String municipality
> >  String postalCode
> >  String country
> > }
> >
> > PurchaseOrderForm extends Form
> > {
> >    public PurchaseOrderForm(String name)
> >    {
> >       super(name, new CompoundPropertyModel(new PurchaseOrder()));
> >       add(new RequiredTextField("customerName"));
> >       add(new PostalAddressFieldset("deliveryAddress", new 
> > PostalAddress()));  //  ???
> >       add(new PostalAddressFieldset("invoiceAddress", new 
> > PostalAddress()));   //  ???
> >    )
> > }
> >
> > PostalAddressFieldset extends Panel
> > {
> >     public PostalAddressFieldset(String id, PostalAddress postalAddress)    
> >    // ???
> >     {
> >       super(id, new CompoundPropertyModel(postalAddress));  // ???
> >       add(new RequiredTextField("addressLine"));
> >       add(new RequiredTextField("municipality"));
> >       add(new RequiredTextField("postalCode"));
> >       add(new RequiredTextField("country"));
> > }
> >
> > Bit I'm not sure about is how to wire up the binding of the nested model 
> > object (PostalAddress)
> > to the nested Fieldset (PostalAddressFieldset), see question marks in 
> > comments above.
> > Have done it like this so far to get it to compile but it is obviously 
> > wrong as I'm
> > interested in the nested PostalAddress objects, not new ones.
> >
> > Second question is whether Wicket provides support for creating unique id's 
> > for elements.
> > My html for the PostalAddressFieldset includes things like:
> >
> > <input wicket:id="addressLine" id="addressLine" type="text" size="40"/>
> >
> > Obviously this is no good as when I use this component multiple times on a 
> > form, I end up
> > with multiple fields with the same id.
> >
> > Any advice on best practice or pointers to examples that demonstrate these 
> > techniques would be
> > appreciated.
> >
> > Cheers,
> > Derek
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > -----Original Message-----
> > From: [EMAIL PROTECTED] on behalf of Igor Vaynberg
> > Sent: Sun 4/29/2007 8:19 PM
> > To: wicket-user@lists.sourceforge.net
> > Subject: Re: [Wicket-user] Nested Forms and onSubmit()?
> >
> > imho all he should do is extend a panel, and make sure that panel is always 
> > inside a form.
> >
> > there is no need to have a form to group a few fields together.
> >
> > -igor
> >
> >
> >
> > On 4/29/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
> >
> >         One note: this is a 1.3 feature so only expect it to work there.
> >
> >         What happens with the nested forms is that the buttons stay, and 
> > iirc
> >         only the inner form is submitted when a button is pressed inside 
> > that
> >         inner form.
> >
> >         I think the discussion never got to a conclusion on what happens 
> > when
> >         the outer form is submitted. I think we can still change that 
> > behavior
> >         (we're not final or in release candidate mode).
> >
> >         FormComponent is for input controls (textfields, buttons,
> >         dropdownchoice, etc). Forms are for the form tag. So in your case, 
> > you
> >         should extend Form, and Wicket should take care of processing the
> >         right form (inner, outer, sibling) for you.
> >
> >         But as I said, it probably is still a bit raw currently, as it is a
> >         new feature and not widely used.
> >
> >         Martijn
> >
> >         On 4/29/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >         >
> >         > > Wicket supports nested forms. The inner form tags are replaced 
> > with
> >         > > <span> elements. This is a component framework, where you 
> > expect forms
> >         > > to be able to be nested (form on a reusable panel anyone?).
> >         >
> >         > I'm just starting to work on a similar thing: an address form 
> > panel to
> >         > be used in other forms.
> >         >
> >         > Had assumed I should be extending FormComponent rather than Form 
> > itself.
> >         > Are you suggesting otherwise? Or does the nested form's submit 
> > button
> >         > get removed too?
> >         >
> >         > Is there an example of this kind of thing? I couldn't find one.
> >         >
> >         > Cheers,
> >         > Derek
> >         >
> >         >
> >         >
> >         > -----Original Message-----
> >         > From: [EMAIL PROTECTED] on behalf of Martijn Dashorst
> >         > Sent: Fri 4/27/2007 2:37 PM
> >         > To: wicket-user@lists.sourceforge.net 
> > <mailto:wicket-user@lists.sourceforge.net>
> >         > Subject: Re: [Wicket-user] Nested Forms and onSubmit()?
> >         >
> >         > On 4/27/07, jan_bar <[EMAIL PROTECTED]> wrote:
> >         > > I think that you cannot nest <form> in HTML. You have to "nest" 
> > them with
> >         > > CSS. This will also solve your trouble with form submits - I 
> > think that the
> >         > > browser simply ignores the nested <form> tags.
> >         >
> >         > Wicket supports nested forms. The inner form tags are replaced 
> > with
> >         > <span> elements. This is a component framework, where you expect 
> > forms
> >         > to be able to be nested (form on a reusable panel anyone?).
> >         >
> >         > Martijn
> >         > --
> >         > Learn Wicket at ApacheCon Europe: http://apachecon.com
> >         > Join the wicket community at irc.freenode.net: ##wicket
> >         > Wicket 1.2.6 contains a very important fix. Download Wicket now!
> >         > http://wicketframework.org
> >         >
> >         > 
> > -------------------------------------------------------------------------
> >         > This SF.net email is sponsored by DB2 Express
> >         > Download DB2 Express C - the FREE version of DB2 express and take
> >         > control of your XML. No limits. Just data. Click to get it now.
> >         > http://sourceforge.net/powerbar/db2/ 
> > <http://sourceforge.net/powerbar/db2/>
> >         > _______________________________________________
> >         > Wicket-user mailing list
> >         > Wicket-user@lists.sourceforge.net
> >         > https://lists.sourceforge.net/lists/listinfo/wicket-user 
> > <https://lists.sourceforge.net/lists/listinfo/wicket-user>
> >         >
> >         >
> >         > ***** Email confidentiality notice *****
> >         > This message is private and confidential. If you have received 
> > this message in error, please notify us and remove it from your system.
> >         >
> >         > The London School of Economics and Political Science (the School) 
> > is a company limited by guarantee, registered in England and Wales, under 
> > registered number 00070527, and having its registered office at 10th Floor, 
> > Tower One, Houghton Street, London WC2A 2AE.
> >         >
> >         > The inclusion of this information does not of itself make this 
> > email a business document of the School and, to the maximum extent 
> > permitted by law, the School accepts no liability for the content and 
> > opinions in any non-business emails.
> >         > 
> > -------------------------------------------------------------------------
> >         > This SF.net email is sponsored by DB2 Express
> >         > Download DB2 Express C - the FREE version of DB2 express and take
> >         > control of your XML. No limits. Just data. Click to get it now.
> >         > http://sourceforge.net/powerbar/db2/
> >         > _______________________________________________
> >         > Wicket-user mailing list
> >         > Wicket-user@lists.sourceforge.net 
> > <mailto:Wicket-user@lists.sourceforge.net>
> >         > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >         >
> >         >
> >         >
> >
> >
> >         --
> >         Learn Wicket at ApacheCon Europe: http://apachecon.com
> >         Join the wicket community at irc.freenode.net: ##wicket
> >         Wicket 1.2.6 contains a very important fix. Download Wicket now!
> >         http://wicketframework.org
> >
> >         
> > -------------------------------------------------------------------------
> >         This SF.net email is sponsored by DB2 Express
> >         Download DB2 Express C - the FREE version of DB2 express and take
> >         control of your XML. No limits. Just data. Click to get it now.
> >         http://sourceforge.net/powerbar/db2/
> >         _______________________________________________
> >         Wicket-user mailing list
> >         Wicket-user@lists.sourceforge.net
> >         https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
> >
> >
> >
> > ***** Email confidentiality notice *****
> > This message is private and confidential. If you have received this message 
> > in error, please notify us and remove it from your system.
> >
> > The London School of Economics and Political Science (the School) is a 
> > company limited by guarantee, registered in England and Wales, under 
> > registered number 00070527, and having its registered office at 10th Floor, 
> > Tower One, Houghton Street, London WC2A 2AE.
> >
> > The inclusion of this information does not of itself make this email a 
> > business document of the School and, to the maximum extent permitted by 
> > law, the School accepts no liability for the content and opinions in any 
> > non-business emails.
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > _______________________________________________
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
> >
>
>
> --
> Learn Wicket at ApacheCon Europe: http://apachecon.com
> Join the wicket community at irc.freenode.net: ##wicket
> Wicket 1.2.6 contains a very important fix. Download Wicket now!
> http://wicketframework.org
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


***** Email confidentiality notice *****
This message is private and confidential. If you have received this message in 
error, please notify us and remove it from your system.
 
The London School of Economics and Political Science (the School) is a company 
limited by guarantee, registered in England and Wales, under registered number 
00070527, and having its registered office at 10th Floor, Tower One, Houghton 
Street, London WC2A 2AE.
 
The inclusion of this information does not of itself make this email a business 
document of the School and, to the maximum extent permitted by law, the School 
accepts no liability for the content and opinions in any non-business emails.

<<winmail.dat>>

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to