Radio Button Is not Selected with Null

Description

When a value is null and a radio button is setup with a value="" attribute the radio button is not selected.

public MyAction extends BaseAction {
private Integer myRadioValue;
...
public Resolution brokeRadio() {
myRadioValue = null;
return new ForwardResolution("brokeradio.jsp");
}
...
public Integer getMyRadioValue() {
return myRadioValue;
}

public void setMyRadioValue(Integer myRadioValue) {
this.myRadioValue = myRadioValue;
}
}

<label><stripes:radio name="myRadioValue" value=""/>Null</label> <-- IS NOT SELECTED EVEN THOUGH myRadioValue is null
<label><stripes:radio name="myRadioValue" value="1"/>1</label>
<label><stripes:radio name="myRadioValue" value="2"/>2</label>

Environment

All operating systems

Status

Assignee

Rick G

Reporter

Brandon Goodin

Labels

Tester

None

Components

Fix versions

Affects versions

Release 1.5.7

Priority

Major
Configure