`
q_wong
  • 浏览: 105402 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论
文章列表
JSF Converter in JBoss Seam Yangtze JBoss Seam, Java 2008-09-04
public void exportData() { FacesContext ctx = FacesContext.getCurrentInstance(); ctx.responseComplete(); HttpServletResponse response = (HttpServletResponse) ctx .getExternalContext().getResponse(); response.reset(); response.setContentType("application/vnd.ms-excel"); ...
1.打开ECLIPSE的安装目录根目录下,能看到一个eclipse.ini文件,这是ECLIPSE的内存使用控制的配置文件,需要进行合理的修改。默认的改为下面的值:-vmargs-Xms128m-Xmx512m-XX:MaxPermSize=128m-Dcom.sun.management.jmxremote如果你的内存还要大的话可以适合调整"-Xmx512m"的值,注意,上面每一行后面不能有空格等字符,请注意一下,不然启动不了Eclipse可不要怪我啦。这一步的设置是至关重要的,可以让你的ECLIPSE不在死掉 http://hi.baidu.com/seejava/bl ...

code

    博客分类:
  • Temp
code
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: @Name("search") public class SearchAction { // can't be used with @Out @Unwrap public Ma ...
http://www.blogjava.net/sealyu/archive/2009/03/02/257359.html   Seam用于声明上下文的注解(转) 这些注解提供声明式对话分界(declarative conversation demarcation)。它们在Seam组件方法中使用,通常是动作监听器方法(Action Listener Method)。 每个Web ...
報如下錯誤: Property 'xxxx' not found on type org.javassist.tmp.java.lang.Object     需要將變量的setter和getter方法在local Interface 中定義。

JPA

    博客分类:
  • Temp
JPA
EJB+JSF+SEAM   使用Richfaces中的Tree和TreeNode組件     Entity部分關鍵代碼: public class PartType { //屬性... private PartType parent; private Set<PartType> children = new HashSet<PartType>(); //屬性對應的getter、setter...... @ManyToOne public PartType ...
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 SeamPhaseListener instances installed)  貌似應該是JBOSS4.2.3的BUG

JSF In Action

    博客分类:
  • JSF
http://book.csdn.net/bookfiles/263/index.html
   WARN [JmsActivation] Failure in jms activation org.jboss.resource.adapter.jms.inflow.JmsActivationSpec@a50549(ra=org.jboss.resource.adapter.jms.JmsResourceAdapter@e7f9b3 destination=jms/myQueue isTopic=false tx=true durable=false reconnect=10 provider=java:/DefaultJMSProvider user=null maxMessag ...
Properties props = new Properties(); props.setProperty("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory"); props.setProperty("java.naming.provider.url", "localhost:1097"); try { InitialContext context = new InitialContex ...
WebService Server端設置了用戶名密碼,client端不能通過驗證的問題,只要設置Username和paasword就行了 org.apache.axis.client.Call _call = createCall(); _call.getMessageContext().setUsername("admin"); _call.getMessageContext().setPassword("admin123");  
調試EJB實例的時候報異常,提示"$Proxy XX cannot be cast to XXXX.class"通過網上查找資料,發現是JAR包衝突的問題。原來是我在project里導入了一個JAR包后lib目錄里還有一個相同的JAR包,但是文件路徑卻不同,把lib目錄里的JAR包刪掉就ok了。
Global site tag (gtag.js) - Google Analytics