[jboss-user] [JBoss jBPM] - Re: Id of process starter

2008-10-06 Thread Jump
kukeltje wrote : you cannot have an assignment in it just leave it empty 
and set the actor id with the api on the jbpm context when starting a process

Would You please clear that for me. Do You mean, that I cannot use assignment 
statement inside swimlane


  | swimlane name=initiator
  | 
  | assignment actor-id=#{actor.id}/
  | 
  | /swimlane
  | 

or I cannot use swimlane in start task


  | start-state name=Start
  | task name= 'taskforinitiator' swimlane='initiator'/
  | transition to=UserProcessNum/transition
  | /start-state
  | 

or I should care about injecting Actor instance into JBPMContext before 
starting the process?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4180496#4180496

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4180496
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: How to case seam components in different jars?

2008-01-21 Thread Jump
something like this

  | ...
  |module
  |   ejbmy.jar/ejb
  |/module
  | ...
  | 
?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4121739#4121739

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121739
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - How to case seam components in different jars?

2008-01-18 Thread Jump
I've decided to divide my project. So I've putted several components into 
separate jar, added blank components.xml and faces-config.xml to META-INF and 
putted that jar into EAR lib folder. I had no problems at deployment time, but 
at runtime I've got an exception


  | SEVERE: Error Rendering View[/task.xhtml]
  | org.jboss.seam.InstantiationException: Could not instantiate Seam 
component: structureBean
  | at org.jboss.seam.Component.newInstance(Component.java:1970)
  | at org.jboss.seam.Component.getInstance(Component.java:1873)
  | at org.jboss.seam.Component.getInstance(Component.java:1840)
  | at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:55)
  | at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:50)
  | at 
org.jboss.seam.el.SeamELResolver.resolveBase(SeamELResolver.java:166)
  | at org.jboss.seam.el.SeamELResolver.getValue(SeamELResolver.java:53)
  | at 
javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
  | at 
com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
  | at org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
  | at org.jboss.el.parser.AstValue.getValue(AstValue.java:63)
  | at 
org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
  | at 
com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
  | at javax.faces.component.UIData.getValue(UIData.java:582)
  | at org.richfaces.component.UITree.createDataModel(UITree.java:512)
  | at org.richfaces.component.UITree.resetDataModel(UITree.java:291)
  | at 
org.ajax4jsf.component.UIDataAdaptor.encodeBegin(UIDataAdaptor.java:1032)
  | at 
org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:280)
  | at 
org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:262)
  | at 
org.richfaces.renderkit.html.PanelRenderer.doEncodeChildren(PanelRenderer.java:199)
  | at 
org.richfaces.renderkit.html.PanelRenderer.doEncodeChildren(PanelRenderer.java:194)
  | at 
org.ajax4jsf.renderkit.RendererBase.encodeChildren(RendererBase.java:121)
  | at 
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
  | at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886)
  | at javax.faces.render.Renderer.encodeChildren(Renderer.java:137)
  | at 
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
  | at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886)
  | at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
  | at 
com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)
  | at 
org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
  | at 
org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:216)
  | at 
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
  | at 
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
  | at 
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
  | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
  | at 
org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | at 
org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | at 
org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | at 
org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
  | at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
  | at 
org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | at 
org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | at 

[jboss-user] [JBoss Seam] - Re: How to initialize List of custom object by means of comp

2007-10-04 Thread Jump
Yes. Here is my package-info.java

  | @Namespace(value=http://my;, prefix=my)
  | package my;
  | 
  | import org.jboss.seam.annotations.*;
  | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4091388#4091388

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4091388
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: How to initialize List of custom object by means of comp

2007-10-04 Thread Jump
I've changed ListProcessDefinition to ProcessDefinition[] and finally got an 
exception! :)

anonymous wrote : 
  | Caused by: java.lang.IllegalArgumentException: No converter for type: 
