-
-
2. Re: upload file in a task ?
kukeltje Jun 12, 2008 2:20 AM (in response to secmask)you are welcome
-
3. Re: upload file in a task ?
secmask Jun 12, 2008 5:53 AM (in response to secmask)oh, help me, kuke !
I've looked at some topic link this, but it's not help very much!
hum?????? -
4. Re: upload file in a task ?
jalamos Jun 30, 2008 6:29 PM (in response to secmask)I have the same problem,...Someone knows about this issue??,,
secmask = where you create your custom tag <j4j?
thank!.. -
5. Re: upload file in a task ?
johnnyright Jul 15, 2008 3:37 PM (in response to secmask)Hi all
I have the same problem!, what about this post? any solution please, I need to attach a file to a process
secmask please answer,
thanks -
6. Re: upload file in a task ?
kukeltje Jul 15, 2008 5:51 PM (in response to secmask)jsf4jbpm was, afaik, developed without much guidence from the community (neutral statement, no positive or negative judgement). There are only 10 types of people that understand jbpm4jsf. Those who do and those who don't. Most of us don't and it is advised *NOT* to use jbpm4jsf to develop applications or extending the console. Use e.g. seam with richfaces.
-
7. Re: upload file in a task ?
vtysh Aug 6, 2008 7:21 AM (in response to secmask)You shouldn't put action command to the tf:saveButton directly because all jbpm form actions described directly in the j4j:taskForm tag in the JBPM console application.
To upload files in the task variable map you should to have own tag and use it inside standard action components commandButton or commandLink in your task form. For example:<gd:inputFile target="#{stream}"/> <h:commandLink value="upload"> <customnamespace:addFile dataStream="#{stream}" target="#{var['file']}"/> </h:commandLink>
To avoid variable map reload you should to specify some context variable value during upload action and check it on variable map loading action. If variable is set then do not reaload variable map.
Replace the line in the task.xhtml<j4j:getVariableMap target="#{taskVariableMap}" value="#{task}"/>
with the next<j4j:getVariableMap target="#{taskVariableMap}" value="#{task}" unless="#{yourCustomVariableWhichIndicatesFileUpload}"/>
And of course do not forget to change form enctype to multipart.
Hope it will help to everybody searching the JBPM console file uploading solution for task -
8. Re: upload file in a task ?
smjain Jan 22, 2009 5:55 AM (in response to secmask)I am unable to do an upload in jbpm task form..
Tried to integrate rich faces as you had suggested. If i put the rich faces jar in the jbpm-console.war file the war is not getting deployed
If I dont do it the rich tag is itself not found..
Please help
Shashank