[Opensource] HTML tags won't recognize ControllerElement Inputs
Wolf Thompson
ewolfthompson at attbi.com
Thu Aug 8 16:06:23 PDT 2002
I'm trying to generate a variable list of checkbox inputs, based on the
results of a SearchAndRetrieveList. The problem: when I put Input
objects into a Block and try to access them directly through an
<html:checkbox> tag, I receive the error message that my Input objects
are actually Output objects. Any idea what I'm doing wrong?
Additionally, I'd like to place the Inputs within a Block (or Blocks)
and dynamically create checkbox lists. I've been working with this
sample code in my Controller, but have not been able to retrieve the
Inputs as checkboxes within JSP's. (As my variable names reveal, I've
been consulting ControllerSecurityMatrix.java and a few other Expresso
files, but haven't had an ounce of luck assembling a working JSP.)
Input cb = null;
Block matrix = new Block("matrix");
response.add(matrix);
for (int fred = 1; fred<8; fred++) {
cb = new Input();
cb.setType("boolean");
cb.setAttribute("checkbox","");
cb.setName("myCheckbox_"+fred);
matrix.add(cb);
}
Thanks in advance,
Wolf Thompson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.jcorporate.com/pipermail/opensource/attachments/20020808/ca865b8b/attachment-0002.htm
More information about the Opensource
mailing list