[JBoss Seam] - Passing dynamic values to enhanced el expression
by bludkiewicz
Hi all,
I have a button whose value I'm trying to pass to my bean using Seam's enhanced EL. Below is a snippet from my xhtml page:
| <h:form>
| <c:forEach var="answer" items='#{ testing.test.currentQuestion.answers }'>
| <h:commandButton value='#{ answer.name }' action='#{ testing.scoreQuestion( answer.name ) }' />
| </c:forEach>
| </h:form>
|
This will always pass a null reference to the testing.scoreQuestion( String ) method. I have also tried #{ testing.scoreQuestion( ${answer.name} ) } and #{ testing.scoreQuestion( #{answer.name} ) } but I get errors as it tries to evaluate #{${answer.name}} and #{#{answer.name}}, respectively. So, if that's the case then why is #{ answer.name } evaluating to null for the action yet the button renders with the proper value of #{ answer.name }? Is there another way of accomplishing this or am I just missing something obvious? Any help would be appreciated.
Thanks,
-=B=-
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098970#4098970
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098970
18Â years, 6Â months
[JBoss Seam] - Seam 1.2.1 + trinidad 1.2.2 + JBoss 4.2.1
by jaimerodriguezï¼ gmail.com
Hi there,
I built an app in seam 1.2.1 + trinidad 1.0.2 + jboss 4.0.5, but now I require new components from tirinidad 1.2.2, I replaced the trinidad jars in my app and I deployed in jboss 4.2.1 (Trinidad 1.2.2 require jsf1.2). I'm getting following error:
javax.faces.FacesException: java.lang.RuntimeException: java.lang.NoSuchMethodException: com.sun.faces.application.ApplicationImpl.addELResolver(javax.el.ELResolver)
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:387)
at org.jboss.web.jsf.integration.config.JBossJSFConfigureListener.contextInitialized(JBossJSFConfigureListener.java:69)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3854)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4359)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
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:597)
at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.apache.catalina.core.StandardContext.init(StandardContext.java:5310)
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:597)
at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)
at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
at org.jboss.web.WebModule.startModule(WebModule.java:83)
at org.jboss.web.WebModule.startService(WebModule.java:61)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:417)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy45.start(Unknown Source)
at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
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:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
at org.jboss.ws.integration.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:93)
at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy46.start(Unknown Source)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy9.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:417)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy4.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
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:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
at org.jboss.Main.boot(Main.java:200)
at org.jboss.Main$1.run(Main.java:508)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.RuntimeException: java.lang.NoSuchMethodException: com.sun.faces.application.ApplicationImpl.addELResolver(javax.el.ELResolver)
at org.jboss.seam.jsf.SeamApplication12.(SeamApplication12.java:46)
at org.jboss.seam.jsf.SeamApplicationFactory.getApplication(SeamApplicationFactory.java:29)
at com.sun.faces.config.ConfigureListener.application(ConfigureListener.java:467)
at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:513)
at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:487)
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:381)
... 137 more
Caused by: java.lang.NoSuchMethodException: com.sun.faces.application.ApplicationImpl.addELResolver(javax.el.ELResolver)
at java.lang.Class.getMethod(Class.java:1605)
at org.jboss.seam.jsf.SeamApplication12.(SeamApplication12.java:35)
... 142 more
Thanks in advance for help.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098967#4098967
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098967
18Â years, 6Â months
[JBoss Seam] - Re: Question on conversation...
by gus888
"jacob.orshalick" wrote : anonymous wrote : 1. How do these conversations end if the user does not come back to generate a click that invokes the method with @End annotation?
|
| Conversations will timeout after a configurable time period. Any conversation that is not the foreground conversation (the current conversation with the user), will timeout after the timeout period. In addition, conversations will timeout with the session.
| The problem is that before the conversation timeout, if the user immediately click another @Begin to start another conversation, the system will down and throw exception which requires @Begin(join=true). I have been looking for a long time on the forum, but couldn't get the solution.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098966#4098966
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098966
18Â years, 6Â months
[JBoss Seam] - Re: Question on conversation...
by jacob.orshalick
anonymous wrote : 1. How do these conversations end if the user does not come back to generate a click that invokes the method with @End annotation?
Conversations will timeout after a configurable time period. Any conversation that is not the foreground conversation (the current conversation with the user), will timeout after the timeout period. In addition, conversations will timeout with the session.
anonymous wrote : 2. Is there a limit to the number of conversations, one can start?
Not that I am aware of. I remember seeing a thread that discussed adding this as a feature, but I have not seen any JIRA issues for it.
anonymous wrote : 3. What is the performance overhead of maintaining all these conversation contexts... If the stateful bean passivates and the need to activate them? Are there any performance numbers for Seam?
I have not seen or performed any performance testing with respect specifically to conversations (maybe someone else has). If you decide to run any performance tests I'm sure everyone would appreciate if you post your results :)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098956#4098956
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098956
18Â years, 6Â months
[JBoss jBPM] - Issue with Fork and Join in Weblogic 9.1
by ailenin
org.hibernate.StaleObjectStateException: Row was updated or deleted by another t
ransaction (or unsaved-value mapping was incorrect): [org.jbpm.graph.exe.Token#2
282]
at org.hibernate.persister.entity.AbstractEntityPersister.forceVersionIn
crement(AbstractEntityPersister.java:1235)
at org.hibernate.event.def.AbstractLockUpgradeEventListener.upgradeLock(
AbstractLockUpgradeEventListener.java:82)
at org.hibernate.event.def.DefaultLockEventListener.onLock(DefaultLockEv
entListener.java:64)
at org.hibernate.impl.SessionImpl.fireLock(SessionImpl.java:584)
at org.hibernate.impl.SessionImpl.lock(SessionImpl.java:576)
at org.jbpm.graph.node.Join.execute(Join.java:109)
at org.jbpm.graph.def.Node.enter(Node.java:318)
at sun.reflect.GeneratedMethodAccessor360.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyI
nitializer.java:157)
at org.jbpm.graph.def.Node$$EnhancerByCGLIB$$f476c7f6.enter()
at org.jbpm.graph.def.Transition.take(Transition.java:151)
at org.jbpm.graph.def.Node.leave(Node.java:393)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098954#4098954
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098954
18Â years, 6Â months