Quantcast
Channel: ZK Forum - Individual question feed
Viewing all articles
Browse latest Browse all 356

ERROR : java.lang.ClassCastException:

$
0
0
I have following code in zul file ==== def abc='HOSPITAL' alert("abc="+abc); def c1=ClientMap.executeQuery('select id from ClientMap where name=?',[abc]) alert("c1="+c1) This works fine. ALert displayes value as abc=HOSPITAL & c1=[1] But when i pass value at runtime as== def abc=item.value alert("abc:="+abc) def c1=ClientMap.executeQuery('select id from ClientMap where name=?',[abc]) alert(c1) Alert displayes value as abc=HOSPITAL & throws an error for c1 as "java.lang.ClassCastException: org.zkoss.zul.SimpleTreeNode cannot be cast to java.lang.String" Can any body HELP ME ?????

Viewing all articles
Browse latest Browse all 356

Trending Articles