Hi Thiago,

 

Thanks for your response. 

 

>>"t:context="literal:whatever you want"

 

I still don't understand how to grab the id of radio button that was
clicked. Let me be more clear: There's a set of 11 radio buttons each with a
different id. All radio buttons call same confirm message. If user clicks
yes then the value of the button that invoked the dialog should be passed to
the event so appropriate action can be taken. 

 

>>"In this case, the button id  is very probably static, so you can pass it
directly."

 

Yes, the button is static, but which button id to pass is dynamic.

 

____________________________________________________________________________
________________________________________________

Hi,

I have a set of radio buttons. On clicking a radio button a confirm message
is shown. If user selects yes then event is fired, otherwise nothing
happens. I have made an event that is to be called on confirm modal. What I
can't figure out is how to pass the radio button id or data-id to this event
handler. Here is some code:

 

<t:radiogroup t:id="pulseMode">

                                          

<input t:type="radio" t:id="Off" href="#pulseChangeModal"
data-toggle="modal"  data-id="PulseMode.Off" />

<input t:type="radio" t:id="A" href="#pulseChangeModal" data-toggle="modal"
data-id="PulseMode.A" />

<input t:type="radio" t:id="B" href="#pulseChangeModal" data-toggle="modal"
data-id="PulseMode.B" />

.

.

. 

</t:radiogroup>

 

<div id="pulseChangeModal" class="modal hide fade">

<div class="modal-header">

<button type="button" class="close" data-dismiss="modal"
aria-hidden="true">&times;</button> </div>                     

       <div class="modal-body">   </div>             

<div class="modal-footer">

             <a id="yesButton" t:type="web/eventlinkex"
t:event="changePulseMode" href="#" t:context="Pass clicked radio button's id
here" class="btn btn-primary" >${message:yes }</a>

              <a href="#" class="btn" data-dismiss="modal">${message:no
}</a>

       </div>

</div>

 

Regards,
AM

Reply via email to