on 02-07-2005 7:52 AM
Hi all,
I have a group of radio buttons on screen (JSPDynPage) and i wish to raise an event each time one of them is selected.
The radiobuttongroup has no onclick method nor the radiobuttons themselves.
Aviad
Hi Aviad,
radioButtonGroup does have a onClick method, where you can specify the eventing method.
Which version are you on??
Regards, Akhilesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Aviad,
Try this if you dont have attribute in taglib.
<%@ page import="com.sapportals.htmlb.RadioButtonGroup"
<hbj:radioButtonGroup
id="Group"
columnCount="1"
selection="1" >
<hbj:radioButton
id="First"
text="First Button"
key = "one" />
<hbj:radioButton
id="Second"
text="Second Button"
key = "two" />
<%
Group.setOnClick("radioClicked");
%>
</hbj:radioButtonGroup>
Write the method in you Main Java Class
public void radioClicked(Event event) throws PageException {
RadioButtonGroup rbg = (RadioButtonGroup)
getComponentByName("Group");
String sel = rbg.getSelection();
}
Hope this helps.
Thanks,
Praveen
PS. Dont forget to award points if useful/solved
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.