FileDocCategorySizeDatePackage
DoubleSelect.javaAPI DocExample2710Mon Jul 23 13:26:36 BST 2007org.apache.struts2.components

DoubleSelect

public class DoubleSelect extends DoubleListUIBean
Renders two HTML select elements with second one changing displayed values depending on selected entry of first one.

Examples


<s:doubleselect label="doubleselect test1" name="menu" list="{'fruit','other'}" doubleName="dishes" doubleList="top == 'fruit' ? {'apple', 'orange'} : {'monkey', 'chicken'}" />
<s:doubleselect label="doubleselect test2" name="menu" list="#{'fruit':'Nice Fruits', 'other':'Other Dishes'}" doubleName="dishes" doubleList="top == 'fruit' ? {'apple', 'orange'} : {'monkey', 'chicken'}" />

Fields Summary
public static final String
TEMPLATE
Constructors Summary
public DoubleSelect(com.opensymphony.xwork2.util.ValueStack stack, HttpServletRequest request, HttpServletResponse response)



           
        super(stack, request, response);
    
Methods Summary
public voidevaluateExtraParams()

        super.evaluateExtraParams();

        // force the onchange parameter
        addParameter("onchange", getParameters().get("id") + "Redirect(this.options.selectedIndex)");
    
protected java.lang.StringgetDefaultTemplate()

        return TEMPLATE;