on 2004 Mar 15 12:56 PM
Hi all,
I have dropdownlist box in Tableview cell render.
I used ddlb.setOnClientSelect("mes"); in cell reder class.
It is not calling javascript method mes().
Let me know how mes().
is called
Thanks
Mark
As far as I remember the javascript method gets an in-parameter. So define you method as
function mes (htmlbevent) {
alert('woohoo');
}
Think this is documented in the portal somewhere
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you Dagfinn Parnas
But still not working. code i used is
1.in jsp file
<script language="Javascript">
function mes (htmlbevent) {
alert('woohoo');
}
</script>
<hbj:tableView
id="PartsInstItemTableView"
model="objModuleTableViews.partsInstItemTableView"
design="ALTERNATING"
headerVisible="false"
footerVisible="false"
selectionMode="NONE"
visibleFirstRow="1"
visibleRowCount="1"
fillUpEmptyRows="TRUE">
<%
PartsInstItemTableView.setUserTypeCellRenderer(new PartsInstItemCellRenderer());
%>
</hbj:tableView>
2.in Render class
if (column == 6) {
DataString strValue = (DataString) tableView.getValueAt(row, column);
DropdownListBox ddlb = new DropdownListBox("ddlb_partsInstCondition");
//ddlb.addItem("", "");
ddlb.addItem("New", "New");
ddlb.addItem("Exchange", "Exchange");
ddlb.addItem("Repairable", "Repairable");
ddlb.setOnClientSelect("mes");
ddlb.render(rendererContext);
}
Pl tell me if you have solution and any help document(url) availble.
Thanks
Mark
User | Count |
---|---|
69 | |
13 | |
11 | |
10 | |
9 | |
9 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.