[Lmy.ProcessDefinition;
  | at org.jboss.seam.util.Conversions.getConverter(Conversions.java:55)
  | at org.jboss.seam.Component$ConstantInitialValue.(Component.java:2029)
  | at org.jboss.seam.Component.getInitialValue(Component.java:449)
  | at org.jboss.seam.Component.getTopInitialValue(Component.java:429)
  | at org.jboss.seam.Component.initInitializers(Component.java:407)
  | at org.jboss.seam.Component.(Component.java:263)
  | at org.jboss.seam.Component.(Component.java:203)
  | at 
org.jboss.seam.init.Initialization.addComponent(Initialization.java:851)
  | 

now my toolbar looks like


  | @Local
  | public interface Toolbar {
  | 
  | public ProcessDefinition[] getAvailableProcesses();
  | public void setAvailableProcesses(ProcessDefinition[] 
availableProcesses);
  | public void create();
  | public void destroy();
  | 
  | }
  | 



  | @Stateful
  | @Name(toolbarImpl)
  | @Scope(ScopeType.SESSION)
  | public class ToolbarImpl implements Toolbar {
  | 
  | private ProcessDefinition[] availableProcesses = null;
  | 
  | 
  | @DataModel
  | public ProcessDefinition[] getAvailableProcesses() {
  | return availableProcesses;
  | }
  | 
  | public void setAvailableProcesses(ProcessDefinition[] processes) {
  | availableProcesses = processes;
  | }
  | 
  | @Create
  | public void create() {
  | 
  | }
  | 
  | @Destroy @Remove
  | public void destroy() {
  | 
  | }
  | 
  | }
  | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4091424#4091424

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4091424
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: How to initialize List of custom object by means of comp

2007-10-04 Thread Jump
So, what am I doing wrong?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4091425#4091425

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4091425
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - How to initialize List of custom object by means of componen

2007-10-03 Thread Jump
I have a stateful bean with a list of custom objects inside.

anonymous wrote : 
  | @Local
  | public interface Toolbar {
  | 
  | public List getAvailableProcesses();
  | public void create();
  | public void destroy();
  | 
  | }
  | 
and implementation
anonymous wrote : 
  | @Stateful
  | @Name(toolbarImpl)
  | @Scope(ScopeType.SESSION)
  | public class ToolbarImpl implements Toolbar {
  | 
  | private List availableProcesses = new ArrayList();
  | 
  | 
  | @DataModel
  | public List getAvailableProcesses() {
  | return availableProcesses;
  | }
  | 
  | public void setAvailableProcesses(List processes) {
  | availableProcesses = processes;
  | }
  | 
  | @Create
  | public void create() {
  | 
  | }
  | 
  | }
  | 
then I defined a schema in component_types.xsd

anonymous wrote : 
  | ?xml version=1.0 encoding=UTF-8?
  | xs:schema 
  | xmlns:xs=http://www.w3.org/2001/XMLSchema; 
  | elementFormDefault=qualified
  | targetNamespace=http://my; 
  | attributeFormDefault=unqualified
  | 
  | xs:element name=toolbarImpl
  | xs:complexType
  | xs:sequence
  | xs:element name=availableProcesses minOccurs=0 
maxOccurs=unbounded  type=processDefinition/
  | /xs:sequence
  | /xs:complexType
  | /xs:element
  | 
  | xs:complexType  name=processDefinition
  | xs:attribute name=processName/
  | xs:attribute name=description/
  | xs:attribute name=processIcon/
  | /xs:complexType
  | 
  | /xs:schema
  | 
and included that schema in my components.xml
anonymous wrote : 
  | ?xml version=1.0 encoding=UTF-8?
  | components xmlns=http://jboss.com/products/seam/components; 
  | .
  | xmlns:my=http://my; xsi:schemaLocation=
  | 
  | http://my component_types.xsd 
  | 
  | ...  
  | 
  |my:toolbarImpl
  | my:availableProcesses
  | my:processDefinition my:processName=enrolment 
  | 
my:description=enrolment
  | 
my:processIcon=img/icons/Text_Document.png/ 
  | /my:availableProcesses 
  |/my:toolbarImpl
  |   
  | 
  | 

So, I've got no errors and empty availableProcesses. Why?

P.S. Server log

anonymous wrote : 
  | 2007-10-03 18:58:19,781 DEBUG [org.jboss.ejb3.Ejb3DescriptorHandler] adding 
class annotation org.jboss.annotation.internal.DefaultInterceptorMarker to 
my.ToolbarImpl [EMAIL PROTECTED]
  | 2007-10-03 18:58:19,781 DEBUG [org.jboss.ejb3.Ejb3DescriptorHandler] adding 
class annotation org.jboss.annotation.internal.DefaultInterceptorMarker to 
my.ToolbarImpl [EMAIL PROTECTED]
  | 2007-10-03 18:58:19,781 DEBUG [org.jboss.ejb3.Ejb3AnnotationHandler] found 
EJB3: ejbName=ToolbarImpl, class=my.ToolbarImpl, type=STATEFUL
  | 2007-10-03 18:58:19,781 DEBUG [org.jboss.ejb3.ProxyDeployer] no declared 
remote bindings for : ToolbarImpl
  | 
anonymous wrote : 
  | 2007-10-03 18:58:20,843 DEBUG [org.jboss.ejb3.EJBContainer] Initialising 
interceptors for ToolbarImpl...
  | 2007-10-03 18:58:20,843 DEBUG [org.jboss.ejb3.EJBContainer] Default 
interceptors: [InterceptorInfo{class=class org.jboss.seam.ejb.SeamInterceptor}]
  | 
  | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4091112#4091112

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4091112
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Task assignment #2

2007-07-23 Thread Jump
How to assign task to child group? For example, user u is a member of group p 
(with p_type group type), which is a parent for group c(with p_type group 
type). 
So, expression like previous-group(p_type)-group(c_type) looks correct for 
me, but not for jbpm identity. What am I dooing wrong? And how to use 
paren-child relations in jbpm identity groups properly?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4066722#4066722

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4066722
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Abandon a taskInstance

2007-07-11 Thread Jump
Use @End annotation

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4063160#4063160

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4063160
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Feature request

2007-07-09 Thread Jump
For example, to make process graph available for workflow users. This can 
increase user acceptance.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4061884#4061884

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4061884
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Feature request

2007-07-05 Thread Jump
Would You plz provide additional information about process definition like gpd 
definition and corresponding jpg image. For example, now it looks like


  | bpm:jbpm
  | bpm:process-definitions
  | valueworkflows/material.jpdl.xml/value
  | /bpm:process-definitions
  | /bpm:jbpm
  | 

but, I guess, in this way it would be more useful


  | bpm:jbpm
  | bpm:process-definitions
  | bpm:process-definition jpdl=workflows/pd.jpdl.xml
  |   gpd=workflows/.gpd.pd.xml
  |   image=workflows/pd.jpg/
  | /bpm:process-definitions
  | /bpm:jbpm
  | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4060711#4060711

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4060711
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Generated application does not work

2007-07-04 Thread Jump
I used seam-gen to create simple test application. So here is generated code


  | package test20;
  | 
  | import org.jboss.seam.annotations.In;
  | import org.jboss.seam.annotations.Logger;
  | import org.jboss.seam.annotations.Name;
  | import org.jboss.seam.log.Log;
  | import org.jboss.seam.security.Identity;
  | 
  | 
  | @Name(authenticator)
  | public class Authenticator
  | {
  | @Logger Log log;
  | 
  | @In Identity identity;
  |
  | public boolean authenticate()
  | {
  | log.info(authenticating #0, identity.getUsername());
  | //write your authentication logic here,
  | //return true if the authentication was
  | //successful, false otherwise
  | identity.addRole(admin);
  | return true;
  | }
  | }
  | 
  | 

And page


  | h:form id=login
  | 
  | rich:panel
  | f:facet name=headerLogin/f:facet
  | 
  | pPlease login using any username and password/p
  | 
  | div class=dialog
  | h:panelGrid columns=2 rowClasses=prop 
columnClasses=name,value
  | h:outputLabel for=usernameUsername/h:outputLabel
  | h:inputText id=username 
  |   value=#{identity.username}/
  | h:outputLabel for=passwordPassword/h:outputLabel
  | h:inputSecret id=password 
  | value=#{identity.password}/
  | h:outputLabel for=rememberMeRemember 
me/h:outputLabel
  | h:selectBooleanCheckbox id=rememberMe 
  |   value=#{identity.rememberMe}/
  | /h:panelGrid
  | /div
  | 
  | /rich:panel
  | 
  | div class=actionButtons
  | h:commandButton value=Login action=#{identity.login}/
  | /div
  |   
  | /h:form
  | 

And here is an exception I've got


  | 16:47:01,906 ERROR [SeamLoginModule] Error invoking login method 
javax.el.PropertyNotFoundException: Target Unreachable, identifier 
'authenticator' resolved to null
  | at org.jboss.el.parser.AstValue.getTarget(AstValue.java:38)
  | at org.jboss.el.parser.AstValue.invoke(AstValue.java:95)
  | at 
org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
  | at org.jboss.seam.core.Expressions$2.invoke(Expressions.java:174)
  | at 
org.jboss.seam.security.jaas.SeamLoginModule.login(SeamLoginModule.java:108)
  | 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 
javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
  | at 
javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
  | at 
javax.security.auth.login.LoginContext$5.run(LoginContext.java:706)
  | at java.security.AccessController.doPrivileged(Native Method)
  | at 
javax.security.auth.login.LoginContext.invokeCreatorPriv(LoginContext.java:703)
  | at 
javax.security.auth.login.LoginContext.login(LoginContext.java:575)
  | at org.jboss.seam.security.Identity.authenticate(Identity.java:331)
  | at org.jboss.seam.security.Identity.authenticate(Identity.java:321)
  | at org.jboss.seam.security.Identity.login(Identity.java:237)
  | 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.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:325)
  | at 
org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:338)
  | at 
