[Opensource] HTML tags won't recognize ControllerElement Inputs

Michael Rimov rimovm at centercomp.com
Sat Aug 17 14:38:57 PDT 2002


At 05:06 PM 8/8/2002 -0600, you wrote:

>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?

Wolf,

I'd honestly step through the html:checkbox code.  I suspect that the error 
message is misleading and that actually it isn't properly finding the Input 
object.  I suspect you'll want:

<html:checkbox property=matrix/myCheckbox1/>
[Or whatever you need.

That's just my first guess.
                                                 -Mike




>
>
>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




More information about the Opensource mailing list