Usability Testing Reports:: File Format: Microsoft Word - View as HTMLRadio button "Credit card" off when a specific credit card is selected. " Confusing. . Minor inconsistencies: Some field labels have colons, others don 't. http://www.upassoc.org/upa_projects/web/documents/usability_testing_reports.docHOME | I haven't changed any of my code, but for some reason the code in SVN produces radio buttons (Radios) that don't show the field label. I'm creating them as follows:
---
RadioGroup group = new RadioGroup()
form.add(group);
group.setFieldLabel("Gender");
Radio field = new Radio();
field.setFieldLabel("Male"); GUI Testing Checklist:: File Format: PDF/Adobe Acrobat - View as HTMLIf a set of radio buttons represent a fixed set of values such as A, B and C Assure that all field labels/names are not technical labels, but rather are http://members.tripod.com/bazman/download/checklist.pdfHOME |
field.setName("Gender");
group.add(field);
field = new Radio();
field.setFieldLabel("Female");
field.setName("Gender"); Coding techniques for making your website accessible - Web Access :: Include a well-positioned label for each field on a form. . In the case of checkboxes and radio buttons, it is equally frustrating not to know if the box http://webaccess.berkeley.edu/developer-tips.phpHOME | package CGI::FormBuilder::Field::radio; =head1 NAME CGI :: '\n'; # # Get field from radio buttons or checkboxes. Must use defined() or else labels of "0" are lost unless (defined($n)) { $n = $attr->{labels}{$o}; http://search.cpan.org/src/NWIGER/CGI-FormBuilder-3.03/lib/CGI/FormBuilder/Field/radio.pmHOME |
group.add(field);
----
I haven't changed this code in a while, but for some reason the labels are gone with the most recent source. This is the same way that the demo does it too so I'm a bit lost.
-m
Same to me.
The latest version from SVN does not draw any radio labels. You can see this behavior at the Explorer demo (FormPanel). It occurs in IE7 and FF3 as well.
-Sebastian
BTW FormPanel: the third label in the 'Music' line seems to be hidden too, isn't? Copyright 2006-2008 Oliver Seidel (email : oliver.seidel :: bugfix: fixed T-A-F custom field display for post/pages for WP2.5 *) bugfix: .. are being used *) bugfix: radio button fix, in case no label/li ID's are http://arnold-air.org/wordpress/wp-content/plugins/cforms/HISTORY.txtHOME |
If I change the code above to:
---
RadioGroup group = new RadioGroup()
form.add(group);
group.setFieldLabel("Gender");
Radio field = new Radio();
field.setFieldLabel("Male");
-----> field.setBoxLabel("Male");
field.setName("Gender");
group.add(field);
field = new Radio();
field.setFieldLabel("Female");
-----> field.setBoxLabel("Male");
field.setName("Gender");
group.add(field);
----
Then it works again. That is, add the value "field.setBoxLabel()". Not sure why this is, but it works for me for those of you out there watching.
I did use Firebug to inspect and the field label isn't there. Sorry I fogot to mention that.
To summarize it:
This is your code in the FormPanel demo:
RadioGroup radioGroup = new RadioGroup("test");
radioGroup.setFieldLabel("Favorite Color");
radioGroup.add(radio);
radioGroup.add(radio2);
panel.add(radioGroup);
TextArea description = new TextArea();
description.setPreventScrollbars(true);
description.setFieldLabel("Description");
panel.add(description);
panel.addButton(new Button("Save"));
panel.addButton(new Button("Cancel"));
add(panel);
And this is what FireBug says:
setBoxLabel is the correct method for setting the label check boxes and radios. Some of the demo pages were using setFieldLabel. This is fixed in SVN.
I do not see any problems with the code you posted. Can you put together some complete test code? You can also use Firebug to inspect the DOM to see if the label and text exist.
How much does getting a small tattoo on your hip/stomach hurt?
Do anyone else have an itchy anus? ?
| |