org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:58)
  | at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
  | at 
org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
  | at 
com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
  | at 
javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77)
  | at 
com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
  | at javax.faces.component.UICommand.broadcast(UICommand.java:383)
  | at 
org.ajax4jsf.framework.ajax.AjaxViewRoot.processEvents(AjaxViewRoot.java:180)
  | at 

[jboss-user] [JBoss Seam] - Re: Generated application does not work

2007-07-04 Thread Jump
Check my code. It's totally the same as yours

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4060460#4060460

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4060460
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Generated application does not work

2007-07-04 Thread Jump
Looks like there is a problem in build.xml. There are no .class files in jar

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4060494#4060494

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4060494
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - @DataModel problem

2007-07-04 Thread Jump
I have a simple bean with DataModel and DataModelSelection

  | @Stateful
  | @Name(toolbar)
  | @Scope(ScopeType.SESSION)
  | public class ToolbarImpl implements Toolbar {
  |  
  |...
  | 
  | @DataModel
  | public ListProcessDefinition getProcessDefinitions() {
  | return processDefinitions;
  | }
  | 
  | @DataModelSelection(processDefinitions)
  | private ProcessDefinition selectedProcess = null;
  | 
  | public String createProcess() {
  | 
  | System.out.println(selectedProcess +  process started);
  | return null;
  | }
  | 
  | }
  | 
