Wow fast reply.
 
Great. Thanks for that. Will take a look at the todo code then.
 
Matt
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Igor Vaynberg
Sent: Thursday, 23 March 2006 12:03 PM
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] AJAX dynamic forms and links.

this is possible.

what you have to do is create a page that has an empty panel at first. then when one of those ajaxified links(AjaxLink or AjaxFallbackLink) is clicked it creates a panel that wraps the proper form, substitutes it with the empty panel and redraws it via ajax (by adding it to the provided ajax target).

the submit buttons on the form will have to be AjaxSubmitButton - on an error you can redraw the feedback panel to see any errors. on success you do the swap back.

check out ajax examples in wicket-examples. especially the todo example - which does a subset of what you want. keep in mind that the examples are still a work in progress so the code is not refined.

-Igor


On 3/22/06, WATSON Matthew <[EMAIL PROTECTED]> wrote:

Hi,

This is a very general question about AJAX support included within 1.2

Despite being familiar with - the excellent - wicket framework I'm yet to start experimenting with AJAX.

I need to achieve the following and was wondering if the build in components would allow this functionality.

Using a library analogy suppose I have a page with lists books. Initially the page is empty - as there are no books - except for two links.

which are 'add new book' and 'add new magazine'.

What I want to do is when you click either of these links is to create a new form - dynamically - within the page. Note each form will have different fields.

Then I want to submit the new book or magazine and have AJAX validation as well. Once a book or magaznie is correctly entered the form disappears and the list of books is shown. The form will also require the abillity to cancel aswell.

So my main question. Is this possible right now? How do i go about setting up a page to achieve this? I.e which components should I start playing around with.

Hopefully you might shed a bit of light on this for me.

Thanks in advance,
Matt

--- The information contained in this e-mail may be privileged and/or sensitive. It is intended for the addressee only and is not necessarily the official view or communication of the New Zealand Customs Service. If you are not the intended recipient you are asked to not disclose, copy, or make use of its contents. If received in error you are asked to destroy this e-mail and contact the sender immediately. Your assistance is appreciated.---

--- The information contained in this e-mail may be privileged and/or sensitive. It is intended for the addressee only and is not necessarily the official view or communication of the New Zealand Customs Service. If you are not the intended recipient you are asked to not disclose, copy, or make use of its contents. If received in error you are asked to destroy this e-mail and contact the sender immediately. Your assistance is appreciated.---

Reply via email to