Sorry about duplicating a forum posting, but I drew nearly 0 response
and this is a real PITA at this point. I have updated the test case
slightly.
I have an app that I've added a list to. On submit, it's not sending any
values. I've created this test case:
testForm.lzx:
code:
------------------------------------------------------------------------
<canvas>
<dataset name="echoer" src="http:../common/jsp/echoToStdOut.jsp" />
<form name="myform">
<submit name="submit" data="${echoer}"/>
<edittext name="byteMeText" text="BYTEME"/>
<list name="theList">
<textlistitem value="1" text="Item 1"/>
<textlistitem value="2" text="Item 2"/>
<textlistitem value="3" text="Item 3"/>
<textlistitem value="4" text="Item 4"/>
<textlistitem value="5" text="Item 5"/>
</list>
<button text="OK"> <method event="onclick">
<![CDATA[
parent.submit.submit() ;
]]>
</method>
</button>
</form>
</canvas>
------------------------------------------------------------------------
It invokes echoToStdOut.jsp on the server:
code:
------------------------------------------------------------------------
<?xml version="1.0"?>
<%@ page import="java.util.*" %>
<%@ page contentType="text/xml; charset=UTF-8" %>
<%
System.out.println( "echoToStdOut.jsp: Submitted Parameters" ) ;
Enumeration params = request.getParameterNames();
while(params.hasMoreElements()) {
String n = (String)params.nextElement();
String[] v = request.getParameterValues(n);
for(int i = 0; i < v.length; i++) {
String str = v[i];
// parse query args (URLENCODING) to Unicode as UTF8
byte p[] = str.getBytes("8859_1");
String ustr = new String(p, 0, p.length, "UTF-8");
System.out.print("name='" + n + "' <");
System.out.print(ustr);
System.out.println(">");
}
}
%>
------------------------------------------------------------------------
When submitted, I get this in my log:
code:
------------------------------------------------------------------------
echoToStdOut.jsp: Submitted Parameters
name='theList' <null>
name='byteMeText' <BYTEME>
------------------------------------------------------------------------
I expect to get a line of output for each textlistitem that's in the
list in addition to byteMeText's value by virtue of using the
request.getParameterValues(n) method. Any ideas on why the list item
values aren't being submitted?
Thanks,
Cary
_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user