And a simple page

  | rich:dataTable value=#{processDefinitions} var=process
  | rich:column
  | h:commandLink 
value=#{process.description} action=#{toolbar.createProcess} 
style=font-size:14px
  | h:graphicImage 
value=#{process.processIcon} style=width:42px;height:42px;border:0  
align=middle/
  | /h:commandLink
  | /rich:column
  | /rich:dataTable
  | 

and a simple exception


  | Caused by java.lang.IllegalArgumentException with message: Could not 
invoke method by reflection: ToolbarImpl.getProcessDefinitions() with 
parameters: (java.util.ArrayList) on: virtprofstud.ToolbarImpl
  | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4060529#4060529

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4060529
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: @DataModel problem

2007-07-04 Thread Jump
In this way it works

  | @DataModel
  | private ListProcessDefinition processDefinitions;
  | @DataModelSelection(processDefinitions)
  | private ProcessDefinition selectedProcess = null;
  | 


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4060539#4060539

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4060539
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: @DataModel problem

2007-07-04 Thread Jump
yes. It works fine with seam 1.2.1GA

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4060564#4060564

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4060564
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: jbpm and exception handling

2007-07-03 Thread Jump
leezard wrote : Hi,
  | 
  | What should I do to be able to use declarative (XML) exception handling 
