Broetchen1234 / iui

Automatically exported from code.google.com/p/iui
MIT License
0 stars 0 forks source link

IUI - Multiple/Grouped Radio Button Submit Issue #249

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Code:
<form  title="Details" class="panel" method="post"  action="<%= 
Url.Action("VoteAgenda","Home")%>" >
    <fieldset> 
            <div class="row"> 
            <label>Yes</label> 
            <input type="radio"  name="vote" value="1" <%=  
ViewData["Yes"] %> />
        </div> 
        <div class="row"> 
            <label>No</label> 
            <input type="radio"  name="vote" value="2" <%=  
ViewData["No"] %> /> 
        </div> 
        <div class="row"> 
            <label>Abstain</label> 
            <input type="radio"  name="vote" value="3" <%=  
ViewData["Abstain"] %> /> 
        </div> 
        <div class="row"> 
            <label>Recuse</label> 
            <input type="radio" name="vote" value="4" <%=  
ViewData["Recuse"] %> /> 
        </div> 
        </fieldset> 
         <a class="whiteButton" type="submit" href="#">Vote</a>
        <input type="hidden"  name="agendaID" value="<%= 
Model.MeetingAgendaId %>" />
        <input type="hidden"  name="meetingID" value="<%= Model.MeetingId 
%>" />
        </form>

What steps will reproduce the problem?
1.I am using this the above code(form) in a aspx page
2.On clicking the button Vote I have a controller action called which would  
take the vote(name=) parameter.
3.When I check any one of radio button and click on submit I should get the 
value of the checked radio. But i get the value of the last radio button in 
the list( ie value=4 for Four radio button and value=3 for Three radio 
buttons )

What is the expected output? What do you see instead?
When I check the radio button and click on submit i should get the value of 
the checked radio. ie value 1 if radio button of value=1 is checked
But i get the value of the last radio button in the list( ie value=4 for 
Four radio button and value=3 for Three radio buttons )

What version of the product are you using? On what operating system?
I am using Version 0.40-dev2 IUI and Asp.net MVC 1.0 . 
Working on the project using VS 2008 . and OS -Win 7

Original issue reported on code.google.com by prawinp@gmail.com on 26 May 2010 at 10:35

GoogleCodeExporter commented 9 years ago
I'm having the EXACT same issues.  The POST always shows the last radio button 
is the one selected regardless of which one is selected.

This bug report is from TWO YEARS ago!  Does any of this stuff ever get fixed 
in IUI?

Every issue I run into in IUI seems to be a long standing known bug.....

Original comment by sbl...@litespeeddesign.com on 21 Mar 2012 at 1:34

GoogleCodeExporter commented 9 years ago

Original comment by msgilli...@gmail.com on 10 Apr 2012 at 12:31

GoogleCodeExporter commented 9 years ago
Duplicate of Issue #48

Original comment by msgilli...@gmail.com on 10 Apr 2012 at 12:32