My question is: is this also possible with Wicket? I don't want to use Ajax
forms, I'd rather do everything in the DOM of the browser and then submit it

yes, you can work on your form dom, adding form components with known names,
and dial with then on your onSubmit method like:
      getRequest().getParameter("streetNameOnGeneratedFormComponentX");

Sometimes I send to browse form components that the user may want to use or
not, inside an div, that I show conditionally based on javascript
conditions. May to be an interesting solution if you know an limit to those
dynamic forms components number.

BTW, why you don't want to use ajax? This work can be extremely simple using
it...

On Wed, Oct 14, 2009 at 4:24 PM, Erik Pragt <erik.pr...@jworks.nl> wrote:

> Hi all,
>
> I'm relatively new to Wicket, and I have a small question. I have a dynamic
> form in Javascript, which can have an unlimited set of input fields. For
> example, I can have a form to manage persons, and the user can enter
> multiple addresses, which are currently handled by a jQuery clone of a piece
> of HTML.
>
> My question is: is this also possible with Wicket? I don't want to use Ajax
> forms, I'd rather do everything in the DOM of the browser and then submit
> it. This doesn't sound like a unique situation to me, but I have a hard time
> finding the information how to handle this from a Wicket perspective. I did
> found this tutorial:
>
> http://utku-utkan.blogspot.com/2007/07/dynamic-forms-in-wicket.html, but
> the form there is managed by Wicket, and I want the browser to manage this.
>
> Is this possible?
>
> Thanks in advance,
>
> Erik Pragt
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Pedro Henrique Oliveira dos Santos

Reply via email to