Rendering radio buttons/checkboxes
Anastasia Cheetham
a.cheetham at utoronto.ca
Tue Feb 10 17:20:24 UTC 2009
On 9-Feb-09, at 5:06 PM, antranig at caret.cam.ac.uk wrote:
> Certainly, there are several test cases
> which manage to render the UISelect minus the span but I must
> obviously
> have missed one case, I will look into it.
The test cases are there, and they pass. I've spent a bit of time
investigating this, and I think I've isolated it down to a simple test
that you might be able to look at, to figure out what's going on.
What seems to me to be happening is this: If the template for the
overall control is missing, the radio buttons still render, but an
error also occurs (which you see if you have the garish pink turned
on). (I suspect this error is happening with the unit tests, but you
don't see it because of the testing framework resetting itself between
tests.)
I've created a super-simple test file that illustrates the problem:
http://source.fluidproject.org/svn/fluid/components/trunk/src/webapp/tests/fluid-tests/manual/renderer/radio.html
In it, the template for the overall control is commented out. Load
this file as-is, and you should see the error message. Un-comment the
overall control template, and the error message disappears.
--
Anastasia Cheetham a.cheetham at utoronto.ca
Software Designer, Fluid Project http://fluidproject.org
Adaptive Technology Resource Centre / University of Toronto