Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    radiogroupitem sends the same request parameter twice

    I am currently testing SmartClient included in SmartGWT 2.0 with the FF 3.6.13.
    I've noticed that RadioGroupItem sends the same request parameter twice on DynamicForm.submit().
    After I selected USA and pressed "Submit" I got
    rdgCountry=usa&rdgCountry=usa in the content of the request

    Code:
    	isc.DynamicForm.create( {
    		canSubmit : true,
    		action : "PrintParamsServlet",
    		method : "POST",
    		items : [ {
    			name : "rdgCountry",
    			type : "radioGroup",
    			valueMap : {
    				usa : "USA",
    				poland : "Poland",
    				germany : "Germany"
    			}
    		}, {
    			name : "btnSubmit",
    			type : "submit",
    			onclick : function(form, item) {
    				form.submit();
    			}
    		} ]
    	});

    #2
    if I remove the editor type declaration from the rdgCountry definition,
    selectitem appears and everything works as expected.
    Code:
    isc.DynamicForm.create( {
    		canSubmit : true,
    		action : "PrintParamsServlet",
    		method : "POST",
    		items : [ {
    			name : "rdgCountry",
    			valueMap : {
    				usa : "USA",
    				poland : "Poland",
    				germany : "Germany"
    			}
    		}, {
    			name : "btnSubmit",
    			type : "submit",
    			onclick : function(form, item) {
    				form.submit();
    			}
    		} ]
    	});

    Comment

    Working...
    X