-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Grzegorz Kossakowski wrote:
> Giacomo Pati pisze:
>>
>> Ok, so this is the snippet where it is used:
>>
>> <a href="view-my-tasks" id="view-my-tasks">
>> ${status.myTasks.size()}
>> </a>
>>
>> As it is part of the content surrounding of that page it was included by a
>> XSLT via:
>>
>> <ci:include element="status" src="cocoon:/user-status" />
>>
>> which was processed by a
>>
>> <map:match pattern="user-*">
>> <map:read src="screens/user-{1}.xml" />
>> </map:match>
>>
>> and initially called by a flowscript that sets the status variable up as a
>> native Javascript Hash
>>
>> var status = { myTasks: taskManager.getTasks() };
>>
>> whereas the taskManager.getTasks() returns a List
>>
>> So the general process is that a flowscripts calls the pipeline descibed in
>> my earlier mail with a
>> hash of informations where that pipeline expands the initial xml into
>> cinclude which gets included
>> to the final page.
>
> I want to reproduce your setup so I will want to make sure that I understand
> your flow in pipelines:
>
> flowscript_function (sets status.myTasks)
> * <map:match pattern="screen/**">
> o <map:generate src="servlet:bfabric-core:/screen/{1}" />
> # generator
> # xslt (creates <ci:include element="status"
> src="cocoon:/user-status" />)
> # cinclude
> # jx transformer <- here status.myTasks is used
> # serialize
> o [...]
Yes, this is more or less about it.
> Apart from my guesses above I would like to ask you for one more thing, could
> you set scope of OM to
> request (I hope we support standard Spring scopes) and singleton if request
> does not work. Be
> warned, that setting it to singleton is just for testing; it will screw up
> your app as soon as
> second request is processed.
You'll find the log for request scoped at
http://people.apache.org/~giacomo/request-log4j.log
and singleton scoped at
http://people.apache.org/~giacomo/singleton-console.log. Singleton scope
doesn't even start the app.
- --
Giacomo Pati
Otego AG, Switzerland - http://www.otego.com
Orixo, the XML business alliance - http://www.orixo.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.6 (GNU/Linux)
iD8DBQFG6pyeLNdJvZjjVZARApvBAKCFU52L8V2tCB+1gerpR33fjJBqRgCeMG4C
S5nZiIbmx4d2NN/kqT14m/0=
=33/T
-----END PGP SIGNATURE-----