This content has been marked as final.
Show 6 replies
-
1. Re: Injecting @Unwrap'ed component
pmuir Sep 5, 2006 6:42 AM (in response to dgallego)taskInstanceListForType is an example of the componentManager pattern so you should use it something like this:
@In("#{taskInstanceListForType['myType']}") private List<TaskInstance> taskInstances;
-
2. Re: Injecting @Unwrap'ed component
gavin.king Sep 6, 2006 9:41 PM (in response to dgallego)Probably you need @In(create=true). But TaskInstanceListForType is only really intended to be used in the view.
-
3. Re: Injecting @Unwrap'ed component
dgallego Sep 7, 2006 4:18 AM (in response to dgallego)Thanks. Finally I could inject it.
Should I use ManagedJbpmContext to get the tasks of my current Actor? -
4. Re: Injecting @Unwrap'ed component
harpritt Jul 31, 2007 5:02 PM (in response to dgallego)Gavin or Pete or anyone.
Just seen this thread
Whats the SEAM approved way of getting the size of taskInstanceListForType['LeTaskOPeril'] in the view
Ive seen some people use <fn:length.... but i dont want to use JSTL in my lovely facelet
..... Cheers Gents -
5. Re: Injecting @Unwrap'ed component
pmuir Jul 31, 2007 5:24 PM (in response to dgallego)IIRC you can do:
taskInstanceListForType['LeTaskOPeril'].size
in recent (I'm not sure since when) Seam (this isn't standard in JSF) -
6. Re: Injecting @Unwrap'ed component
harpritt Jul 31, 2007 5:44 PM (in response to dgallego)Nice one mate
i shall give it a go
*crosses toes*