Announcement Announcement Module

Spring Modules forum decommissioned in favor of Spring Extensions

As the Spring Modules project has been replaced by the Spring Extensions ( project, this forum has been decommissioned in favour of Spring Extensions one at:

Please see the Spring Extensions home page for a complete list of current projects in Java, .NET and ActionScript. You can also propose one if you want.

Costin Leau
SpringSource - Spring Training, Consulting, and Support - "From the Source"
See more
See less
Problem updating Combo box using Spring XT ReplaceContentAction Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem updating Combo box using Spring XT ReplaceContentAction

    Hi everyone,

    I want to update the following combo box in my JSP on select of some other Combo

    <form:select id="products" path="cmd.products"
    onchange="XT.doAjaxAction('productSelection', this);">
    <form:option value="" label="Select product"/>

    I tried in my action class the following code but its not updating the combo pl help

    List<Component> options = new LinkedList<Component>();
    Option first = new Option("", "Select product");
    for (ProductFolder folder : childFolders) {
    Option option = new Option(folder, "id", "path");

    // Create an ajax action for replacing the content of the "products"
    // element
    ReplaceContentAction action =
    new ReplaceContentAction("products", options);

    // Create the ajax response
    AjaxResponse response = new AjaxResponseImpl();

    // Add the action