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
  

Reply via email to