[ 
https://issues.apache.org/jira/browse/WICKET-1247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12556293#action_12556293
 ] 

Edvin Syse commented on WICKET-1247:
------------------------------------

Look at http://www.sysedata.no/kampanje (In Norwegian, but you get the point).

I started out having all the input elements in one form. The contact 
information in the bottom obviously has some validators, but the 
domainsearch input fields in the top of the page (Gratis domene 1/2/3) does 
not. If you enter a domain name and hit enter or click the 
search button (søk), your input is saved in the model, and a modal window is 
opened and performs a search based on the information in the 
model object.

I found I needed to have the domainsearch input fields in a different form (but 
using the same model object), so that it was possible to 
submit the form and open the modalwindow BEFORE all the contact information was 
entered. Here wicket forces me to use two forms to work on 
the same model, which could be easily avoided with a getDefaultFormValidation() 
method.

Sorry for the messy explanation, did you get my point? :)

-- Edvin







> RFE: Option to avoid form validation but still get modelbinding in 
> AbstractSubmitLink: getDefaultFormValidation()
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: WICKET-1247
>                 URL: https://issues.apache.org/jira/browse/WICKET-1247
>             Project: Wicket
>          Issue Type: Improvement
>    Affects Versions: 1.3.0-rc2
>            Reporter: Edvin Syse
>            Priority: Trivial
>
> Some times I find that I need to submit a form and bypass the validation, but 
> I still need any changes to form fields reflected in the model. If it is 
> trivial I think it would be very nice if there was a 
> getDefaultFormValidation() method in AbstractSubmitLink, that works 
> similarily to getDefaultFormProcessing(), but instead of skipping 
> modelbinding, all fields that pass validation could be updated in the model 
> object.
> -- Edvin Syse

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to