I dont think you may want to do that with witcket, each html has a 1:1
relation with a corresponding Java file, having said so the Java file is
very tight to the DOM hierarchy that are wicket component (wicket:id).

It seems like you are trying to build an application with a CMS like
approach.

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

Reply via email to