Radio Button Is not Selected with Null
--------------------------------------

                 Key: STS-914
                 URL: http://www.stripesframework.org/jira/browse/STS-914
             Project: Stripes
          Issue Type: Bug
          Components: Tag Library
    Affects Versions: Release 1.5.7
         Environment: All operating systems
            Reporter: Brandon Goodin


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>

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to