[JBoss Seam] - Re: Destroying Context Variable
by jamesjmp
Where should Contexts.removeFromAllContexts be used?
I´ve a clean seam-gened app. No scopes or annotations added up to now. I´ve added some data in the database. If I go the the list of a POJO and view the details they are showed. But if after that I want to create a new register of that POJO the pojoEdit page shows the data of the last pojo details. In the wire of the pojoHome I´ve tried Contexts.removeFromAllContexts with the list query but it doesn´t work. is that the place of doing it?
On the other hand, if I clone the pojoHome lets call the clone pojohome2. If in the pojolist.xhtml and pojolist.page.xml I reference the pojohome2 it works. It makes sense because of using diferente componenetshome. But I think cleaning the context in the proper place would be better.
thanks in advance!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097416#4097416
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097416
18Â years, 8Â months
[JBoss Seam] - Facelets variable injection?
by paradigmza
Hello,
I am busy building a custom facelets component that I will use like this
| <tns:autoForm compvar="#{testList}"/>
| <tns:autoForm compvar="#{anotherTestList}"/>
|
Where testList and anotherTestList are List objects that has been outjected by seam.
Now on the component side of things I can use the variable "compvar"
<h:dataTable var="item" value="#{compvar}">
| .
| .
| .
| </h:dataTable>
| <h:outputText value="#{helper.compVarSize}/>"
Now the trouble I have is with my "helper" component that has the method getCompVarSize()... I need access to whichever variable is passed to my component (testList or anotherTestList).
Idealy I would like to write this piece of code
| @Name("helper")
| public class SomeExample {
|
| @In
| List compvar; // this does not work
|
| public String getCompVarSize() {
| ...
| }
| }
This of course does not work becasue compvar is not a seam component... does any one know how I can do this?
Thanks.
Sean.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097411#4097411
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097411
18Â years, 8Â months
[JBoss jBPM] - Swimlane, actor-id, tasks
by sdore
Hi everyone,
i'm try to understand the logic that jbpm assigns tasks to user/group.
In my application i defined 2 swimlanes :
<assignment actor-id="marketing">
<assignment actor-id="pmar">
and i define 2 tasks...
<start-state name="Richiesta">
| <task name="Digitazione richiesta" swimlane="swimlane_banca">
| <controller>
| <variable access="read,write,required" name="Descrizione" mapped-name="Descrizione Richiesta"></variable>
| </controller>
| </task>
| <transition to="Valutazione" name="to Valutazione"></transition>
| </start-state>
|
|
| <task-node name="Valutazione">
| <task name="Valutazione" swimlane="swimlane_numera">
| <controller>
| <variable access="read" name="Descrizione" mapped-name="Descrizione Richiesta"></variable>
| <variable access="read,write,required" name="tempo" mapped-name="tempo di lavoro"></variable>
| </controller>
| </task>
| <transition to="Accettazione" name="to Accettazione"></transition>
| <transition to="Preview" name="to Preview"></transition>
| </task-node>
|
So i create a task "Digitazione Richiesta" assigned to user "Marketing" and a task "Valutazione" assigned to user "pmar".
But if i log-in in the jbpm-console like "pmar" i can execute task like marketing and viceversa. So, where am i wrong?
Thx in advanced and... Please Hekp me! I've spent so much time about it :/
salvatore
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097407#4097407
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097407
18Â years, 8Â months
[JCA/JBoss] - Re: How to configure two ManagedFactorys in ra.xml of one re
by liujw2001
Hello:
I now answer this question by myself. If someone who meets the same problem, I hope it can help you.
| <?xml version="1.0" encoding="UTF-8"?>
| <connector xmlns="http://java.sun.com/xml/ns/j2ee"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| version="1.5"
| >
| <!-- xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/connector_1_5.xsd"-->
| <display-name>FileRA</display-name>
| <vendor-name>Vendor Name</vendor-name>
| <eis-type>EIS Type</eis-type>
| <resourceadapter-version>1.5</resourceadapter-version>
|
| <resourceadapter>
| <resourceadapter-class/>
| <outbound-resourceadapter>
| <connection-definition>
| <managedconnectionfactory-class>com.jca.FileManagedConnectionFactory</managedconnectionfactory-class>
| <connectionfactory-interface>javax.resource.cci.ConnectionFactory</connectionfactory-interface>
| <connectionfactory-impl-class>com.jca.FileConnectionFactoryImpl</connectionfactory-impl-class>
| <connection-interface>com.jca.FileConnection</connection-interface>
| <connection-impl-class>com.jca.FileConnectionImpl</connection-impl-class>
| <config-property>
| <config-property-name>Server</config-property-name>
| <config-property-type>java.lang.String</config-property-type>
| <config-property-value>localhost</config-property-value>
| </config-property>
| <config-property>
| <config-property-name>Port</config-property-name>
| <config-property-type>java.lang.Integer</config-property-type>
| <config-property-value>2008</config-property-value>
| </config-property>
| <authentication-mechanism>
| <authentication-mechanism-type>BasicPassword</authentication-mechanism-type>
| <credential-interface>javax.resource.spi.security.PasswordCredential</credential-interface>
| </authentication-mechanism>
| </connection-definition>
|
| <connection-definition>
| <managedconnectionfactory-class>com.raredllra.ManagedConnectionFactoryImpl</managedconnectionfactory-class>
| <connectionfactory-interface>com.ratedllra.ConnectionFactory</connectionfactory-interface>
| <connectionfactory-impl-class>com.ratedllra.ConnectionFactoryImpl</connectionfactory-impl-class>
| <connection-interface>javax.resource.cci.Connection</connection-interface>
| <connection-impl-class>com.ratedllra.ConnectionImpl</connection-impl-class>
| </connection-definition>
|
| <transaction-support>LocalTransaction</transaction-support>
| <reauthentication-support>false</reauthentication-support>
| </outbound-resourceadapter>
| </resourceadapter>
|
| </connector>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097403#4097403
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097403
18Â years, 8Â months
[JBoss AOP] - Jboss AOP with web services upon jboss
by abdujaparov
Hi I heve developed a web service for jbossws and I would apply an aspect to the methods of this web service.
I have written the aspect code and the xml file for jbossaop and I have installed jboss aop on jboss4.2.1 following the jboss aop instruction (I've copied this directory jboss-aop-jdk50.deployer in the deploy directory of jboss4.2.1).
My war file is composed so:
directory META-INF:
directory WEB-INF:
-file web.xml;
-file jboss-aop.xml;
+directory classes:
-file jboss-aop.xml;
+directory xml:
-XMLJDomWriterStat.class
-XMLSaxReaderStat.class
+directory services:
-ServiceAOP.class;
-ServiceAOPAspect.class.
My web.xml file is so composed:
| <?xml version="1.0" encoding="UTF-8"?>
|
| <web-app version="2.5"
| 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-app_2_5.xsd">
|
| <servlet>
| <servlet-name>ServiceAOP</servlet-name>
| <servlet-class>service.ServiceAOP</servlet-class>
| </servlet>
|
| <servlet-mapping>
| <servlet-name>ServiceAOP</servlet-name>
| <url-pattern>/*</url-pattern>
| </servlet-mapping>
|
| </web-app>
|
My jboss-aop.xml is the following:
| <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
| <aop>
| <aspect class="service.ServiceAOPAspect" scope="PER_VM"/>
| <bind pointcut="execution(public double service.ServiceAOP->fattoriale(int))">
| <advice aspect="service.ServiceAOPAspect" name="statistics"/>
| </bind>
| </aop>
|
What have I to do for running aop on web service?
Thanks all, bye bye.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097402#4097402
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097402
18Â years, 8Â months
[JBossWS] - AOP with web service
by abdujaparov
Hi I heve developed a web service for jbossws and I would apply an aspect to the methods of this web service.
I have written the aspect code and the xml file for jbossaop and I have installed jboss aop on jboss4.2.1 following the jboss aop instruction (I've copied this directory jboss-aop-jdk50.deployer in the deploy directory of jboss4.2.1).
My war file is composed so:
directory META-INF:
directory WEB-INF:
-file web.xml;
-file jboss-aop.xml;
+directory classes:
-file jboss-aop.xml;
+directory xml:
-XMLJDomWriterStat.class
-XMLSaxReaderStat.class
+directory services:
-ServiceAOP.class;
-ServiceAOPAspect.class.
My web.xml file is so composed:
| <?xml version="1.0" encoding="UTF-8"?>
|
| <web-app version="2.5"
| 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-app_2_5.xsd">
|
| <servlet>
| <servlet-name>ServiceAOP</servlet-name>
| <servlet-class>service.ServiceAOP</servlet-class>
| </servlet>
|
| <servlet-mapping>
| <servlet-name>ServiceAOP</servlet-name>
| <url-pattern>/*</url-pattern>
| </servlet-mapping>
|
| </web-app>
|
My jboss-aop.xml is the following:
| <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
| <aop>
| <aspect class="service.ServiceAOPAspect" scope="PER_VM"/>
| <bind pointcut="execution(public double service.ServiceAOP->fattoriale(int))">
| <advice aspect="service.ServiceAOPAspect" name="statistics"/>
| </bind>
| </aop>
|
What have I to do for running aop on web service?
Thanks all, bye bye.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097400#4097400
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097400
18Â years, 8Â months