- 浏览: 109486 次
- 性别:
- 来自: 深圳
-
最新评论
-
LinApex:
没用啊你的代码
Java调BeyondCompare -
zhang_takeiteasily:
"org.jnp.interfaces.NamingContextFactory"Not Found -
zhang_takeiteasily:
没有用
"org.jnp.interfaces.NamingContextFactory"Not Found -
--Gyh--:
IPartTypeManager是什么东西呢,能不能发下代码? ...
Richfaces構建節點樹 -
--Gyh--:
密码是多少?
TreeNode
文章列表
<script language="javascript" type="text/javascript">
//<![CDATA[
function validateMonth(month) {
if(isNaN(parseInt(month))) {
return false;
}
if(month.length!=6||parseInt(month.charAt(0))>2||parse ...
- 2009-09-07 14:43
- 浏览 740
- 评论(0)
http://www.iteye.com/topic/459851?page=1
1.对int数组进行排序 2.对int数组进行排序,使第1个是最大,第2个是最小的,第三个是次大的,第四个是次小的,以此类推
int[] a = { 1, 3, 5, 8, 77, 88, 99, 4, 7 };
int[] d = new int[a.length];
int c;
for (int k = 0; k < a.length - 1; k++) {
for (int b = 0; b < a.length - 1; b++) {
if ...
- 2009-09-02 09:18
- 浏览 903
- 评论(0)
Set:
ValueExpression el = Expressions.instance().createValueExpression("#{annualPlanningId}");
el.setValue((Integer) Contexts.getSessionContext().get(
"annualPlanningId"));
Get:
System.out.println(Expressions.instance().createValueExpression("#{annualPlanningId} ...
- 2009-08-22 10:48
- 浏览 959
- 评论(0)
/**
* 此類用于讀取XXX Project 中的配置信息
* @author zzz
*
*/
@Name("XxxPropertiesFactory")
@Scope(ScopeType.APPLICATION)
public class XxxProperties {
private static Properties prop;
static{
synchronized(XxxProperties.class){
prop= new Properties();
InputStream is = XxxP ...
- 2009-08-10 15:51
- 浏览 1233
- 评论(0)
實體中定義為Double型,如果為整數的話頁面上會顯示為XX.0
現要求整數的話顯示整數,小數的話顯示兩位小數(如1.0顯示為1,1.123顯示為1.12)
@Name("salaryValueConverter")
@BypassInterceptors
@org.jboss.seam.annotations.faces.Converter(id = "salaryValueConverter")
public class SalaryValueConverter implements Converter {
private st ...
- 2009-07-30 10:40
- 浏览 919
- 评论(0)
http://javaeyetianjin.group.iteye.com/group/topic/8808
- 2009-07-29 17:29
- 浏览 857
- 评论(0)
@Entity
public class Employee extends XXXObject {
//...
/**
* 最近復職日期
*/
private Date lastReinstatementDate;
/**
* 核薪資料者
*/
private Set<BaseCheckSalary> baseCheckSalary = new HashSet<BaseCheckSalary>();
@OneToMany(mappedBy = "employee", fetch = FetchT ...
- 2009-07-29 10:26
- 浏览 733
- 评论(0)
[转载]关于工作与生活
作者:HP中国前总裁孙振耀
http://www.iteye.com/topic/146613
http://www.iteye.com/topic/139902
- 2009-07-27 11:49
- 浏览 813
- 评论(0)
DateFomatter
- 博客分类:
- Java Core
public class DateFormatter {
/**
* 把字符串轉換成對應的日期格式
* 默認字符串為空則返回當前日期(也可自行處理)
*
* @param dateStr
* @param datePattern日期格式(eg:"yyyy-MM-dd HH:mm:ss")
* @return
* @throws ParseException
*/
public Date parseDate(String dateStr, String datePattern)
throws ParseEx ...
- 2009-07-24 10:39
- 浏览 862
- 评论(0)
批量導入數據的時候報javax.resource.ResourceException: Transaction is not active異常
網上查了下是事物超時
解決辦法:
在server|default|conf|jboss-service.xml中将
<mbean code="org.jboss.tm.TransactionManagerService"name="jboss:service=TransactionManager"xmbean-dd="resource:xmdesc/TransactionManager ...
- 2009-07-13 11:25
- 浏览 3928
- 评论(1)
http://gaojiewyh.iteye.com/blog/405514
- 2009-07-02 11:02
- 浏览 803
- 评论(0)
http://x98zero.iteye.com/blog/408254
- 2009-06-30 17:11
- 浏览 765
- 评论(0)
兩種方法:1.保存到數據庫后從數據庫讀取加載
2.保存到服務器本地后讀取加載
兩種graphicImage組件:jsf的和seam的
第二種方法頁面只能用seam的graphicImage組件,且不支持gif格式
第一種方法保存到數據庫里的是url地址
第二種方法保存到數據庫里的是byte數組
Entity:
@SuppressWarnings("serial")
@Entity
public class UserPicture implements Serializable
{
private ...
- 2009-05-19 11:44
- 浏览 1047
- 评论(0)