You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Carlos Chávez <cc...@agssa.net> on 2008/01/14 19:01:25 UTC
usage of cocoon.createObject
Hello All,
About the usage of the cocoon.createObject, i notice that on two cocoon
sample we did not call the method cocoon.disposeObject for the object
created before, is this right ?
The sample code is on:
1. src/blocks/lucene/samples/flow.js
2. src/blocks/portal/samples/coplets/basket/basket.js
We create the objects:
org.apache.cocoon.components.flow.util.PipelineUtil and
org.apache.cocoon.samples.LuceneUtil.
Cheers,
Carlos Chávez.
Re: usage of cocoon.createObject
Posted by Antonio Gallardo <ag...@agssa.net>.
Hi Carlos,
Thanks for spotting the issue, people might get this code as a "best
practices". Would you file the issue and include a patch in scarab? I
will be glad to commit the fix. Thank you in advance.
Best Regards,
Antonio Gallardo.
Carlos Chávez escribió:
> Hello All,
>
> About the usage of the cocoon.createObject, i notice that on two
> cocoon sample we did not call the method cocoon.disposeObject for the
> object created before, is this right ?
>
> The sample code is on:
>
> 1. src/blocks/lucene/samples/flow.js
> 2. src/blocks/portal/samples/coplets/basket/basket.js
>
> We create the objects:
> org.apache.cocoon.components.flow.util.PipelineUtil and
> org.apache.cocoon.samples.LuceneUtil.
>
> Cheers,
> Carlos Chávez.