HZNM.COM
welcome to my space
X
Search:  
 HOME   Radio buttons lost field label?
Radio buttons lost field label?
Published by: cfz 2009-01-09
Welcome to:hznm.com

  • 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.doc
    HOME
    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.pdf
    HOME
    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.php
    HOME
    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.pm
    HOME
    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.txt
    HOME


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

    You are looking at:hznm.com's Radio buttons lost field label?, click hznm.com to home
  • does tlv have luggage storage
  • potential relocation to beirut
  • co vs ly to tlv
  • urgently needed luxor aswan nile cruise in january 2006
  • cdg or ory to tlv rt aug 16 any ideas for cheap ticket
  • basra iraq
  • where to eat in beirut
  • egypt israel
  • off season in eilat
  • shj sharjah
  • cheap flights to israel
  • new terminal from the air picture
  • long layover at cai
  •  
  • going to israel after other middle east travel problems with israeli immigration
  • american to riyadh safe
  • kuwait entry questions
  • kuwait for a young woman
  • tourist from us to saudi arabia
  • high speed internet in lebanon
  • finding flights into kaboul
  • help with dubai hotels this december
  • driving eilat to kinneret
  • travel to dubai in mid december
  • need help with kwi doh flights
  • af biz bargains to us
  • leisure dress for yemen oman qatar uae
  • egypt memphis tours
  •  Homepage | Add to favorites | Contact us | Exchange links | LOGIN | Site map | 
    Copyright© 2008 hznm.com        Site made:CFZ