
Seam
q_wong
这个作者很懒,什么都没留下…
展开
-
No phase id bound to current thread
10:08:59,185 WARN [SeamPhaseListener] uncaught exception, passing to exception handler java.lang.IllegalStateException: No phase id bound to current thread (make sure you do not have two SeamPhaseLis...2009-03-17 10:29:24 · 289 阅读 · 0 评论 -
Seam圖片上傳&加載
兩種方法:1.保存到數據庫后從數據庫讀取加載 2.保存到服務器本地后讀取加載 兩種graphicImage組件:jsf的和seam的 第二種方法頁面只能用seam的graphicImage組件,且不支持gif格式 第一種方法保存到數據庫里的是url地址 第二種方法保存到數據庫里的是byte數組 Entity: @Suppress...2009-05-19 11:44:02 · 208 阅读 · 0 评论 -
JSF Converter in JBoss Seam
JSF Converter in JBoss Seam Yangtze JBoss Seam, Java 2008-09-04原创 2009-05-18 11:41:27 · 108 阅读 · 0 评论 -
Seam頁面導出Excel
public void exportData() { FacesContext ctx = FacesContext.getCurrentInstance(); ctx.responseComplete(); HttpServletResponse response = (HttpServletResponse) ctx .getExternalContext().g...2009-04-30 09:21:58 · 129 阅读 · 0 评论 -
Seam中使用selectItems and @Factory的三种方法
http://www.blogjava.net/sealyu/archive/2009/03/10/258904.html here are 3 possible examples how to initialize component: 1. Using @Unwrap with method returning object - method doesn't have to be getter...原创 2009-03-28 23:11:04 · 139 阅读 · 0 评论 -
Seam用于声明上下文的注解
http://www.blogjava.net/sealyu/archive/2009/03/02/257359.html Seam用于声明上下文的注解(转) 这些注解提供声明式对话分界(declarative conversation demarcation)。它们在Seam组件方法中使用,通常是动作监听器方法(Action Listener Method)。 每个Web请求有一个对...原创 2009-03-28 22:58:33 · 170 阅读 · 0 评论 -
Property 'xxxx' not found on type org.javassist.tm
報如下錯誤: Property 'xxxx' not found on type org.javassist.tmp.java.lang.Object 需要將變量的setter和getter方法在local Interface 中定義。2009-03-25 16:10:50 · 144 阅读 · 0 评论 -
SEAM:ConcurrentRequestTimeoutException
http://seamframework.org/Community/ConcurrentRequestTimeoutExceptionWithOnlyOneConversation http://docs.jboss.com/seam/2.1.1.GA/reference/en-US/html/conversations.html#d0e6410 写道 We can se...原创 2009-09-14 17:09:35 · 214 阅读 · 0 评论 -
Richfaces構建節點樹
EJB+JSF+SEAM 使用Richfaces中的Tree和TreeNode組件 Entity部分關鍵代碼: public class PartType { //屬性... private PartType parent; private Set<PartType> children = new HashSet<PartType>(); //屬...2009-03-19 16:53:34 · 84 阅读 · 0 评论 -
javax.resource.ResourceException: Transaction is not active
批量導入數據的時候報javax.resource.ResourceException: Transaction is not active異常 網上查了下是事物超時 解決辦法: 在server|default|conf|jboss-service.xml中将 <mbean code="org.jboss.tm.TransactionManagerService"name="jb...原创 2009-07-13 11:25:49 · 951 阅读 · 0 评论