together with pageflows?

You should use another process definition language based on pi-calculations. 
Because exception handling, as far as I know, is not available for petri-net 
based languages.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4059844#4059844

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4059844
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: jbpm and exception handling

2007-07-03 Thread Jump
You can read more about that here http://workflowpatterns.com/

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4059845#4059845

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4059845
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Seam-gen. The prefix bpm not bound in generated components

2007-07-03 Thread Jump
PLZ add binding xmlns:bpm=http://jboss.com/products/seam/bpm; to generated 
components.xml

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4059975#4059975

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4059975
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: jbpm and exception handling

2007-07-03 Thread Jump
If I'm not mistaken, there are embedded in seam ways to handle that  (but not 
in jbpm). I meant, that there is no exception/compensation mechanism in jpdl.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4059987#4059987

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4059987
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: utf problem

2007-06-06 Thread Jump
add -Dfile.encoding=UTF-8 to eclipse.ini

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4051680#4051680

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4051680
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Class loading problem

2007-06-05 Thread Jump
and here
http://www.jboss.com/index.html?module=bbop=viewtopict=92777

and no suggestion

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4051231#4051231

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4051231
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Class loading problem

2007-06-05 Thread Jump
the same problem
http://www.jboss.com/index.html?module=bbop=viewtopict=102870

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4051230#4051230

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4051230
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Class loading problem

2007-06-05 Thread Jump
?he suggestion is to set 

attribute name=UseJBossWebLoadertrue/attribute

in jbossweb-tomcat55.sar/META-INF/jboss-service.xml

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4051259#4051259

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4051259
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Class loading problem

2007-06-05 Thread Jump
So, what is your recommended solution?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4051279#4051279

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4051279
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Class loading problem

2007-06-05 Thread Jump
But I had the only jsf-facelets.jar ( war.dir/WEB-INF/lib/jsf-facelets.jar). 
The other one was created by deployer.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4051285#4051285

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4051285
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Class loading problem

2007-06-05 Thread Jump
So, are there any workarounds?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4051305#4051305

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4051305
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Class loading problem

2007-06-05 Thread Jump
Lightguard wrote : Probably shouldn't matter, but try cleaning out your tmp 
and work directories in Jboss then redeploying.  Also check the 
JBOSS_HOME/server/which_server_name_you_use/jbossweb-tomcat55.sar/jsf-libs dir 
and see if there's a copy of facelets in there (if you haven't already).

Actually, tmp directory is locked in runtime and server cleans it up while 
shutdowning. There is only default jboss configuration in my server. There no 
other TagHandle.class files in my jboss, except one in web-inf/lib adn another 
in deploy/tmp

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4051487#4051487

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4051487
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Class loading problem

2007-06-05 Thread Jump
There is no difference whether I define jsf-facelets.jar as javaModule or not.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4051507#4051507

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4051507
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Class loading problem

2007-06-05 Thread Jump
Maybe if I point javaModule to tmp directory... But jar's name changes from 
start to start.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4051509#4051509

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4051509
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Class loading problem

