This is version . It is not the current version, and thus it cannot be edited.
[Back to current version]   [Restore this version]
TitleForm Input Plugin Does Not Allow Checked Radio Or Checkboxes
Date07-Jul-2005 17:08:11 EEST
VersionALL
SubmitterJohnVolkar
Bug criticalityLightBug
Browser versionANY
Bug statusNewBug
PageProvider usedANY
Servlet ContainerANY
Operating SystemANY
URLWikiFormsExample
Java versionANY

Mentioned on WikiFormsExample, on idle whim I looked at FormInput.java, a possible fix is to add the field.setChecked(...) bit near line 77.

        // In order to isolate posted form elements into their own
        // map, prefix the variable name here. It will be stripped
        // when the handler plugin is executed.
        Input field = new Input( inputType, 
                                 HANDLERPARAM_PREFIX + inputName, 
                                 inputValue );
        
        field.setChecked( params.containsKey( "checked" ) );

Hmm, I wonder if a more general approach via some addAttribute(..) bit of voo-doo; there are lots of stuff that we could allow to be set that we're not.

--JohnV

Add new attachment

Only authorized users are allowed to upload new attachments.
« This particular version was published on 07-Jul-2005 17:08 by JohnVolkar.