[ 
https://issues.apache.org/jira/browse/TRINIDAD-2530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15059696#comment-15059696
 ] 

sudheer kakumani commented on TRINIDAD-2530:
--------------------------------------------

Hi ,

We are seeing this issue if the generated content for <tr:selectBooleanRadio> 
has a <label> tag. In such scenarios TrPage._autoSubmit is called twice and 
causes the reported behavior.

Please find the below snippet. 
<span class="x2d" id="radioItem3__xc_r" 
onclick="TrPage._autoSubmit('j_id_4','radioItem3',event,1);return true;">
<input name="theGroup" id="radioItem3" type="radio" value="radioItem3">
<label for=”radioItem3”>item 3</label>
</span>

I am attaching the changes which has fixed the issue for us. Changes can be 
found between the following comments: Apply the attached changes to 
trinidad-impl-2.1.0.jar
/*TRINIDAD-2530 start of Code Change*/
/*TRINIDAD-2530 end of Code Change*/



> Clicking on text part submits the tr:selectbooleanradio value  only after 
> next click 
> -------------------------------------------------------------------------------------
>
>                 Key: TRINIDAD-2530
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2530
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 2.1.0-core
>         Environment: IE11
>            Reporter: Prakash Balasubramanian
>         Attachments: TRINIDAD-2530.zip
>
>
> If I click the text of a tr:selectbooleanradio component, value is not 
> getting submitted to the page, so valuechangeevent and other respective 
> life-cycle functions are not working. It is fired only after next click(on 
> the text). 
> Instead of clicking the text part of the same button twice, If I go on and 
> click the next radio button, the previous button click is being submitted. 
> Likewise, things are happening only after next submit. 
> This is happening on IE11. 
> Please note if I click the button part of the tr:selectbooleanradio, it's 
> working perfectly. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to