the problem is that with a form with all kinds of fields and such a dropdownchoice you need to do a form.submit() but then we on the server side we see that submit But this is not a real submit but a 'semi' submit. The form fields must set there values in the invalidInput field for storage (it shouldn't be pushed to the models and no validation should occur) Then the interface of the dropdownchoice should be invoked. And on render all the values
that just came with it are renderd again so that nothing is lost.

The problem will be when the form is in multipart .. (file upload) because then we have more problems....

Of course that onchange would be the perfect candidate for ajax.. But how are we going to process the respond?
What kind of things can be done when such a dropdown is changed ?
fill another drop down
set some values of other fields.
set some feedback...

And are we willing to do those things purely in ajax. So no support in 'normal' use?

johan


Igor Vaynberg wrote:
That is simple enough with plain javascript. here is an example: http://www.quirksmode.org/index.html?/js/select.html you would have to generate the javascript for all your options in the linked selectbox using wicket. -Igor
    ------------------------------------------------------------------------
    *From:* [EMAIL PROTECTED]
    [mailto:[EMAIL PROTECTED] *On Behalf Of
    *Martin Bednar
    *Sent:* Friday, August 19, 2005 4:34 AM
    *To:* [email protected]
    *Subject:* Re: [Wicket-user] Using DropDownChoice and
    wantOnSelectionChangedNotifications=true clean other form components

    I have form containing for example:
    Textbox
    DropDownChoice1
    DropDownChoice2(depend on selection in DropDownChoice1)

    When item from DropDownChoice1 is selected, send values of all
    component in form to server, update models, and render updated page.

    Martin

    Igor Vaynberg wrote:
    I see this discussion going nowhere fast :)

    Why doesn't Martin let us know more about his problem and we will see if
    there is an easy solution.
    -Igor
    -----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Phil Kulak
    Sent: Thursday, August 18, 2005 9:09 PM
    To: [email protected]
Subject: Re: [Wicket-user] Using DropDownChoice and wantOnSelectionChangedNotifications=true clean other form components

    Well, not if there's a lot of different possible details.

    On 8/18/05, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
Or plain old javascript can do the trick as well. There have been master detail select boxes for ages before ajax :)

    -Igor


    -----Original Message-----
    From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Phil
    Kulak
    Sent: Thursday, August 18, 2005 7:15 PM
    To: [email protected]
Subject: Re: [Wicket-user] Using DropDownChoice and wantOnSelectionChangedNotifications=true clean other form
    components
    I think AJAX is the solution here.

    On 8/18/05, Johan Compagner <[EMAIL PROTECTED]> wrote:
    yes this is a problem that i am also looking at.
    We should do a form post instead of making getting a url..

    But this is not so easy at the moment.
Validators of the form shouldn't run, And i don't think we can update the model also. We have to keep it internally in
form After
    that we do have to call that drop down method..

    But for this we need to generate some hidden fields in the
    form where
    we can set state.
    What the exact interface call was..

    It is not only a drop down problem. Also for example a
    pageable list
with a navigator which are links can have the same
problem if the
    pageable list is inside a form...

    johan



    Martin Bednar wrote:
    Hi,

There is a way how to submit values to model from other form components when DropDownChoice roundtrip is invoked ?

    I have form containing lot's of textboxes and some
    DropDownChoices
depends on DropDownChoices with roundtrip enabled
    (Master-Detail).
    After choosing value from DropDownChoice, roundtrip is
    done, and all
    data in textboxes are lost :(

    Any advice ?

    Tnx, Martin


    -------------------------------------------------------
    SF.Net email is Sponsored by the Better Software
    Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development *
Managing
Projects & Teams * Testing & QA Security * Process
    Improvement &
    Measurement *
    http://www.sqe.com/bsce5sf
    _______________________________________________
    Wicket-user mailing list
[email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user

    -------------------------------------------------------
SF.Net email is Sponsored by the Better Software
Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development
Lifecycle
    Practices Agile & Plan-Driven Development * Managing
    Projects & Teams
* Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________
    Wicket-user mailing list
    [email protected]
    https://lists.sourceforge.net/lists/listinfo/wicket-user

    -------------------------------------------------------
SF.Net email is Sponsored by the Better Software
Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement &
Measurement *
http://www.sqe.com/bsce5sf _______________________________________________
    Wicket-user mailing list
    [email protected]
    https://lists.sourceforge.net/lists/listinfo/wicket-user



    -------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing
Projects & Teams
* Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________
    Wicket-user mailing list
    [email protected]
    https://lists.sourceforge.net/lists/listinfo/wicket-user

    -------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________
    Wicket-user mailing list
    [email protected]
    https://lists.sourceforge.net/lists/listinfo/wicket-user







    -------------------------------------------------------
    SF.Net email is Sponsored by the Better Software Conference & EXPO
    September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
    Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
    Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
    _______________________________________________
    Wicket-user mailing list
    [email protected]
    https://lists.sourceforge.net/lists/listinfo/wicket-user



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to