-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hello. I am trying to get the html(zul) position of the component. I found getTop and getLeft in the zk library; however, while the getId() is working in the below code, the getTop(and getLeft) functions are not working; they return null. The currentDiv is of type ArrayList
Connection conn = DaoDataSource.getConnection();
for(int i =0;i<currentDiv.size();i++) {
Div ithDiv = currentDiv.get(i);
String query = "UPDATE "+tablename+" SET LEFT ="+ithDiv.getLeft()+",Top="+ithDiv.getTop()+" WHERE ID = "
+ithDiv.getId().split("-")[1];
System.out.println(query);
Statement st = conn.createStatement();
ResultSet rs = st.executeQuery(query);
rs.close();
}
The following code is regarding to the creation at viewModel. Div tmpdiv = new Div(); tmpdiv.setId(myUtil.monitorholderString+currentId);
Asked: 2018-12-28 14:31:18 +0800
Seen: 4 times
Last updated: Dec 28 '18