This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.sf.topriddy; | |
import org.apache.wicket.ajax.AjaxEventBehavior; | |
import org.apache.wicket.ajax.AjaxRequestTarget; | |
import org.apache.wicket.ajax.markup.html.AjaxFallbackLink; | |
import org.apache.wicket.markup.html.WebMarkupContainer; | |
import org.apache.wicket.markup.html.WebPage; | |
import org.apache.wicket.util.string.AppendingStringBuffer; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns:wicket> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> | |
<title>AlertPanel</title> | |
</head> | |
<body> | |
<wicket:panel> | |
<div wicket:id="wrapper" class="alert"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void addCompanyTable() { | |
IDataProvider dataProvider = new IDataProvider() { | |
public Iterator iterator(int first, int count) { | |
Iterator iter = null; | |
try { | |
List<TrackDeviceCompany> list = dao.findAll(TrackDeviceCompany.class, first, count); | |
iter = list.iterator(); | |
} catch (Exception ex) { | |
logger.error("Exception occured getting iterator for company", ex); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Transactional(type = TransactionType.READ_ONLY) | |
@Override | |
public <T> List<T> findAll(Class<T> clazz) throws MTrackerException{ | |
Criteria criteria = session.get().createCriteria(clazz); | |
return criteria.list(); | |
} | |
@Transactional(type = TransactionType.READ_ONLY) | |
public <T> List<T> findAll(Class<T> clazz, int start, int size) throws MTrackerException{ | |
Criteria criteria = session.get().createCriteria(clazz); |
NewerOlder