2 Replies Latest reply on Jun 13, 2007 4:38 AM by Tomislav Tkal?evi?

    s:link and expression language #{}

    Tomislav Tkal?evi? Novice

      I have a tomahawk tree component which I'm trying to use as a navigator for my application....This tree component uses as value my katalog.katalog which is my type of implementation of treenode.I did that because i need one more proprety to get one more value besides, description and identifier, and that is which pageflow should i use on s:link tag to know whic pageflow to start.
      But when I through expresion language try to get to that value(pageflow) on s:link tag <s:link pageflow="#{node.pageflow}" i get non value....can someone please help...??

      <t:tree2 id="clientTree" value="#{katalog.katalog}" var="node"
      varNodeToggler="t">

      <f:facet name="orka">
      <h:panelGroup>
      <f:facet name="expand">
      <t:graphicImage value="/slike/ikone/yellow-folder-open.png" rendered="#{t.nodeExpanded}" border="0"/>
      </f:facet>
      <f:facet name="collapse">
      <t:graphicImage value="/slike/ikone/yellow-folder-closed.png" rendered="#{!t.nodeExpanded}" border="0"/>
      </f:facet>
      <h:outputText value="#{node.description}" styleClass="nodeFolder"/>
      <h:outputText value=" (#{node.childCount})" styleClass="childCount" rendered="#{!empty node.children}"/>
      </h:panelGroup>
      </f:facet>
      <f:facet name="grana">
      <h:panelGroup>
      <f:facet name="expand">
      <t:graphicImage value="/slike/ikone/yellow-folder-open.png" rendered="#{t.nodeExpanded}" border="0"/>
      </f:facet>
      <f:facet name="collapse">
      <t:graphicImage value="/slike/ikone/yellow-folder-closed.png" rendered="#{!t.nodeExpanded}" border="0"/>
      </f:facet>
      <h:outputText value="#{node.description}" styleClass="nodeFolder"/>
      <h:outputText value=" (#{node.childCount})" styleClass="childCount" rendered="#{!empty node.children}"/>
      </h:panelGroup>
      </f:facet>
      <f:facet name="posao">
      <h:panelGroup>
      <t:commandLink action="#{node.getIdentifier}">
      <t:graphicImage value="/slike/ikone/document.png" border="0"/>
      <t:outputText value="#{node.description}"/>
      </t:commandLink>

      <f:verbatim>: </f:verbatim>

      <<<<<<<<<THIS IS THAT WHAT MATTERS I NEED TO KNOW WHICH PAGEFLOW TO START>>>>>>>>>>>>>>>
      <s:link value="#{node.pageflow}"
      view="#{node.identifier}"
      propagation="begin"
      pageflow="#{node.pageflow}"/>

      <<<<<<<<<<<THIS WAY WORKS BUT IT'S TOTALY FIX>>>>>>>>>>>>>>>>
      <s:link
      value="#{node.pageflow}"
      view="#{node.identifier}"
      propagation="begin"
      pageflow="operater"/>
      </h:panelGroup>


      </f:facet>

        • 2. Re: s:link and expression language #{}
          Tomislav Tkal?evi? Novice

          Hy Gavin..many thanks on that...but there is one problem,First i checked out
          jboss-seam 1_3_0_A1 from :pserver:anonymous@anoncvs.forge.jboss.com:/cvsroot/jboss cvs, and after that build it by runing the ant build.xml...Deploying the myaplication.ear causes the next exception to appear:



          10:25:13,072 ERROR [[/kadrovska]] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
          java.lang.RuntimeException: exception invoking: startup
          at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:134)
          at org.jboss.seam.Component.callComponentMethod(Component.java:1904)
          at org.jboss.seam.Component.callCreateMethod(Component.java:1827)
          at org.jboss.seam.Component.newInstance(Component.java:1816)
          at org.jboss.seam.contexts.Lifecycle.startup(Lifecycle.java:212)
          at org.jboss.seam.contexts.Lifecycle.startup(Lifecycle.java:189)
          at org.jboss.seam.contexts.Lifecycle.endInitialization(Lifecycle.java:162)
          at org.jboss.seam.init.Initialization.init(Initialization.java:500)
          at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:34)
          at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3763)
          at org.apache.catalina.core.StandardContext.start(StandardContext.java:4211)
          at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
          at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
          at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
          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.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
          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:5052)
          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.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
          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.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:297)
          at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:103)
          at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:371)
          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.GeneratedMethodAccessor2.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:585)
          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:585)
          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 $Proxy42.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:585)
          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.jboss.DeployerInterceptor.start(DeployerInterceptor.java:92)
          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 $Proxy43.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:585)
          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 $Proxy8.deploy(Unknown Source)
          at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
          at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610)
          at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
          at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
          at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
          Caused by: java.lang.reflect.InvocationTargetException
          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:124)
          ... 98 more

          Caused by: java.lang.NoSuchMethodError: org.jbpm.jpdl.el.impl.JbpmExpressionEvaluator.setFunctionMapper(Lorg/jbpm/jpdl/el/FunctionMapper;)V
          at org.jboss.seam.core.Jbpm.startup(Jbpm.java:70)
          ... 104 more


          Is that my fault || ??