Dear,

thanks for your help, it's work but now I want to insert the
child.setname into an other Dropdownchoice

name = new DropDownChoice ("name",new
PropertyModelobj,"name"),db.getAllSIPUsers())
        {
                protected boolean wantOnSelectionChangedNotifications()
                        {
                                return true;
                        }                               
                public void onSelectionChanged(Object newSelection) {
                                Object data[] = 
db.LoadExtentionFromdata((String) obj.getName());
                                obj.setPhone_type("Plycom");
                        
                }
        };
        add(name);



// The other dropdownchoice that's need to be update when a change occur
in name dropdownchoice
 
        phone_type = new DropDownChoice ("phone_type",new PropertyModel
(obj,"phone_type"),db.getAllPhoneType())
        {
                protected boolean wantOnSelectionChangedNotifications()
                        {
                                return true;
                        }       
                public void onSelectionChanged(Object newSelection) {
                        
                }
                
        };

Do you have a solution

Thanks for the help, it's a great mailing list

Vincent

On Wed, 2006-11-29 at 09:49 +0100, Martijn Dashorst wrote:
> List<String> names = Arrays.asList(new String[]{"John", "Pete", "Vincent"});
> Child child = new Child();
> child.setName("John");
> add(new DropDownChoice("name", new PropertyModel(child, "name"), names));
> 
> Martijn
> 
> On 11/29/06, Vincent Renaville <[EMAIL PROTECTED]> wrote:
> > I have try to put : MyDropDownChoice.setModelValue(Db.ValueString) but
> > the Dropdownchoice still chow the default value.
> >
> >
> >
> > On Tue, 2006-11-28 at 09:22 -0800, Igor Vaynberg wrote:
> > > this comes up very often
> > >
> > > choices set and read their selection from their model object so all
> > > you have to do is initialize the model object to the value you want
> > > selected
> > >
> > > -igor
> > >
> > >
> > > On 11/28/06, Vincent Renaville <[EMAIL PROTECTED]
> > > distribution.com> wrote:
> > >         Dear,
> > >
> > >         I search a solution for this problem, I have store
> > >         Dropdownchoice
> > >         selected item into my database. If the user want he can
> > >         retrieve the
> > >         data from the DB, but how to set the selected choice of a
> > >         Dropdownchoice , to the value that it stores into the DB.
> > >
> > >         Hi hope you understand me :)
> > >
> > >         Kind regards,
> > >
> > >         Vincent
> > >
> > >
> > >         
> > > -------------------------------------------------------------------------
> > >         Take Surveys. Earn Cash. Influence the Future of IT
> > >         Join SourceForge.net's Techsay panel and you'll get the chance
> > >         to share your
> > >         opinions on IT & business topics through brief surveys - and
> > >         earn cash
> > >         http://www.techsay.com/default.php?
> > >         page=join.php&p=sourceforge&CID=DEVDEV
> > >         _______________________________________________
> > >         Wicket-user mailing list
> > >         [email protected]
> > >         https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> > > -------------------------------------------------------------------------
> > > Take Surveys. Earn Cash. Influence the Future of IT
> > > Join SourceForge.net's Techsay panel and you'll get the chance to share 
> > > your
> > > opinions on IT & business topics through brief surveys - and earn cash
> > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > > _______________________________________________ Wicket-user mailing list 
> > > [email protected] 
> > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
> > -------------------------------------------------------------------------
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share your
> > opinions on IT & business topics through brief surveys - and earn cash
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > _______________________________________________
> > Wicket-user mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> 
> 


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to