Using primefaces or jsf page as a task form

794 views
Skip to first unread message

hassan....@gmail.com

unread,
Mar 18, 2013, 11:02:39 PM3/18/13
to camunda-...@googlegroups.com
I noticed that angularjs is used in the building of tasklist application. Is it possible to use the primefaces or jsf page as a task form? If yes, How can that be
achieved?

Bernd Rücker (camunda)

unread,
Mar 19, 2013, 1:41:20 AM3/19/13
to hassan....@gmail.com, camunda-...@googlegroups.com
Hi Hassan.

Yes thats possible - you have to set the form key to the JSF page you want
to show, e.g. activiti:formKey="app:approveInvoice.jsf". The JSF page now
have to be deployed within your process application. See
https://app.camunda.com/confluence/display/foxUserGuide/Add+forms+to+your+
Process+Application for details - but note that it documents the 6.2
approach - especially the form key has changed in 7.0. We will migrate the
docs asap.

Hope that helps?
Cheers
Bernd


-----Urspr�ngliche Nachricht-----
Von: camunda-...@googlegroups.com
[mailto:camunda-...@googlegroups.com] Im Auftrag von
hassan....@gmail.com
Gesendet: Dienstag, 19. M�rz 2013 04:03
An: camunda-...@googlegroups.com
Betreff: Using primefaces or jsf page as a task form
--
You received this message because you are subscribed to the Google Groups
"camunda BPM users & process application developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to camunda-bpm-us...@googlegroups.com.
To post to this group, send email to camunda-...@googlegroups.com.


Daniel

unread,
Mar 19, 2013, 3:50:56 AM3/19/13
to camunda-...@googlegroups.com, hassan....@gmail.com
Hi,

there is a really cool example in camundas bitbucket repo which got us startetd, namely the UiMediator. You shouldn't need the whole example, but really interesting for you might be this class:

https://bitbucket.org/camunda/fox-showcases/src/df7546167c41/ui-mediator/src/main/java/com/camunda/sample/uimediator/UIMediator.java?at=master

You query the FormService to get the forms name in the process and just return it to JSF. Thats all you have to do.

Greetings,
Daniel

hassan....@gmail.com

unread,
Mar 19, 2013, 5:17:51 AM3/19/13
to camunda-...@googlegroups.com, hassan....@gmail.com
Hi Bernd Rücker,
Can I use the jsf form to be embedded inside the tsklist using the value "embedded:app:approveInvoice.jsf" as formKey instead of "app:approveInvoice.jsf" or that is valid with angularjs forms only? As I got from the get-started page using the form key "app:approveInvoice.jsf" means the form will be rendered in a pop window & using "embedded:app:approveInvoice.jsf" value means the form will be rendered inside the tasklist window. Is that right?

Daniel Meyer

unread,
Mar 19, 2013, 10:06:11 AM3/19/13
to camunda-...@googlegroups.com, hassan....@gmail.com
Hi Hassan,

JSF can only be used for external forms ATM. So you must specify the path like this:

app:approveInvoice.jsf

Embedding JSF forms is not supported.
Reply all
Reply to author
Forward
0 new messages