[JBoss Seam] - value of selectItems not posted in the form?
by idylle
Hi,
I've got a problem with the h:selectOneMenu and s:selectItems elements.
If I use h:selectOneMenu with f:selectItem ("id="colaff" " in the code below) , the value chosen in the select box is part of the values submitted with the form, no problem.
But if I use h:selectOneMenu with s:selectItems ("id="tpcidt" " in the code below), the value selected in the box is ignored when I submit the form.
<h:form id="collectivitesSearch" styleClass="edit" accept-charset="UTF-8" >
| <s:decorate template="layout/display.xhtml">
| <ui:define name="label">Ville</ui:define>
| <h:inputText id="colvil" value="#{collectivitesList.collectivites.colvil}"/>
| </s:decorate>
|
| <s:decorate template="layout/display.xhtml">
| <ui:define name="label">Type de collectivité</ui:define>
|
| <h:selectOneMenu id="tpcidt" value="#{collectivitesList.collectivites.typcol}">
| <s:selectItems value="#{typcolList.resultList}" var="untypcol" label="#{untypcol.tpclib}" noSelectionLabel="Select..." hideNoSelectionLabel="false"/>
| <s:convertEntity />
| </h:selectOneMenu>
| </s:decorate>
|
| <s:decorate template="layout/display.xhtml">
| <ui:define name="label">Affiliation</ui:define>
| <h:selectOneMenu id="colaff" value="#{collectivitesList.collectivites.colaff}">
| <f:selectItem itemValue="" itemLabel=" " />
| <f:selectItem itemValue="O" itemLabel="Oui" />
| <f:selectItem itemValue="N" itemLabel="Non" />
| </h:selectOneMenu>
| </s:decorate>
|
| <div class="actionButtons">
| <h:commandButton id="search" value="Chercher" action="/CollectivitesList.xhtml?firstResult=0">
| </h:commandButton>
| </div>
| </h:form>
Should I add something in my pages.xml? (I tried to add the param "tpcidt" but with no effect)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056360#4056360
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4056360
18Â years, 10Â months
[JBoss jBPM] - Re: Consider extending of ModuleInstance with end(), suspend
by p4elka
Hmm, I do not really want this to be supported through events. Actually suspend and resume is not of a big interest to me, currently I do care about process instance end. And there is already a 'process-end' event, but in order to be notified about the event inside my module instance, I need to create runtime action and register it in process instance. Runtime action needs to be associated with action + delegation, and the problem is that action will be persisted on process instance save and I do not want to create any additional database records. All I need it simply lightweight notification about the fact that process instance is ended, so I could do necessary 'finalization' actions in my module instance, same way it is now now in TaskMgmtInstance, imagine if TaskMgmtInstance notification would be implemented using events and I do not see reasons why built-in module instances should be handled differently then custom ones, at least in this area.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056350#4056350
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4056350
18Â years, 10Â months
[JBoss jBPM] - Re: BPEL process doesn't respond
by Kantti_
Hello again.
I noticed that I had forgotten to add the createInstance attribute to the receive.
The server sayes the following when I execute the redeploy command:
12:07:47,143 INFO [[/jbpm-bpel]] processDeployServlet: deploying process definition: file=file:/C:/jboss/jbpm-bpel-1.1.Beta3/examples/Omahello/target/hello-process.zip
| 12:07:47,611 INFO [BpelReader] read wsdl document: hello.wsdl
| 12:07:47,627 INFO [BpelReader] read wsdl document: hello.wsdl
| 12:07:47,658 INFO [BpelReader] read bpel document: hello.bpel
| 12:07:47,815 INFO [[/jbpm-bpel]] processDeployServlet: deployed process definition: HelloWorld
| 12:08:00,674 INFO [TomcatDeployer] deploy, ctxPath=/hello, warUrl=.../tmp/deploy/tmp38050hello-exp.war/
| 12:08:00,940 WARN [ProxyWarnLog] Narrowing proxy to class org.jbpm.bpel.graph.def.CompositeActivity - this operation breaks ==
| 12:08:01,018 WARN [ProxyWarnLog] Narrowing proxy to class org.jbpm.bpel.integration.def.ReceiveAction - this operation breaks ==
| 12:08:01,174 INFO [IntegrationConfigurator] Message reception enabled for process: HelloWorld
| 12:08:01,330 INFO [WSDLFilePublisher] WSDL published to: file:/C:/jboss/jboss-4.0.5.GA/server/default/data/wsdl/hello.war/hello-service.wsdl
| 12:08:01,409 WARN [ProxyWarnLog] Narrowing proxy to class org.jbpm.bpel.graph.def.CompositeActivity - this operation breaks ==
| 12:08:01,440 ERROR [StartListener] could not start process instance
| org.jbpm.bpel.BpelException: could not select nodes
| at org.jbpm.bpel.sublang.xpath.XPathExpressionEvaluator.evaluate(XPathExpressionEvaluator.java:86)
| at org.jbpm.bpel.graph.basic.assign.FromExpression.extract(FromExpression.java:36)
| 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.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:205)
| at org.jbpm.bpel.graph.basic.Assign$From_$$_javassist_112.extract(Assign$From_$$_javassist_112.java)
| at org.jbpm.bpel.graph.basic.Assign$Copy.copyValue(Assign.java:95)
| at org.jbpm.bpel.graph.basic.Assign.execute(Assign.java:54)
| at org.jbpm.bpel.graph.def.Activity.enter(Activity.java:105)
| at org.jbpm.graph.def.Transition.take(Transition.java:151)
| at org.jbpm.graph.def.Node.leave(Node.java:393)
| at org.jbpm.bpel.graph.def.Activity.leave(Activity.java:205)
| at org.jbpm.bpel.graph.def.ProcessInstanceStarter.visit(ProcessInstanceStarter.java:52)
| at org.jbpm.bpel.graph.basic.Receive.accept(Receive.java:96)
| 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.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:205)
| at org.jbpm.bpel.graph.basic.Receive_$$_javassist_16.accept(Receive_$$_javassist_16.java)
| at org.jbpm.bpel.graph.def.ProcessInstanceStarter.visit(ProcessInstanceStarter.java:61)
| at org.jbpm.bpel.graph.struct.Sequence.accept(Sequence.java:103)
| 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.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:205)
| at org.jbpm.bpel.graph.def.Activity_$$_javassist_159.accept(Activity_$$_javassist_159.java)
| at org.jbpm.bpel.graph.def.ProcessInstanceStarter.visit(ProcessInstanceStarter.java:46)
| at org.jbpm.bpel.graph.def.BpelProcessDefinition.messageReceived(BpelProcessDefinition.java:149)
| 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.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:205)
| at org.jbpm.bpel.graph.def.BpelProcessDefinition_$$_javassist_84.messageReceived(BpelProcessDefinition_$$_javassist_84.java)
| at org.jbpm.bpel.integration.jms.StartListener.onMessage(StartListener.java:118)
| at org.jboss.mq.SpyMessageConsumer.run(SpyMessageConsumer.java:696)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: org.jaxen.UnresolvableException: No Such Function {http://schemas.xmlsoap.org/ws/2004/03/business-process/}:getVariableData
| at org.jaxen.SimpleFunctionContext.getFunction(SimpleFunctionContext.java:127)
| at org.jaxen.ContextSupport.getFunction(ContextSupport.java:239)
| at org.jaxen.Context.getFunction(Context.java:193)
| at org.jaxen.expr.DefaultFunctionCallExpr.evaluate(DefaultFunctionCallExpr.java:168)
| at org.jaxen.expr.DefaultFunctionCallExpr.evaluateParams(DefaultFunctionCallExpr.java:187)
| at org.jaxen.expr.DefaultFunctionCallExpr.evaluate(DefaultFunctionCallExpr.java:171)
| at org.jaxen.expr.DefaultXPathExpr.asList(DefaultXPathExpr.java:98)
| at org.jaxen.BaseXPath.selectNodesForContext(BaseXPath.java:674)
| at org.jaxen.BaseXPath.selectNodes(BaseXPath.java:213)
| at org.jbpm.bpel.sublang.xpath.XPathExpressionEvaluator.evaluate(XPathExpressionEvaluator.java:72)
| ... 40 more
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056347#4056347
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4056347
18Â years, 10Â months