I believe the problem goes that [setOutputMarkupId(true)] is called on very late step.
Try setting the [setOutputMarkupId(true)] just right after when the component is constructed, so the initial HTML have the id already set. After that the wicket js should be able to locate the DOM id later on any ajax response. On Thu, Sep 16, 2010 at 12:30 PM, Eric Reagan [via Apache Wicket] < ml-node+2542429-664652022-65...@n4.nabble.com<ml-node%2b2542429-664652022-65...@n4.nabble.com> > wrote: > Hello, > I'm having some problems getting ajax to work with a updating the data > > contained in the DropDownChoice default model object. My drop down choices > are dependent upon what is entered in a text box. I can get/update the text > > box just fine but when I go and shove the list of choices into the > DropDownChoice default model object on ajax update the choices are are not > displayed. If in eclipse I do an inspect of my default model object after I > > set it, the proper values are returned. > > target.addComponent(getForm().get("contractChoices").setDefaultModelObject(s).setEnabled(true).setOutputMarkupId(true)); > > > where right now S is a list<String> that I just created with a value of > abc, > 123. > > Thank you, > > -- > Eric Reagan > > > ------------------------------ > View message @ > http://apache-wicket.1842946.n4.nabble.com/Ajax-and-updating-DropDownChoice-model-object-tp2542429p2542429.html > To unsubscribe from Apache Wicket, click > here<http://apache-wicket.1842946.n4.nabble.com/template/TplServlet.jtp?tpl=unsubscribe_by_code&node=1842946&code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=>. > > > -- Sincerely, JC (http://www.linkedin.com/in/jcgarciam) Work smarter, not harder!. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Ajax-and-updating-DropDownChoice-model-object-tp2542429p2542647.html Sent from the Users forum mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org