Hi,

Do you use Ajax submit ?
If YES then you need to override #onError(AjaxRequestTarget, Form) add add
the feedback to the target manually.

Martin Grigorov
Wicket Training and Consulting


On Wed, Jun 11, 2014 at 6:21 PM, Lucio Crusca <lu...@sulweb.org> wrote:

> Here is a form:
>
>
> http://158.58.168.198/quotaly/wicket/bookmarkable/it.quotaly.web.Register
>
> here is the relevant html snippet:
>
>     <form class="inputForm" wicket:id="registrationform">
>       <fieldset>
>         <legend>Inserisci i tuoi dati</legend>
>           <div id="feedbackPanel">
>             <span wicket:id="feedback"/>
>           </div>
>         <div class="campoform">
>           <label wicket:for="nome">
>             <span class="inputformlabelspan">Nome *</span>
>             <span class="inputWrapper">
>               <input type="text" class="text_reg" placeholder="nome"
> wicket:id="nome">
>             </span>
>           </label>
>         </div>
> [...]
>
>
> and java code:
>
>     registrationform.add(new TextField("nome").setRequired(true));
>     registrationform.add(new FeedbackPanel("feedback"));
>
> If you click the "Invia" button (italian for "Submit"), the validation
> takes place (in fact my onSubmit() does not get called since many required
> fields are not filled in), but the FeedbackPanel remains empty (take a
> look at generated html).
>
> Similar code works in other wicket projects I've done, so I don't know
> what I'm doing different/wrong here... any clue?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

Reply via email to