hi,
i have to pass back a html:select box when the user selects some combo box using ajax async call. Right now i have the code something like this
StringBuffer html = new StringBuffer("");
html.append("<html:select property=\"parentGroupCode\" onchange=\"getGroups()\">");
html.append("<html
ption value=\"hello\">hello</html
ption><html
ption value=\"mello\">mello</html
ption>");
html.append("</html:select>");
mLogger.debug(html.toString());
/*
html.append("<select id=\"parentGroupCode\" onChange=\"getGroups()\">");
html.append("<option value=\"hello\">hello</option><option value=\"mello\">mello</option>");
html.append("</select>");
*/
response.setContentType("text/html");
PrintWriter out = response.getWriter();
out.write(html.toString());
out.flush();
The problem it doens't render the html:select element and i could only see mello and hello there. If i pass anormal html select box as i have shown in comments in works. Any idea since i have to pass that html:select
string since i have to use a property from my action form.