You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Edvin Syse (JIRA)" <ji...@apache.org> on 2007/12/28 20:45:43 UTC

[jira] Created: (WICKET-1247) RFE: Option to avoid form validation but still get modelbinding in AbstractSubmitLink: getDefaultFormValidation()

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
            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.u

-- Edvin Syse

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


[jira] Commented: (WICKET-1247) RFE: Option to avoid form validation but still get modelbinding in AbstractSubmitLink: getDefaultFormValidation()

Posted by "Edvin Syse (JIRA)" <ji...@apache.org>.
    [ 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.


[jira] Commented: (WICKET-1247) RFE: Option to avoid form validation but still get modelbinding in AbstractSubmitLink: getDefaultFormValidation()

Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-1247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12556291#action_12556291 ] 

Igor Vaynberg commented on WICKET-1247:
---------------------------------------

whats the usecase?

> 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.


[jira] Closed: (WICKET-1247) RFE: Option to avoid form validation but still get modelbinding in AbstractSubmitLink: getDefaultFormValidation()

Posted by "Edvin Syse (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-1247?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edvin Syse closed WICKET-1247.
------------------------------

       Resolution: Won't Fix
    Fix Version/s: 1.3.0-final

I guess the use case was a bit lame. Ofcourse, with your example I have to manually put the data into the model object, but that's no hassle. I do think there are good use cases for this, but until I can cough it up I guess I'll close this ticket :)

Thanks for your time!

-- 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
>             Fix For: 1.3.0-final
>
>
> 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.


[jira] Updated: (WICKET-1247) RFE: Option to avoid form validation but still get modelbinding in AbstractSubmitLink: getDefaultFormValidation()

Posted by "Edvin Syse (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-1247?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edvin Syse updated WICKET-1247:
-------------------------------

          Description: 
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

  was:
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.u

-- Edvin Syse

    Affects Version/s: 1.3.0-rc2

> 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.


[jira] Commented: (WICKET-1247) RFE: Option to avoid form validation but still get modelbinding in AbstractSubmitLink: getDefaultFormValidation()

Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-1247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12556295#action_12556295 ] 

Igor Vaynberg commented on WICKET-1247:
---------------------------------------

why not simply

Button button=new Button("sok1") {
  onsubmit() { String domain=sok1.getinput(); popup(domain); }
}.setdefaultformprocessing(false);

> 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.


[jira] Updated: (WICKET-1247) RFE: Option to avoid form validation but still get modelbinding in AbstractSubmitLink: getDefaultFormValidation()

Posted by "Frank Bille Jensen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-1247?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Frank Bille Jensen updated WICKET-1247:
---------------------------------------

    Fix Version/s:     (was: 1.3.0-final)

> 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.