-
1. Re: jbpm task forms as generated by jpdl eclipse plugin
rossputin Aug 29, 2007 5:43 AM (in response to rossputin)I suppose it is possible I can just put any old handcrafted xhtml form with javascript for mandatory variable checking, and it is not required that I use the dataform and datacell components ? Or is there hardwiring for the save button that it would be difficult to duplicate ?
regards
Ross -
2. Re: jbpm task forms as generated by jpdl eclipse plugin
mputz Aug 29, 2007 5:58 AM (in response to rossputin)Ross,
fyi, there is a pretty similar bug in JIRA for the jbpm:dataform with multiple columns already:
http://jira.jboss.com/jira/browse/JBPM-1039
You might want to check this out. -
3. Re: jbpm task forms as generated by jpdl eclipse plugin
rossputin Aug 29, 2007 6:13 AM (in response to rossputin)thanks for pointing that out, does that mean I can put three rows in without specifying the columns attribute on the dataform element?
cheers
Ross -
4. Re: jbpm task forms as generated by jpdl eclipse plugin
rossputin Aug 29, 2007 6:48 AM (in response to rossputin)also is it possible to put a javascript script tag in the task form.xhtml file to do validation on form elements ?
cheers
Ross -
5. Re: jbpm task forms as generated by jpdl eclipse plugin
kukeltje Aug 29, 2007 9:24 AM (in response to rossputin)required in jpdl means not null. JSF by default returns an empty, non-null string. So put a 'required=true' on the input. That will make sure a real value is needed
-
6. Re: jbpm task forms as generated by jpdl eclipse plugin
rossputin Aug 29, 2007 9:35 AM (in response to rossputin)Hi,
I am clicking on the generate form button, and specifying my variable there, I am clicking on the required=true checkbox, but it seems to have no effect... so should I manually in my xhtml form specify 'required=true'? Is that the syntax?
thanks for your help,
Ross -
7. Re: jbpm task forms as generated by jpdl eclipse plugin
rossputin Aug 29, 2007 12:15 PM (in response to rossputin)Ah, I see what you mean, I can now specify mandatory fields upon pressing the 'save' button...
my problem is that I always want to automatically show a form whenever there is one for a given task, so on my web page I have the form, its 'save' button, and all of my transition links, so I would like to check for completion of mandatory fields upon clicking on the transition links also, do you have any ideas how I could implement this ?
thanks for your help,
Ross -
8. Re: jbpm task forms as generated by jpdl eclipse plugin
kukeltje Aug 29, 2007 7:40 PM (in response to rossputin)??? you mean without having to add the 'required=true' manually in the form? Only one solution, change the formgenerator in the GPD and contribute the fix back... ;-)