2007-06-04 Thread Jump
I have a custom tag handler


  | import com.sun.facelets.FaceletContext;
  | import com.sun.facelets.FaceletException;
  | import com.sun.facelets.tag.TagAttribute;
  | import com.sun.facelets.tag.TagConfig;
  | import com.sun.facelets.tag.TagHandler;
  | 
  | public class InsertItemTagHandler extends TagHandler  {
  | 
  | ...
  | 
  | public InsertItemTagHandler(TagConfig config) {
  | super(config);
  | 
  |  ...
  | 
  | }
  | 
  | public void apply(FaceletContext context, UIComponent component) throws 
IOException, FacesException, FaceletException, ELException {
  | 
  |  ...
  | 
  | }
  | 
  | }
  | 

and I also defined a custom tag in my custom.taglib.xml

  | ?xml version=1.0?
  | !DOCTYPE facelet-taglib PUBLIC
  | -//Sun Microsystems, Inc.//DTD Facelet Taglib 1.0//EN
  | facelet-taglib_1_0.dtd
  | facelet-taglib
  | namespacehttp://custom.ui/namespace
  | tag
  | tag-nameinsertItem/tag-name
  | handler-classuicomponents.InsertItemTagHandler/handler-class
  | /tag
  | /facelet-taglib
  | 

but for unknown reason I obtain


  | java.io.IOException: Error parsing 
[jndi:/localhost/custom-ui-component/WEB-INF/custom.taglib.xml]:
  |   ...
  | Caused by: org.xml.sax.SAXException: Error Handling 
[jndi:/localhost/custom-ui-component/WEB-INF/[EMAIL PROTECTED],67] 
handler-class
  |...
  | Caused by: java.lang.Exception: uicomponents.InsertItemTagHandler must be 
an instance of com.sun.facelets.tag.TagHandler
  | 

By the way, I have the only instance of jsf-facelets.jar (well, actually there 
are 2: first one in war.dir/WEB-INF/lib and other one in default/tmp/deploy, 
but I guess they are the same) and there is no ohter TagHandler classes defined.

I also added to my application.xml

  |module
  | javacustom-ui-component.war/WEB-INF/lib/jsf-facelets.jar/java
  |/module
  | 
but still no result.

Any ideas?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4050911#4050911

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4050911
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Class loading problem

2007-06-04 Thread Jump
P.S. jboss-4.0.5ga, seam 1.2.1ga

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4050929#4050929

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4050929
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam 1.1.6 Security with ICEFaces

2007-02-22 Thread Jump
I dont use ICEFaces, but I have the same problem

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4020679#4020679

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4020679
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Migrating from 1.1.1 GA 2 1.1.6. Problem with injection occu

2007-02-08 Thread Jump
this code worked with 1.1.1 and now it does not


  | @Stateless
  | @Name(login)
  | public class DefaultLogin implements Login {
  | 
  | @In(create=true)
  | private Actor actor;
  | ..
  | }
  | 

failed to inject actor

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4013185#4013185

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4013185
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Migrating from 1.1.1 GA 2 1.1.6. Problem with injection

2007-02-08 Thread Jump
I'm an idiot. Plz drop this topic. I fogot 2 uncomment core:jbpm/ in 
components.xlm

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4013193#4013193

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4013193
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: How to use org.jboss.seam.core.TaskInstance?

2007-01-11 Thread Jump
It works now. Have no any idea :) Closed

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4000376#4000376

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4000376
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: How to use org.jboss.seam.core.TaskInstance?

2007-01-11 Thread Jump

The solution is


  | @End
  | public String  endTask() {
  | 
  | org.jbpm.taskmgmt.exe.TaskInstance taskInstance = 
TaskInstance.instance();
  | 
  | 
  | for(TaskFormParameter tfp : this.taskFormParameters){
  | 
  | if (tfp.isWritable()) 
  | taskInstance.setVariable(tfp.getLabel(), 
tfp.getValue());
  | else
  | System.out.println(ignoring unwritable [ + 
tfp.getLabel() + ]);
  | 
  | }
  | 
  | if(selectedTransition != null)
  | taskInstance.end(selectedTransition.getName());
  | else
  | taskInstance.end();
  | 
  | return /available.xhtml;
  | 
  | }
  | 

