TitleForm Input Plugin Does Not Allow Checked Radio Or Checkboxes
Date07-Jul-2005 17:08:11 EEST
Bug criticalityLightBug
Browser versionANY
Bug statusClosedBug
PageProvider usedANY
Servlet ContainerANY
Operating SystemANY
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.


Fixed in 2.2.29. You can now add 'checked=true' to the arguments.

-- JanneJalkanen

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-2) was last changed on 26-Jul-2005 15:06 by Administrator