[jboss-user] [JBoss Seam] - problems when migrate navigation from faces-config.xml to pa

2007-04-11 Thread tangdazhu
1.i had a application which is runing well when i am using the faces-config.xml, for example the login page: /pages/input/login.jsp login_success /pages/input/mainpage.jsp

[jboss-user] [JBoss Seam] - Re: problems when migrate navigation from faces-config.xml t

2007-04-12 Thread tangdazhu
Now i found that the wrong message can be displayed in the jsp pages, only when i usedto get the global messages. if i don't add this tag, it won't disply. does it mean that the tag is not useful for seam? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&

[jboss-user] [JBoss Seam] - add my own interceptor with problems

2007-04-13 Thread tangdazhu
1.I want to add my own login interceptor in my application,the following is my interceptor class public class LoggedInInterceptor { @Logger private Log log; @AroundInvoke public Object checkLoggedIn(InvocationContext invocation) throws Exception { boolean isLoggedIn = C

[jboss-user] [JBoss Seam] - HibernateSessionProxy ClassCastException

2007-03-24 Thread tangdazhu
1. i want to inject the hibernate session in seam,so i config the component.xml as follows: 2. Inside managed Bean , i use @in to inject the Hibernate Session, but when i am using DetachedCriteria in my application DetachedCriteria criteria =

[jboss-user] [JBoss Seam] - Re: can't find datasource problem when mirgrate from seam1.2

2007-11-29 Thread tangdazhu
I forgot to tell that i was trying under the tomcat6 with embedded jboss, And i also tried to deploy hibernate example in the Seam2 into tomcat6, but with the same exceptions: org.hibernate.HibernateException: Could not find datasource at org.hibernate.connection.DatasourceConnectionPro

[jboss-user] [JBoss Seam] - can't find datasource problem when mirgrate from seam1.2 to

2007-11-29 Thread tangdazhu
My application is working very well until i decide to migrade from seam1.2 to seam2, i am stuck by hibernate configuration problem in seam2, which always sent the message "Can't find the data source" , I have to list the related configuration files here, I also check your forum, it seems that th

[jboss-user] [JBoss Seam] - Re: Problem with Hibernate sessions post-Seam2 migration

2007-11-30 Thread tangdazhu
I got the same exception with datasource can't find problem. i don't think this is caused by wrong jdbc driver, because it can't be found in seam 1.2. this exception only happened in seam2. Have anyone fixed this problem? View the original post : http://www.jboss.com/index.html?module=bb&op=vie

[jboss-user] [JBoss Seam] - Re: can't find datasource problem when mirgrate from seam1.2

2007-11-30 Thread tangdazhu
Well,I have put my -ds.xml file under WEB-INF and WEB-INF\classes and even META_INF of my application directory, but it all doesn't work! I don't understand why it is so hard for configuration. But if i put the -ds.xml under the {tomcat}/lib/deploy directory , it at least can find the datasour

[jboss-user] [JBoss Seam] - Re: can't find datasource problem when mirgrate from seam1.2

2007-12-01 Thread tangdazhu
Can someone share his experience for integrating seam2 with Hibernate successfully? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109596#4109596 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109596 __

[jboss-user] [JBoss Seam] - How to access conversational components in the popup window

2007-12-25 Thread tangdazhu
I got the problem by the following scenario: 1.Create the seam component in conversation scope 2.in this component , i initialized a list called parametersList 3.I used window.showModalDialog() open a popup window but i can't access this parametersList in this child page, because it is null.

[jboss-user] [JBoss Seam] - Re: How to access conversational components in the popup win

2007-12-26 Thread tangdazhu
Thanks very much. You do me a really big favor. Now it works for me, and i got the possibility to reduce the amout of session objects in memory now. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115638#4115638 Reply to the post : http://www.jboss.com/index

[jboss-user] [JBoss Seam] - Where is Lifecycle.getServletContext() going in seam2?

2007-11-27 Thread tangdazhu
HI, I want to upgrade from seam 1.2 to seam2, but i found there is no Lifecycle.getServletContext() API in seam2 any more, can someone tell me where can i find this API ? thanks in advance. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108046#4108046 Re

[jboss-user] [JBoss Seam] - Re: Where is Lifecycle.getServletContext() going in seam2?

2007-11-27 Thread tangdazhu
i really need this API in the @Create annotation method, can someone help me out of this ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108279#4108279 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108279 ___

[jboss-user] [JBoss Seam] - How to do the initializing job immediately after a seam comp

2007-06-25 Thread tangdazhu
I want to do some initializing job just after the seam component is created , I can't put this kind of method in constructor because at that time, the component is not created. So is there some annotation or method to do such a kind of job in Seam ? i tried with @Create too, but it failed again

[jboss-user] [JBoss Seam] - Re: How to do the initializing job immediately after a seam

2007-06-25 Thread tangdazhu
Thanks hstang for reply, i know where the problem is when using the @Create annotation, i am using "private" for method decorator ,so actually seam component can't access it. When i modifed to "public" , it works now. View the original post : http://www.jboss.com/index.html?module=bb&op=viewto

[jboss-user] [JBoss Seam] - How to handle the exception:Wrong type at constant pool inde

2007-07-06 Thread tangdazhu
Soemtimes, when i run my seam application,it will throw the following exception: Wrong type at constant pool index Can someone tell me what is possible reason for this? thanks in advance! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061166#4061166 Reply t

[jboss-user] [JBoss Seam] - Re: How to handle the exception:Wrong type at constant pool

2007-07-06 Thread tangdazhu
The whole exception stack: exception root cause javax.faces.el.EvaluationException: Exception while invoking expression #{tabularCalculationBean.left2RightAll} at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:153) at javax.faces.component.UICommand.broadcas

[jboss-user] [JBoss Seam] - Re: How to handle the exception:Wrong type at constant pool

2007-07-07 Thread tangdazhu
Can i someone give me a little tips ? I am very traped about this now. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061651#4061651 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4061651

[jboss-user] [JBoss Seam] - Injected component can't be saved?

2007-07-15 Thread tangdazhu
i am using @In to inject a seam component(A) into anther seam component (B),then i save B into some sort of container like map, list...,but when i get the component (B) back , i just found the injected component(A) is null, Can someone tell me why @In has such a kind of activities? The scope of

[jboss-user] [JBoss Seam] - Re: Injected component can't be saved?

2007-07-15 Thread tangdazhu
Thanks for reply, then can i have another way to save the component? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064316#4064316 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4064316 __

[jboss-user] [JBoss Seam] - Re: Injected component can't be saved?

2007-07-15 Thread tangdazhu
Thanks for reply, then can i have another way to save the component? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064317#4064317 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4064317 __

[jboss-user] [JBoss Seam] - Re: How to update the DataModel object?

2007-05-23 Thread tangdazhu
i debug the memory and note that in ajax requests , the hibernate session is the same .my configuration about hibernate session in component.xml is: and in the hibernate.cfg.xml i have added the properties according the seam manual: true after_statement

[jboss-user] [JBoss Seam] - How to update the DataModel object?

2007-05-23 Thread tangdazhu
I am using seam 1.2.0 and integrate it with Ajax4Jsf in the project. My question is when i modified calculation from 1 to 2 in the page , i need to modify the paramters list (Annotated by DataModel) by ajax request. my codes are as follows: @DataModel private List runParameters; @Begin(join =

[jboss-user] [JBoss Seam] - How to get the seam component outside of the seam context?

2007-06-07 Thread tangdazhu
i want to get the seam component outside of the seam conext, i have tried to use component.getInstance(), but it says that no active context, can someone tell me how to get these components ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052370#4052370 Repl

[jboss-user] [JBoss Seam] - Re: Integration testing action events or value change events

2007-06-12 Thread tangdazhu
I have the same question for how to test actionlistener in Seam test, can someone help me? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053779#4053779 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053779 ___

[jboss-user] [JBoss Seam] - Re: Integration testing action events or value change events

2007-06-12 Thread tangdazhu
i have solved this problem by using NonFacesRequest, i pasted the codes here, hope it will be helpful for someone : @Test public void testChangeDataset() throws Exception { new NonFacesRequest() { @Override protecte