if anybody care

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4000383#4000383

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4000383
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - How to use org.jboss.seam.core.TaskInstance?

2007-01-10 Thread Jump
I created a simple task manager which allows to start, end tasks and retrieve 
task's variables

import org.jboss.seam.core.TaskInstance;

@Stateful
@Name(taskManager)
@Scope(ScopeType.CONVERSATION)
public class TaskManagerImpl implements TaskManager {

  @In(required=false)
  private Long taskId;
  @DataModel
  private List transitions;
  @DataModelSelection(transitions)
  private Transition selectedTransition;
  @DataModel
  private List taskFormParameters;
  @DataModelSelection(taskFormParameters)
  private TaskFormParameter taskFormParameter;

  @BeginTask
  public String startTask() {

 org.jbpm.taskmgmt.exe.TaskInstance taskInstance = TaskInstance.instance();
 if(taskInstance != null) {

   this.transitions = taskInstance.getAvailableTransitions();
   this.comments = taskInstance.getComments();

   taskFormParameters = new ArrayList();
   TaskController taskController = 
taskInstance.getTask().getTaskController();
   if (taskController!=null) {
  for(Object va : taskController.getVariableAccesses()) {
  
 VariableAccess variableAccess = (VariableAccess) va;
 String mappedName = variableAccess.getMappedName();
 String value = 
(String)taskInstance.getVariable(mappedName);
 TaskFormParameter tfp = new 
TaskFormParameter(variableAccess, value);
 System.out.println(reading [ + tfp.getLabel() + ]= 
+ tfp.getValue() +  readable  + tfp.isReadable() +  writable  + 
tfp.isWritable());
 taskFormParameters.add(tfp);
   }
 }

 }
 return /task.xhtml;

 } 

   @EndTask
   public String  endTask() {

 org.jbpm.taskmgmt.exe.TaskInstance taskInstance = 
TaskInstance.instance();
 BusinessProcess.instance().transition(selectedTransition.getName());

 for(TaskFormParameter tfp : this.taskFormParameters){
 if (tfp.isWritable()) {

  System.out.println(isOpen  + taskInstance.isOpen());
  System.out.println(submitting [ + tfp.getLabel() + ]= + 
tfp.getValue() +  readable  + tfp.isReadable() +  writable  + 
tfp.isWritable());
  taskInstance.setVariable(tfp.getLabel(), tfp.getValue());
  System.out.println(test  + 
taskInstance.getVariable(tfp.getLabel()));

  } else {

 System.out.println(ignoring unwritable [ + tfp.getLabel() + 
]);

}

}

   return /available.xhtml;

}

   @End
   public String cancelTask() {

   return /available.xhtml;

   }


   @Remove @Destroy
   public void remove() {

   }

}

then i defined a simple workflow 

?xml version=1.0?

process-definition name=sampleflow
start-state name=start
 task name=start
   assignment pooled-actors=debuggers/
/ task

 /start-state

task-node name=sample
 task name=sample description=sample description
   assignment pooled-actors=debuggers/
   
variable name=readableVar mapped-name=readableVar 
access=read,write/
variable name=writableVar mapped-name=writableVar 
access=read,write/
  
/ task


   /task-node
   task-node name=task1
 task name=another sample task description=sample description
assignment pooled-actors=debuggers/

  variable name=readableVar access=read 
mapped-name=readableVar/
  variable name=writableVar access=read 
mapped-name=writableVar/

/ task

   /task-node

end-state name=end/

/process-definition

The trouble is that not null variables in task named sample, become null in 
task named another sample task






View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=361#361

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=361
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - JBPM and Seam integration. What am I doing wrong?

2006-09-25 Thread Jump
So I created a process by means of the @CreateProcess annotation

@Stateful
@Name(createOrder)
public class CreateOrderImpl implements CreateOrder, Serializable {

@Logger
Log log;

@CreateProcess(definition=order issuing)
public void startWorkflow() {

log.debug(workflow started 'orderIssuing');

}

@Destroy
@Remove
public void destroy() {
}
}


