[JBoss Seam] - Re: Edit details
by vikramchhetryy
Hi,
Why anyone doesnt answer me? Am I in a wrong forum? I nearly have 10 unanswered posts.
Anyways I tried to solve it and wrote some doce for this.
XHTML:-
| <a:outputPanel id="searchResults">
| <div class="section"><h:outputText value="No Agents Found"
| rendered="#{agentDetails != null and agentDetails.rowCount==0}" />
| <h:dataTable id="agentDetails" value="#{agentDetails}"
| var="details" rendered="#{agentDetails.rowCount>0}"
| style="width: 400px;text-align:center;" border="1">
| <h:column>
| <f:facet name="header">
| <f:facet name="header">Unlock ?</f:facet>
| </f:facet>
| <h:selectBooleanCheckbox
| value="#{callCenterAgentManage.selectedAccount[details]}"
| style="height: 15px;" />
| </h:column>
| <h:column>
| <f:facet name="header">User Name</f:facet>
| #{details.strUserName}
| </h:column>
| <h:column>
| <f:facet name="header">First Name</f:facet>
| #{details.person.strFirstName}
| </h:column>
| <h:column>
| <f:facet name="header">Last Name</f:facet>
| #{details.person.strLastName}
| </h:column>
| <h:column>
| <f:facet name="header">Account Status</f:facet>
| #{details.flgAccountStatus}
| </h:column>
| <h:column>
| <f:facet name="header">Action</f:facet>
| <s:link id="editCallCenterAgent" value="Edit"
| action="callCenterAgentManage.editSelectedCallCenterAgentDetails(details)" />
| </h:column>
| </h:dataTable>
| <h:commandButton
| action="#{callCenterAgentManage.unlockSelectedCallCenterAgentAccount}"
| value="Activate Agent" />
| </a:outputPanel>
Inside Java:
| @Begin
| public void editSelectedCallCenterAgentDetails(Account acc) {
| log.info("Inside editSelectedCallCenterAgentDetails method "
| + acc.getPerson().getStrFirstName());
| getSelectedCallCenterAgentDetails(acc.getStrUserName());
| log.info("Exiting editSelectedCallCenterAgentDetails method");
| }
|
| public void getSelectedCallCenterAgentDetails(String userName) {
| log.info("Inside getSelectedCallCenterAgentDetails method " + userName);
|
| log.info("Exiting getSelectedCallCenterAgentDetails method");
| }
|
| @End
| public void updateCallCenterAgentDetails() {
| log.info("Inside updateCallCenterAgentDetails method");
|
| log.info("Exiting updateCallCenterAgentDetails method");
| }
Pages.xml
| <page view-id="/callCenterAgentManage.xhtml"
| login-required="true">
|
| <navigation
| from-action="#{callCenterAgentManage.editSelectedCallCenterAgentDetails(details)}">
| <redirect view-id="/callCenterAgentEdit.xhtml" />
| </navigation>
|
| <navigation from-action="#{callCenterAgentManage.cancel}">
| <redirect view-id="/callCenterAgentManage.xhtml" />
| </navigation>
|
| </page>
When I click the edit link nothing happens. Nothing is printed in the logs as well.
Can any one tell me whats going wrong?
Any would be appreciated.
Thanks in advance,
Vikram
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118231#4118231
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118231
18 years, 3 months
[JBoss jBPM] - BPEL Problem
by danesharman
Dear Friends,
I have designed a process in Intalio Designer with BPMN. The process was transformed to BPEL and then I decided to port it to the jBPM BPEL 1.1 GA.
But when I want to deploy the process, the following error message is shown:
15:19:42,265 ERROR [ProblemHandler] activity not found (HelloWorld.bpel) at /bpe
l:process
15:19:42,281 ERROR [[deploymentServlet]] Servlet.service() for servlet deploymen
tServlet threw exception
org.jbpm.bpel.xml.BpelParseException: 1 problem(s) found
at org.jbpm.bpel.par.GenericArchiveParser.readFromArchive(GenericArchive
Parser.java:59)
at org.jbpm.jpdl.par.ProcessArchive.parseProcessDefinition(ProcessArchiv
e.java:81)
at org.jbpm.bpel.web.DeploymentServlet.readProcessDefinition(DeploymentS
ervlet.java:169)
at org.jbpm.bpel.web.DeploymentServlet.doPost(DeploymentServlet.java:95)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
lter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:178)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
yAssociationValve.java:175)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
e.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:105)
at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConne
ctionValve.java:156)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
rocessConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
int.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWor
kerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
The BPEL file is as follows:
<?xml version="1.0" encoding="UTF-8"?>
<bpel:process xmlns:bpel="http://schemas.xmlsoap.org/ws/2004/03/business-process/" xmlns:pnlk="http://schemas.xmlsoap.org/ws/2004/03/partner-link/" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="HelloWorld" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:Client="http://example.com/HelloWorld/Client" xmlns:this="http://example.com/HelloWorld/HelloWorld" xmlns:tns="http://www.example.org/message" xmlns:diag="http://example.com/HelloWorld" xmlns:bpmn="http://www.intalio.com/bpms" queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0" expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0" bpmn:label="HelloWorld" bpmn:id="_D_zJsBM9EdyPb_UILLtcZA" targetNamespace="http://example.com/HelloWorld/HelloWorld">
<bpel:import namespace="http://example.com/HelloWorld" location="HelloWorld.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
<bpel:import namespace="http://example.com/HelloWorld/HelloWorld" location="HelloWorld-HelloWorld.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
<bpel:partnerLinks>
<bpel:partnerLink name="clientAndHelloWorldPlkVar" partnerLinkType="diag:ClientAndHelloWorld" myRole="HelloWorld_for_Client"/>
</bpel:partnerLinks>
<bpel:variables>
<bpel:variable name="thisFirst-taskRequestMsg" messageType="this:first-taskRequest"/>
<bpel:variable name="thisFirst-taskResponseMsg" messageType="this:first-taskResponse"/>
</bpel:variables>
<bpel:sequence>
<bpel:receive partnerLink="clientAndHelloWorldPlkVar" portType="this:ForClient" operation="first-task" variable="thisFirst-taskRequestMsg" createInstance="yes" bpmn:label="first-task" bpmn:id="_iD0hgBM-EdyPb_UILLtcZA"></bpel:receive>
<bpel:assign name="init-variables-HelloWorld">
<bpel:copy bpmn:label="$thisFirst-taskResponseMsg out:_0aEDkBM_EdyPb_UILLtcZA">
<bpel:from>
<bpel:literal>
<this:first-taskResponse>
</this:first-taskResponse>
</bpel:literal>
</bpel:from>
<bpel:to>$thisFirst-taskResponseMsg.body</bpel:to>
</bpel:copy>
</bpel:assign>
<bpel:assign bpmn:label="reply" bpmn:id="_tHId8BM-EdyPb_UILLtcZA">
<bpel:copy>
<bpel:from>concat($thisFirst-taskRequestMsg.body, "World")</bpel:from>
<bpel:to>$thisFirst-taskResponseMsg.body</bpel:to>
</bpel:copy>
</bpel:assign>
<bpel:reply partnerLink="clientAndHelloWorldPlkVar" portType="this:ForClient" operation="first-task" variable="thisFirst-taskResponseMsg" bpmn:label="reply" bpmn:id="_tHId8BM-EdyPb_UILLtcZA"></bpel:reply>
</bpel:sequence>
</bpel:process>
When I compare the above BPEL to the BPEL of examples of jBPM, there are differences between them but in documentation of Intalio and jBPM it has been written that both of them support BPEL 2. Is it correct?
Thanks,
Arman
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118225#4118225
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118225
18 years, 3 months
[JBoss Seam] - Backing a selectOneMenu with a Collection
by fissy101
Hello,
I am trying to write a simple database application using seam. There are two entities, User and Movie. There is a ManyToOne relationship between them currently. From Movie.java:
| @ManyToOne
| public User getOwner() {return owner;}
| public void setOwner(User owner) {this.owner = owner;}
|
There is a movie.xhtml view which is used to create and edit Movie entities before persisting them. One of the required fields in this form is the owner of the Movie:
| <h:selectOneMenu value="#{movie.owner}" required="true">
| <s:selectItems value="#{allusers}" var="user" label="#{user.firstName} #{user.familyName}" noSelectionLabel="Please Select..." cache="false"/>
| </h:selectOneMenu>
|
The allusers Collection referred to here is a factory method defined in a UserList.java 'action' class:
| @Factory("allusers")
| public void findAllUsers() {
| System.out.println("findAllUsers called");
| allusers = em.createQuery("select u from User u").getResultList();
| }
|
When movie.xhtml is viewed, the selectOneMenu is populated with the firstName familyName, which is great. Unfortunately, when the form is submitted to create and persist the new Movie object, the following error is shown either in a big stack trace or just the facesMessages if I enable that in the page:
| * /admin/movie.xhtml @31,57 value="#{movie.owner}": java.lang.IllegalArgumentException: argument type mismatch
|
I don't really know where to start with this, as I don't know what is expecting an argument, or what what type it is expecting, or what I am sending it. Can anyone help?
Many thanks,
Dave
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118218#4118218
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118218
18 years, 3 months