[jboss-user] [JBoss Seam] - Re: How to access conversational components in the popup win
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=bbop=viewtopicp=4115638#4115638 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4115638 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - How to access conversational components in the popup window
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. i can fix it by change the component context scope to Session instead of conversation. but i don't want to maintain so many objects in memory, is there some ways to call the conversation objects in the popup window. Note: the way that i open this popup window like this : 1. window.showModalDialog(baseURL.value + pages/cpi/Calculation_parameters_add.jsf, , dialogHeight:300px;dialogWidth:500px); 2.the page structure for Calculation_parameters_add.jsp like this : f:view ... /f:view Can someone give me some tips about this kind of situation? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4115407#4115407 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4115407 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: can't find datasource problem when mirgrate from seam1.2
Can someone share his experience for integrating seam2 with Hibernate successfully? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4109596#4109596 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109596 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problem with Hibernate sessions post-Seam2 migration
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=bbop=viewtopicp=4109181#4109181 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109181 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: can't find datasource problem when mirgrate from seam1.2
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 datasoure when tomcat is started. INFO 01-12 09:34:11,416 (ConnectionFactoryBindingService.java:bindConnectionFactory:148) -Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=CPI_SqlserverDatasource' to JNDI name 'java:CPI_SqlserverDatasource' but i just don't know why my hibernate can't find this datasource under this kind of situation. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4109501#4109501 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109501 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: can't find datasource problem when mirgrate from seam1.2
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.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:56) at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124) at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:56) at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:414) at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:62) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2009) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1292) at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:915) at org.jboss.seam.persistence.HibernateSessionFactory.createSessionFactory(HibernateSessionFactory.java:165) at org.jboss.seam.persistence.HibernateSessionFactory.startup(HibernateSessionFactory.java:79) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.seam.util.Reflections.invoke(Reflections.java:21) at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:125) at org.jboss.seam.Component.callComponentMethod(Component.java:2074) at org.jboss.seam.Component.callCreateMethod(Component.java:1997) at org.jboss.seam.Component.newInstance(Component.java:1968) at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304) at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278) at org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:95) at org.jboss.seam.init.Initialization.init(Initialization.java:555) at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:34) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3830) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4337) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:719) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:566) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Caused by: javax.naming.NameNotFoundException: Name java:comp is not bound in this Context at org.apache.naming.NamingContext.lookup(NamingContext.java:770) at org.apache.naming.NamingContext.lookup(NamingContext.java:153) at org.apache.naming.SelectorContext.lookup(SelectorContext.java:137) at org.jboss.embedded.tomcat.jndi.ENCFactory.getObjectInstance(ENCFactory.java:73) at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304) at javax.naming.spi.NamingManager.getContext(NamingManager.java:422) at
[jboss-user] [JBoss Seam] - can't find datasource problem when mirgrate from seam1.2 to
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 there are other people are asking the similar question before , but with no good answer. 1. components.xml under WEB-INF directory of my application | | ?xml version=1.0 encoding=UTF-8? | components xmlns=http://jboss.com/products/seam/components; | xmlns:core=http://jboss.com/products/seam/core; | xmlns:bpm=http://jboss.com/products/seam/bpm; | xmlns:persistence=http://jboss.com/products/seam/persistence; | xmlns:security=http://jboss.com/products/seam/security; | xmlns:transaction=http://jboss.com/products/seam/transaction; | xmlns:framework=http://jboss.com/products/seam/framework; | xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; | xsi:schemaLocation=http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.0.xsd | http://jboss.com/products/seam/bpm http://jboss.com/products/seam/bpm-2.0.xsd | http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.0.xsd | http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.0.xsd | http://jboss.com/products/seam/transaction http://jboss.com/products/seam/transaction-2.0.xsd | http://jboss.com/products/seam/framework http://jboss.com/products/seam/framework-2.0.xsd | http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.0.xsd; | | core:init debug=true transaction-management-enabled=false / | | !-- 120 second conversation timeout -- | core:manager conversation-timeout=180 | concurrent-request-timeout=500 conversation-id-parameter=cid / | | !-- this is related with hibernate.cfg.xml which install the hibernate entity manager-- | | persistence:hibernate-session-factory | name=hibernateSessionFactory / | | persistence:managed-hibernate-session name=session | session-factory-jndi-name=java:/HibernateSessionFactory | auto-create=true / | | | /components | 2.hibernate.cfg.xml and seam.properties deployed directly in jar file of my application | hibernate-configuration | session-factory name=java:/HibernateSessionFactory | property name=hibernate.show_sqlfalse/property | property name=connection.datasourcejava:/CPI_SqlserverDatasource/property | | ... | /hibernate-configuration | 3.my ds.xml file for data source, i deploy it into the {Tomcat6.home}\lib\deploy directory | | ?xml version=1.0 encoding=UTF-8? | datasources | | local-tx-datasource | jndi-nameCPI_SqlserverDatasource/jndi-name | connection-urljdbc:sqlserver://127.0.0.1:1433;DatabaseName=CPI_NEW;integratedSecurity=true;applicationName=CPI UI;/connection-url | | driver-classcom.microsoft.sqlserver.jdbc.SQLServerDriver/driver-class | | min-pool-size5/min-pool-size | max-pool-size20/max-pool-size | transaction-isolationTRANSACTION_READ_COMMITTED/transaction-isolation | idle-timeout-minutes0/idle-timeout-minutes | /local-tx-datasource | | /datasources | 4. faces-config.xml under WEB-INF directory of my application | | ?xml version='1.0' encoding='UTF-8'? | faces-config version=1.2 | xmlns=http://java.sun.com/xml/ns/javaee; | xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; | xsi:schemaLocation=http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd; | | | application | locale-config | | default-localeen/default-locale | supported-localeen/supported-locale | supported-localezh/supported-locale | | /locale-config | | /application | | | | /faces-config | 5. context.xml under the META-INF directory of my application | ?xml version=1.0 encoding=UTF-8? | Context override=true | Manager | className=org.apache.catalina.session.StandardManager | distributable=false | maxActiveSessions=-1 | pathname= | / | /Context | | the exception i got is 严é: Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener org.hibernate.HibernateException: Could not find datasource: java:/CPI_SqlserverDatasource at
[jboss-user] [JBoss Seam] - Where is Lifecycle.getServletContext() going in seam2?
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=bbop=viewtopicp=4108046#4108046 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4108046 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Where is Lifecycle.getServletContext() going in seam2?
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=bbop=viewtopicp=4108279#4108279 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4108279 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Injected component can't be saved?
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 A is session, the scope for B is conversation. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4064310#4064310 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4064310 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Injected component can't be saved?
Thanks for reply, then can i have another way to save the component? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4064316#4064316 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4064316 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Injected component can't be saved?
Thanks for reply, then can i have another way to save the component? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4064317#4064317 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4064317 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How to handle the exception:Wrong type at constant pool
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=bbop=viewtopicp=4061651#4061651 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4061651 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - How to handle the exception:Wrong type at constant pool inde
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=bbop=viewtopicp=4061166#4061166 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4061166 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How to handle the exception:Wrong type at constant pool
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.broadcast(UICommand.java:86) at org.ajax4jsf.framework.ajax.AjaxActionComponent.broadcast(AjaxActionComponent.java:47) at org.ajax4jsf.framework.ajax.AjaxViewRoot.processEvents(AjaxViewRoot.java:180) at org.ajax4jsf.framework.ajax.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:158) at org.ajax4jsf.framework.ajax.AjaxViewRoot.processApplication(AjaxViewRoot.java:329) at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:343) at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:96) at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:220) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at com.ogentech.cpi_ui.filter.HttpSessionFilter.doFilter(HttpSessionFilter.java:61) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63) at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:60) at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49) at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45) at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49) at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57) at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49) at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79) at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49) at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685) at java.lang.Thread.run(Thread.java:595) Caused by: java.lang.annotation.AnnotationFormatError: java.lang.IllegalArgumentException: Wrong type at constant pool index at sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:57) at java.lang.reflect.Method.declaredAnnotations(Method.java:676) at java.lang.reflect.Method.getAnnotation(Method.java:663) at java.lang.reflect.AccessibleObject.isAnnotationPresent(AccessibleObject.java:175) at org.jboss.seam.intercept.JavaBeanInterceptor.markDirty(JavaBeanInterceptor.java:94) at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:79) at com.ogentech.cpi_ui.bean.TabularCalculationBean_$$_javassist_12.left2RightAll(TabularCalculationBean_$$_javassist_12.java) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at
[jboss-user] [JBoss Seam] - How to do the initializing job immediately after a seam comp
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. Thanks in advance. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4057533#4057533 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4057533 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How to do the initializing job immediately after a seam
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=bbop=viewtopicp=4057535#4057535 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4057535 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Integration testing action events or value change events
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=bbop=viewtopicp=4053779#4053779 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4053779 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - How to get the seam component outside of the seam context?
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=bbop=viewtopicp=4052370#4052370 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4052370 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How to update the DataModel object?
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: core:managed-hibernate-session name=session auto-create=true session-factory-jndi-name=java:/HibernateSessionFactory / and in the hibernate.cfg.xml i have added the properties according the seam manual: true after_statement org.hibernate.transaction.JBossTransactionManagerLookup org.hibernate.transaction.JTATransactionFactory View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4047812#4047812 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4047812 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - How to update the DataModel object?
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 = true) @Factory(runParameters) public void findRunParameters() throws ClassNotFoundException { some codes to get the runParameters list through hibernate3 } the action will be called by ajax is: public void changeDropdownForCalculation(ActionEvent event) throws Exception { .. findRunParameters(); } now you can see that i am using findRunParameters() to modify the list directly , but but i got the exception as follows: Caused by: org.hibernate.HibernateException: identifier of an instance of com.ogentech.cpi.dataobjects.calculation.Calculation was altered from 1 to 2 Can someone help me? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4047811#4047811 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4047811 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: problems when migrate navigation from faces-config.xml t
Now i found that the wrong message can be displayed in the jsp pages, only when i used h:messages/ to get the global messages. if i don't add this tag, it won't disply. does it mean that the tag h:message for=password/ is not useful for seam? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4036945#4036945 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4036945 ___ jboss-user mailing list [EMAIL PROTECTED] https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - add my own interceptor with problems
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 = Contexts.getSessionContext().get(user_status) != null; if (isLoggedIn) { // the user is already logged in log.info(Login interceptor is invoked!, null); return invocation.proceed(); } else { // the user is not logged in, fwd to login page return login; } } } 2.i want to use this interceptor in my managed bean @Scope(CONVERSATION) @Name(longCardQueryAction) @Interceptors(LoggedInInterceptor.class) public class LongCardQueryAction extends BaseBean {} but it seems that that interceptor doesn't work, can anyone tell me what's wrong with my problem? I just guess i need to config this interceptor in some place ,but i don't know where it is. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4037006#4037006 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4037006 ___ jboss-user mailing list [EMAIL PROTECTED] https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - problems when migrate navigation from faces-config.xml to pa
1.i had a application which is runing well when i am using the faces-config.xml, for example the login page: navigation-rule from-view-id/pages/input/login.jsp/from-view-id navigation-case from-outcomelogin_success/from-outcome to-view-id/pages/input/mainpage.jsp/to-view-id /navigation-case navigation-case from-outcomelogin_failure/from-outcome to-view-id/pages/input/login.jsp/to-view-id /navigation-case /navigation-rule 2.Now i want to use the seam 1.2 page navigation ability : so i migrate the navigation to the pages.xml: page view-id=/pages/input/login.jsp rule if-outcome=login_success redirect view-id=/pages/input/mainpage.jsp / rule if-outcome=login_failure redirect view-id=/pages/input/login.jsp / 3.The problem is i can't show the wrong messages when i migrated into pages.xml. the codes to deal with the messages in the managed bean are if (!user.getPassword().equals(this.getPassword())) { facesMessages.addToControlFromResourceBundle(loginForm:password, FacesMessage.SEVERITY_ERROR, login_password_is_not_correct); return login_failure; } loginForm:password means that i have a form called loginForm and a field called password in the jsp page. So how to show the wrong messages in the web page if i choose to use seam navigation? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4036597#4036597 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4036597 ___ jboss-user mailing list [EMAIL PROTECTED] https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - HibernateSessionProxy ClassCastException
1. i want to inject the hibernate session in seam,so i config the component.xml as follows: core:hibernate-session-factory name=hibernateSessionFactory / core:managed-hibernate-session name=session auto-create=true session-factory-jndi-name=java:/HibernateSessionFactory / 2. Inside managed Bean , i use @in to inject the Hibernate Session, but when i am using DetachedCriteria in my application DetachedCriteria criteria = DetachedCriteria.forClass(Smartform.class); criteria.getExecutableCriteria(session) i got the HibernateSessionProxy ClassCastException,i debug the application and found that seam injected HibernateSessionProxy not the real HibernateSession object . So DetachedCriteria can't work. Does it mean that i can't use DetachedCriteria in my application? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4031271#4031271 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031271 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user