The process defenition is

?xml version=1.0?

process-definition name=order issuing
start-state name=start
  
/start-state
task-node name=create order

assignment pooled-actors=inspectors/
!--assignment actor-id=#{actor.id}/--


/task-node
task-node name=deans sign

assignment pooled-actors=deans/
!--assignment actor-id=#{actor.id}/--

  
  
/task-node
task-node name=lawyers sign

assignment pooled-actors=lawyers/
!--assignment actor-id=#{actor.id}/--


  
/task-node
end-state name=end/end-state
task-node name=correct document

assignment pooled-actors=inspectors/
!--assignment actor-id=#{actor.id}/--


/task-node
/process-definition

Then I output tasks for current actor

h:dataTable value=#{pooledTaskInstanceList}
var=task 
styleClass=dvdtable 
headerClass=dvdtablehead
rowClasses=dvdtableodd,dvdtableeven
columnClasses=dvdtablecol
h:column
f:facet name=header??/f:facet
h:outputText value=#{task.description} /
/h:column
h:column
 f:facet name=header??/f:facet
 h:outputText value=#{task.create} /
/h:column
  h:column
  f:facet name=header/f:facet
  h:outputText value=#{task.variables['file'].name} /
/h:column
h:column
s:link action=#{pooledTask.assignToCurrentActor} 
taskInstance=#{task} value= linkStyle=button/
/h:column
/h:dataTable

And if you click on s:link.../ you will redirected to upload.xhtml by means 
of navigation rule

/faces-config
..
navigation-rule
navigation-case
from-action#{pooledTask.assignToCurrentActor}/from-action
from-outcometaskAssignedToActor/from-outcome
to-view-id/upload.xhtml/to-view-id

/navigation-case
/navigation-rule
..
/faces-config

Here is the page source

!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN 
  http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
html xmlns=http://www.w3.org/1999/xhtml;
  xmlns:ui=http://java.sun.com/jsf/facelets;
  xmlns:f=http://java.sun.com/jsf/core;
  xmlns:h=http://java.sun.com/jsf/html;
  xmlns:s=http://jboss.com/products/seam/taglib;
  xmlns:c=http://java.sun.com/jstl/core;
  xmlns:t=http://myfaces.apache.org/tomahawk;

ui:composition template=/WEB-INF/template.xhtml
ui:define name=topnav
ui:include src=/WEB-INF/incl/store_nav.xhtml
ui:param name=page value=home /
/ui:include
/ui:define 
   
ui:define name=sidebar
ui:include src=/WEB-INF/incl/login.xhtml /
/ui:define

ui:define name=body
h1 ???/h1
h:form enctype=multipart/form-data
h:outputText 
value=#{createOrder.fileContent}/
t:inputFileUpload storage=input_file 
value=#{createOrder.file}/
h:commandButton value=? 
action=#{createOrder.upload}/
h:commandButton 
action=#{taskManager.startTask} value=Start task/
h:commandButton 
action=#{taskManager.endTask} value=End task/
h:outputText value=#{taskManager.test}/
h:messages/
/h:form
/ui:define
/ui:composition 
 


and its backing bean

@Name(taskManager)
public class TaskManagerImpl {

@Logger
Log log;

public String getTest() {
return test;
}

@Create
@StartTask
public void startTask() {
log.debug(task started);
}

@EndTask
public void endTask() {
log.debug(task ended);
}


[jboss-user] [JBoss Seam] - Re: JBPM and Seam integration. What am I doing wrong?

2006-09-25 Thread Jump
Well, actually I didnt. But pooledTask.assignToCurrentActor worked fine, does 
not that mean, that somebody already outjected taskId variable?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3973890#3973890

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3973890
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: JBPM and Seam integration. What am I doing wrong?

2006-09-25 Thread Jump
And by the way, are there any ways to pass taskId when I call endTask().

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3973894#3973894

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3973894
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user